mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-14 20:32:17 +02:00
Merge branch 'implement-super-luck-and-compound-eyes' of https://github.com/EvasiveAce/pokerogue into implement-super-luck-and-compound-eyes
This commit is contained in:
commit
70cd009c63
@ -2478,7 +2478,7 @@ export default class BattleScene extends SceneBase {
|
|||||||
const difficultyWaveIndex = this.gameMode.getWaveForDifficulty(this.currentBattle.waveIndex);
|
const difficultyWaveIndex = this.gameMode.getWaveForDifficulty(this.currentBattle.waveIndex);
|
||||||
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(BonusItemChanceAbAttr) || this.getPlayerPokemon()?.getPassiveAbility().hasAttr(BonusItemChanceAbAttr)) {
|
if (this.getPlayerPokemon()?.hasAbilityWithAttr(BonusItemChanceAbAttr)) {
|
||||||
chances += Math.floor(chances * 1.2);
|
chances += Math.floor(chances * 1.2);
|
||||||
}
|
}
|
||||||
if (isFinalBoss) {
|
if (isFinalBoss) {
|
||||||
|
Loading…
Reference in New Issue
Block a user