mirror of
https://github.com/Melledy/Nebula.git
synced 2026-11-04 21:36:51 +01:00
Implement trekker affinity story
This commit is contained in:
1 parent
139b1cf87e
commit
c78c6a7492
4 files changed
+122
No files matched your search
@@ -30,6 +30,7 @@ public class GameData {
|
||||
|
||||
@Getter private static DataTable<AffinityLevelDef> AffinityLevelDataTable = new DataTable<>();
|
||||
@Getter private static DataTable<AffinityGiftDef> AffinityGiftDataTable = new DataTable<>();
|
||||
@Getter private static DataTable<PlotDef> PlotDataTable = new DataTable<>();
|
||||
|
||||
@Getter private static DataTable<CharGemDef> CharGemDataTable = new DataTable<>();
|
||||
@Getter private static DataTable<CharGemSlotControlDef> CharGemSlotControlDataTable = new DataTable<>();
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
package emu.nebula.data.resources;
|
||||
|
||||
import emu.nebula.data.BaseDef;
|
||||
import emu.nebula.data.ResourceType;
|
||||
import emu.nebula.game.inventory.ItemParamMap;
|
||||
import lombok.Getter;
|
||||
|
||||
@Getter
|
||||
@ResourceType(name = "Plot.json")
|
||||
public class PlotDef extends BaseDef {
|
||||
private int Id;
|
||||
private int Char;
|
||||
private int UnlockAffinityLevel;
|
||||
private String Rewards;
|
||||
|
||||
private transient ItemParamMap rewards;
|
||||
|
||||
@Override
|
||||
public int getId() {
|
||||
return this.Id;
|
||||
}
|
||||
|
||||
public ItemParamMap getRewards() {
|
||||
return this.rewards;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onLoad() {
|
||||
this.rewards = ItemParamMap.fromJsonString(this.Rewards);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user