mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-05 07:52:17 +02:00
Apply unsafe fixes
This commit is contained in:
parent
5954a54782
commit
df51acef49
@ -258,13 +258,16 @@ export function getGymLeaderPartyTemplate() {
|
||||
case GameModes.CLASSIC:
|
||||
if (currentBattle?.waveIndex <= 20) {
|
||||
return trainerPartyTemplates.GYM_LEADER_1; // 1 avg 1 strong
|
||||
} else if (currentBattle?.waveIndex <= 30) {
|
||||
}
|
||||
if (currentBattle?.waveIndex <= 30) {
|
||||
return trainerPartyTemplates.GYM_LEADER_2; // 1 avg 1 strong 1 stronger
|
||||
} else if (currentBattle?.waveIndex <= 60) {
|
||||
// 50 and 60
|
||||
}
|
||||
// 50 and 60
|
||||
if (currentBattle?.waveIndex <= 60) {
|
||||
return trainerPartyTemplates.GYM_LEADER_3; // 2 avg 1 strong 1 stronger
|
||||
} else if (currentBattle?.waveIndex <= 90) {
|
||||
// 80 and 90
|
||||
}
|
||||
// 80 and 90
|
||||
if (currentBattle?.waveIndex <= 90) {
|
||||
return trainerPartyTemplates.GYM_LEADER_4; // 3 avg 1 strong 1 stronger
|
||||
}
|
||||
// 110+
|
||||
|
@ -1775,7 +1775,6 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
||||
if (doubleShiny) {
|
||||
return this.summonData.illusion?.basePokemon?.variant ?? this.variant;
|
||||
}
|
||||
|
||||
return this.getVariant();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user