Fix Ocean of Souls research node

This commit is contained in:
Melledy
2025-12-13 00:26:19 -08:00
parent 588522df88
commit ab1f84e8db
2 changed files with 10 additions and 10 deletions

View File

@@ -39,7 +39,7 @@ public class PotentialDef extends BaseDef {
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) {
return this.MaxLevel + game.getModifiers().getBonusMaxPotentialLevel(); return this.MaxLevel + game.getModifiers().getExtraMaxPotentialLevel();
} }
// Special potential should always have a max level of 1 // Special potential should always have a max level of 1

View File

@@ -18,8 +18,8 @@ public class StarTowerModifiers {
private boolean freeStrengthen; private boolean freeStrengthen;
private int strengthenDiscount; private int strengthenDiscount;
// Bonus max potential level // Extra max potential level
private int bonusMaxPotentialLevel; private int extraMaxPotentialLevel;
// Shop // Shop
private int shopGoodsCount; private int shopGoodsCount;
@@ -70,11 +70,11 @@ public class StarTowerModifiers {
this.strengthenDiscount = 30; this.strengthenDiscount = 30;
} }
// Bonus potential max level (Ocean of Souls) // Extra potential max level (Ocean of Souls)
if (this.hasGrowthNode(30301)) { if (this.hasGrowthNode(30301)) {
this.bonusMaxPotentialLevel = 3; // 6 total this.extraMaxPotentialLevel = 3; // 6 total
} else if (this.hasGrowthNode(20601)) { } else if (this.hasGrowthNode(20601)) {
this.bonusMaxPotentialLevel = 1; // 4 total this.extraMaxPotentialLevel = 1; // 4 total
} }
// Shop extra goods (Monolith Premium) // Shop extra goods (Monolith Premium)
@@ -116,16 +116,16 @@ public class StarTowerModifiers {
// Bonus potential levels (Butterflies Inside) // Bonus potential levels (Butterflies Inside)
if (game.getDifficulty() >= 7 && this.hasGrowthNode(30901)) { if (game.getDifficulty() >= 7 && this.hasGrowthNode(30901)) {
this.bonusPotentialChance = 0.3; this.bonusPotentialChance = 0.3;
this.bonusMaxPotentialLevel = 2; this.bonusPotentialLevel = 2;
} else if (game.getDifficulty() >= 7 && this.hasGrowthNode(30801)) { } else if (game.getDifficulty() >= 7 && this.hasGrowthNode(30801)) {
this.bonusPotentialChance = 0.2; this.bonusPotentialChance = 0.2;
this.bonusMaxPotentialLevel = 1; this.bonusPotentialLevel = 1;
} else if (game.getDifficulty() >= 6 && this.hasGrowthNode(30201)) { } else if (game.getDifficulty() >= 6 && this.hasGrowthNode(30201)) {
this.bonusPotentialChance = 0.1; this.bonusPotentialChance = 0.1;
this.bonusMaxPotentialLevel = 1; this.bonusPotentialLevel = 1;
} else if (game.getDifficulty() >= 5 && this.hasGrowthNode(20801)) { } else if (game.getDifficulty() >= 5 && this.hasGrowthNode(20801)) {
this.bonusPotentialChance = 0.05; this.bonusPotentialChance = 0.05;
this.bonusMaxPotentialLevel = 1; this.bonusPotentialLevel = 1;
} }
// Potential reroll (Cloud Dice) // Potential reroll (Cloud Dice)