mirror of
https://github.com/Melledy/Nebula.git
synced 2025-12-16 14:24:57 +01:00
Implement bonus potential level monolith talents
This commit is contained in:
@@ -29,12 +29,17 @@ public class StarTowerModifiers {
|
||||
private boolean shopDiscountTier2;
|
||||
private boolean shopDiscountTier3;
|
||||
|
||||
// Bonus potential levels
|
||||
private double bonusStrengthenChance = 0;
|
||||
private double bonusPotentialChance = 0;
|
||||
private int bonusPotentialLevel = 0;
|
||||
|
||||
public StarTowerModifiers(StarTowerGame game) {
|
||||
this.game = game;
|
||||
|
||||
// Strengthen machines
|
||||
this.enableEndStrengthen = this.hasGrowthNode(10601) && game.getDifficulty() >= 2;
|
||||
this.enableShopStrengthen = this.hasGrowthNode(20301) && game.getDifficulty() >= 4;
|
||||
this.enableEndStrengthen = game.getDifficulty() >= 2 && this.hasGrowthNode(10601);
|
||||
this.enableShopStrengthen = game.getDifficulty() >= 4 && this.hasGrowthNode(20301);
|
||||
|
||||
this.freeStrengthen = this.hasGrowthNode(10801);
|
||||
|
||||
@@ -45,14 +50,14 @@ public class StarTowerModifiers {
|
||||
this.strengthenDiscount += 30;
|
||||
}
|
||||
|
||||
// Bonus max level
|
||||
// Bonus potential max level (Ocean of Souls)
|
||||
if (this.hasGrowthNode(30301)) {
|
||||
this.bonusMaxPotentialLevel = 6;
|
||||
} else if (this.hasGrowthNode(20601)) {
|
||||
this.bonusMaxPotentialLevel = 4;
|
||||
}
|
||||
|
||||
// Shop
|
||||
// Shop (Monolith Premium)
|
||||
if (this.hasGrowthNode(20702)) {
|
||||
this.shopGoodsCount = 8;
|
||||
} else if (this.hasGrowthNode(20402)) {
|
||||
@@ -74,9 +79,34 @@ public class StarTowerModifiers {
|
||||
this.shopRerollPrice = 100;
|
||||
}
|
||||
|
||||
this.shopDiscountTier1 = this.hasGrowthNode(20202) && game.getDifficulty() >= 3;
|
||||
this.shopDiscountTier2 = this.hasGrowthNode(20502) && game.getDifficulty() >= 4;
|
||||
this.shopDiscountTier3 = this.hasGrowthNode(20802) && game.getDifficulty() >= 5;
|
||||
// Shop discount (Member Discount)
|
||||
this.shopDiscountTier1 = game.getDifficulty() >= 3 && this.hasGrowthNode(20202);
|
||||
this.shopDiscountTier2 = game.getDifficulty() >= 4 && this.hasGrowthNode(20502);
|
||||
this.shopDiscountTier3 = game.getDifficulty() >= 5 && this.hasGrowthNode(20802);
|
||||
|
||||
// Bonus potential levels (Potential Boost)
|
||||
if (game.getDifficulty() >= 7 && this.hasGrowthNode(30802)) {
|
||||
this.bonusStrengthenChance = 0.3;
|
||||
} else if (game.getDifficulty() >= 6 && this.hasGrowthNode(30502)) {
|
||||
this.bonusStrengthenChance = 0.2;
|
||||
} else if (game.getDifficulty() >= 6 && this.hasGrowthNode(30202)) {
|
||||
this.bonusStrengthenChance = 0.1;
|
||||
}
|
||||
|
||||
// Bonus potential levels (Butterflies Inside)
|
||||
if (game.getDifficulty() >= 7 && this.hasGrowthNode(30901)) {
|
||||
this.bonusPotentialChance = 0.3;
|
||||
this.bonusMaxPotentialLevel = 2;
|
||||
} else if (game.getDifficulty() >= 7 && this.hasGrowthNode(30801)) {
|
||||
this.bonusPotentialChance = 0.2;
|
||||
this.bonusMaxPotentialLevel = 1;
|
||||
} else if (game.getDifficulty() >= 6 && this.hasGrowthNode(30201)) {
|
||||
this.bonusPotentialChance = 0.1;
|
||||
this.bonusMaxPotentialLevel = 1;
|
||||
} else if (game.getDifficulty() >= 5 && this.hasGrowthNode(20801)) {
|
||||
this.bonusPotentialChance = 0.05;
|
||||
this.bonusMaxPotentialLevel = 1;
|
||||
}
|
||||
}
|
||||
|
||||
public boolean hasGrowthNode(int nodeId) {
|
||||
|
||||
Reference in New Issue
Block a user