From 6263e27f1cd4f32270270194cbacb633203662ec Mon Sep 17 00:00:00 2001 From: Xavion3 Date: Fri, 21 Feb 2025 18:31:13 +1100 Subject: [PATCH] Simplify formula Exactly the same for all integer values --- src/battle-scene.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/battle-scene.ts b/src/battle-scene.ts index c5d93c68b3f..ac80d2cd4a7 100644 --- a/src/battle-scene.ts +++ b/src/battle-scene.ts @@ -2576,9 +2576,7 @@ export default class BattleScene extends SceneBase { } getWaveMoneyAmount(moneyMultiplier: number): number { - const waveIndex = this.currentBattle.waveIndex; - const waveSetIndex = Math.ceil(waveIndex / 10) - 1; - const moneyValue = (waveSetIndex + 1 + (0.75 + (((waveIndex - 1) % 10) + 1) / 10)) * 170 * moneyMultiplier; + const moneyValue = (this.currentBattle.waveIndex / 10 + 1.75) * 170 * moneyMultiplier; return Math.floor(moneyValue / 10) * 10; }