Implement potential selector in monoliths

This commit is contained in:
Melledy
2025-10-27 08:39:53 -07:00
parent d57caeffe1
commit 08feedc766
10 changed files with 492 additions and 47 deletions

View File

@@ -41,5 +41,6 @@ public class GameData {
@Getter private static DataTable<GuideGroupDef> GuideGroupDataTable = new DataTable<>();
@Getter private static DataTable<StarTowerDef> StarTowerDataTable = new DataTable<>();
@Getter private static DataTable<StarTowerStageDef> StarTowerStageDataTable = new DataTable<>();
@Getter private static DataTable<PotentialDef> PotentialDataTable = new DataTable<>();
}

View File

@@ -14,4 +14,14 @@ public class StarTowerDef extends BaseDef {
public int getId() {
return Id;
}
public int getMaxFloor(int stage) {
int index = stage - 1;
if (index < 0 || index >= this.FloorNum.length) {
return 0;
}
return this.FloorNum[index];
}
}

View File

@@ -0,0 +1,19 @@
package emu.nebula.data.resources;
import emu.nebula.data.BaseDef;
import emu.nebula.data.ResourceType;
import lombok.Getter;
@Getter
@ResourceType(name = "StarTowerStage.json")
public class StarTowerStageDef extends BaseDef {
private int Id;
private int Stage;
private int Floor;
private int RoomType;
@Override
public int getId() {
return Id;
}
}