mirror of
https://github.com/Melledy/Nebula.git
synced 2026-09-19 17:19:58 +02:00
Implement buying from mall shop
This commit is contained in:
@@ -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
|
||||
@@ -15,9 +16,17 @@ public class MallPackageDef extends BaseDef {
|
||||
private int CurrencyType;
|
||||
private int CurrencyItemId;
|
||||
private int CurrencyItemQty;
|
||||
private String Items;
|
||||
|
||||
private transient ItemParamMap products;
|
||||
|
||||
@Override
|
||||
public int getId() {
|
||||
return IdString.hashCode();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onLoad() {
|
||||
this.products = ItemParamMap.fromJsonString(this.Items);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user