Add back party heal to endless mode

pull/2/head
Flashfyre 2023-10-24 00:31:09 -04:00
parent 653f3639c3
commit 1fd342aa11
2 changed files with 6 additions and 6 deletions

View File

@ -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();
}; };

View File

@ -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;
} }