This commit is contained in:
Xavion3 2025-02-21 03:27:14 -05:00 committed by GitHub
commit c7b0cbc373
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 4 deletions

View File

@ -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 = Math.pow((waveSetIndex + 1 + (0.75 + (((waveIndex - 1) % 10) + 1) / 10)) * 100, 1 + 0.005 * waveSetIndex) * moneyMultiplier;
const moneyValue = (this.currentBattle.waveIndex + 17.5) * 17 * moneyMultiplier;
return Math.floor(moneyValue / 10) * 10;
}

View File

@ -2536,7 +2536,7 @@ export class ModifierTypeOption {
constructor(type: ModifierType, upgradeCount: number, cost: number = 0) {
this.type = type;
this.upgradeCount = upgradeCount;
this.cost = Math.min(Math.round(cost), Number.MAX_SAFE_INTEGER);
this.cost = Math.min(Math.round(cost / 10) * 10, Number.MAX_SAFE_INTEGER);
}
}