mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-27 02:32:21 +02:00
Simplify formula
Exactly the same for all integer values
This commit is contained in:
parent
d4fb9d8a4c
commit
6263e27f1c
@ -2576,9 +2576,7 @@ export default class BattleScene extends SceneBase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getWaveMoneyAmount(moneyMultiplier: number): number {
|
getWaveMoneyAmount(moneyMultiplier: number): number {
|
||||||
const waveIndex = this.currentBattle.waveIndex;
|
const moneyValue = (this.currentBattle.waveIndex / 10 + 1.75) * 170 * moneyMultiplier;
|
||||||
const waveSetIndex = Math.ceil(waveIndex / 10) - 1;
|
|
||||||
const moneyValue = (waveSetIndex + 1 + (0.75 + (((waveIndex - 1) % 10) + 1) / 10)) * 170 * moneyMultiplier;
|
|
||||||
return Math.floor(moneyValue / 10) * 10;
|
return Math.floor(moneyValue / 10) * 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user