mirror of
https://github.com/Melledy/Nebula.git
synced 2026-11-04 21:36:51 +01:00
Fix max level of potentials in !build being 3
This commit is contained in:
1 parent
86c607c0b3
commit
880f0d1d7d
1 file changed
+10
@@ -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