mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-23 16:52:24 +02:00
Merge ce51718ffe
into 97aeceab58
This commit is contained in:
commit
c7b0cbc373
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user