Update src/phases/select-modifier-phase.ts

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
This commit is contained in:
ImperialSympathizer 2024-10-17 14:58:32 -04:00 committed by GitHub
parent 759a301fd9
commit a386e2b93a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -262,7 +262,7 @@ export class SelectModifierPhase extends BattlePhase {
multiplier = this.customModifierSettings.rerollMultiplier; multiplier = this.customModifierSettings.rerollMultiplier;
} }
const baseMultiplier = Math.min(Math.ceil(this.scene.currentBattle.waveIndex / 10) * baseValue * Math.pow(2, this.rerollCount) * multiplier, Number.MAX_SAFE_INTEGER); const baseMultiplier = Math.min(Math.ceil(this.scene.currentBattle.waveIndex / 10) * baseValue * (this.rerollCount ** 2) * multiplier, Number.MAX_SAFE_INTEGER);
// Apply Black Sludge to reroll cost // Apply Black Sludge to reroll cost
const modifiedRerollCost = new NumberHolder(baseMultiplier); const modifiedRerollCost = new NumberHolder(baseMultiplier);