Add back party heal to endless mode
This commit is contained in:
parent
653f3639c3
commit
1fd342aa11
|
@ -461,10 +461,7 @@ export class SelectBiomePhase extends BattlePhase {
|
||||||
const currentBiome = this.scene.arena.biomeType;
|
const currentBiome = this.scene.arena.biomeType;
|
||||||
|
|
||||||
const setNextBiome = (nextBiome: Biome) => {
|
const setNextBiome = (nextBiome: Biome) => {
|
||||||
if (this.scene.gameMode === GameMode.CLASSIC)
|
|
||||||
this.scene.unshiftPhase(new PartyHealPhase(this.scene, false));
|
this.scene.unshiftPhase(new PartyHealPhase(this.scene, false));
|
||||||
else
|
|
||||||
this.scene.fadeOutBgm(2000, true);
|
|
||||||
this.scene.unshiftPhase(new SwitchBiomePhase(this.scene, nextBiome));
|
this.scene.unshiftPhase(new SwitchBiomePhase(this.scene, nextBiome));
|
||||||
this.end();
|
this.end();
|
||||||
};
|
};
|
||||||
|
|
|
@ -860,8 +860,11 @@ export function getPlayerModifierTypeOptionsForWave(waveIndex: integer, count: i
|
||||||
|
|
||||||
export function getEnemyModifierTypesForWave(waveIndex: integer, count: integer, party: EnemyPokemon[], poolType: ModifierPoolType.WILD | ModifierPoolType.TRAINER): PokemonHeldItemModifierType[] {
|
export function getEnemyModifierTypesForWave(waveIndex: integer, count: integer, party: EnemyPokemon[], poolType: ModifierPoolType.WILD | ModifierPoolType.TRAINER): PokemonHeldItemModifierType[] {
|
||||||
const ret = new Array(count).fill(0).map(() => getNewModifierTypeOption(party, poolType).type as PokemonHeldItemModifierType);
|
const ret = new Array(count).fill(0).map(() => getNewModifierTypeOption(party, poolType).type as PokemonHeldItemModifierType);
|
||||||
if (waveIndex === 200)
|
if (waveIndex === 200) {
|
||||||
ret.push(modifierTypes.MINI_BLACK_HOLE());
|
const miniBlackHole = modifierTypes.MINI_BLACK_HOLE();
|
||||||
|
miniBlackHole.id = 'MINI_BLACK_HOLE';
|
||||||
|
ret.push(miniBlackHole);
|
||||||
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue