mirror of
https://github.com/Melledy/Nebula.git
synced 2026-11-04 21:36:51 +01:00
Fix mall shop purchases
This commit is contained in:
1 parent
7a49282cef
commit
f1a95b77e9
2 files changed
+19
-4
No files matched your search
@@ -4,6 +4,7 @@ import com.google.gson.annotations.SerializedName;
|
||||
|
||||
import emu.nebula.data.BaseDef;
|
||||
import emu.nebula.data.ResourceType;
|
||||
import emu.nebula.game.inventory.ItemParamMap;
|
||||
import lombok.Getter;
|
||||
|
||||
@Getter
|
||||
@@ -12,12 +13,26 @@ public class MallShopDef extends BaseDef {
|
||||
@SerializedName("Id")
|
||||
private String IdString;
|
||||
private int Stock;
|
||||
|
||||
private int ExchangeItemId;
|
||||
private int ExchangeItemQty;
|
||||
|
||||
private int ItemId;
|
||||
private int CurrencyItemId;
|
||||
private int ItemQty;
|
||||
|
||||
private transient ItemParamMap products;
|
||||
|
||||
@Override
|
||||
public int getId() {
|
||||
return IdString.hashCode();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onLoad() {
|
||||
this.products = new ItemParamMap();
|
||||
|
||||
if (this.ItemId > 0) {
|
||||
this.products.add(this.ItemId, this.ItemQty);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user