Fix max level of potentials in !build being 3

This commit is contained in:
Melledy
2025-12-05 01:26:12 -08:00
parent 86c607c0b3
commit 880f0d1d7d

View File

@@ -22,6 +22,16 @@ public class PotentialDef extends BaseDef {
return Id;
}
public int getMaxLevel() {
// Check if regular potential
if (this.BranchType == 3) {
return this.BuildScore.length;
}
// Special potential should always have a max level of 1
return this.MaxLevel;
}
public int getMaxLevel(StarTowerGame game) {
// Check if regular potential
if (this.BranchType == 3) {