Changed to floor

This commit is contained in:
Ethan 2024-05-30 20:22:19 -04:00
parent 6dbebd815f
commit 5f18404c83

View File

@ -1961,7 +1961,7 @@ export default class BattleScene extends SceneBase {
const isFinalBoss = this.gameMode.isWaveFinal(this.currentBattle.waveIndex); const isFinalBoss = this.gameMode.isWaveFinal(this.currentBattle.waveIndex);
let chances = Math.ceil(difficultyWaveIndex / 10); let chances = Math.ceil(difficultyWaveIndex / 10);
if (this.getPlayerPokemon().getAbility().hasAttr(BonusItemChance)) { if (this.getPlayerPokemon().getAbility().hasAttr(BonusItemChance)) {
chances += Math.ceil(chances * 1.2); chances += Math.floor(chances * 1.2);
} }
if (isFinalBoss) { if (isFinalBoss) {
chances = Math.ceil(chances * 2.5); chances = Math.ceil(chances * 2.5);