From ab1f84e8dbf82ecd9098acfbd2b4b1362cebb825 Mon Sep 17 00:00:00 2001 From: Melledy <121644117+Melledy@users.noreply.github.com> Date: Sat, 13 Dec 2025 00:26:19 -0800 Subject: [PATCH] Fix `Ocean of Souls` research node --- .../nebula/data/resources/PotentialDef.java | 2 +- .../nebula/game/tower/StarTowerModifiers.java | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/main/java/emu/nebula/data/resources/PotentialDef.java b/src/main/java/emu/nebula/data/resources/PotentialDef.java index f75ba9d..181ebc4 100644 --- a/src/main/java/emu/nebula/data/resources/PotentialDef.java +++ b/src/main/java/emu/nebula/data/resources/PotentialDef.java @@ -39,7 +39,7 @@ public class PotentialDef extends BaseDef { public int getMaxLevel(StarTowerGame game) { // Check if regular potential 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 diff --git a/src/main/java/emu/nebula/game/tower/StarTowerModifiers.java b/src/main/java/emu/nebula/game/tower/StarTowerModifiers.java index 466c7bd..573b301 100644 --- a/src/main/java/emu/nebula/game/tower/StarTowerModifiers.java +++ b/src/main/java/emu/nebula/game/tower/StarTowerModifiers.java @@ -18,8 +18,8 @@ public class StarTowerModifiers { private boolean freeStrengthen; private int strengthenDiscount; - // Bonus max potential level - private int bonusMaxPotentialLevel; + // Extra max potential level + private int extraMaxPotentialLevel; // Shop private int shopGoodsCount; @@ -70,11 +70,11 @@ public class StarTowerModifiers { this.strengthenDiscount = 30; } - // Bonus potential max level (Ocean of Souls) + // Extra potential max level (Ocean of Souls) if (this.hasGrowthNode(30301)) { - this.bonusMaxPotentialLevel = 3; // 6 total + this.extraMaxPotentialLevel = 3; // 6 total } else if (this.hasGrowthNode(20601)) { - this.bonusMaxPotentialLevel = 1; // 4 total + this.extraMaxPotentialLevel = 1; // 4 total } // Shop extra goods (Monolith Premium) @@ -116,16 +116,16 @@ public class StarTowerModifiers { // Bonus potential levels (Butterflies Inside) if (game.getDifficulty() >= 7 && this.hasGrowthNode(30901)) { this.bonusPotentialChance = 0.3; - this.bonusMaxPotentialLevel = 2; + this.bonusPotentialLevel = 2; } else if (game.getDifficulty() >= 7 && this.hasGrowthNode(30801)) { this.bonusPotentialChance = 0.2; - this.bonusMaxPotentialLevel = 1; + this.bonusPotentialLevel = 1; } else if (game.getDifficulty() >= 6 && this.hasGrowthNode(30201)) { this.bonusPotentialChance = 0.1; - this.bonusMaxPotentialLevel = 1; + this.bonusPotentialLevel = 1; } else if (game.getDifficulty() >= 5 && this.hasGrowthNode(20801)) { this.bonusPotentialChance = 0.05; - this.bonusMaxPotentialLevel = 1; + this.bonusPotentialLevel = 1; } // Potential reroll (Cloud Dice)