mirror of
https://github.com/Melledy/Nebula.git
synced 2025-12-12 20:34:36 +01:00
Fix max level of potentials in !build being 3
This commit is contained in:
@@ -22,6 +22,16 @@ public class PotentialDef extends BaseDef {
|
|||||||
return Id;
|
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) {
|
public int getMaxLevel(StarTowerGame game) {
|
||||||
// Check if regular potential
|
// Check if regular potential
|
||||||
if (this.BranchType == 3) {
|
if (this.BranchType == 3) {
|
||||||
|
|||||||
Reference in New Issue
Block a user