mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-17 13:52:18 +02:00
Changed to floor
This commit is contained in:
parent
6dbebd815f
commit
5f18404c83
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user