From 03f6f40ffebb820c68bf4ec79e2e57dde14cd1b0 Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Mon, 1 Apr 2024 13:32:12 -0400 Subject: [PATCH] Add enemy species override for testing purposes --- src/battle-scene.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/battle-scene.ts b/src/battle-scene.ts index 9f017db5e..924dcc0d7 100644 --- a/src/battle-scene.ts +++ b/src/battle-scene.ts @@ -67,6 +67,7 @@ export const STARTING_LEVEL_OVERRIDE = 0; export const STARTING_WAVE_OVERRIDE = 0; export const STARTING_BIOME_OVERRIDE = Biome.TOWN; export const STARTING_MONEY_OVERRIDE = 0; +export const ENEMY_SPECIES_OVERRIDE = 0; const DEBUG_RNG = false; export const startingWave = STARTING_WAVE_OVERRIDE || 1; @@ -809,6 +810,8 @@ export default class BattleScene extends Phaser.Scene { } addEnemyPokemon(species: PokemonSpecies, level: integer, trainerSlot: TrainerSlot, boss: boolean = false, dataSource?: PokemonData, postProcess?: (enemyPokemon: EnemyPokemon) => void): EnemyPokemon { + if (ENEMY_SPECIES_OVERRIDE) + species = getPokemonSpecies(ENEMY_SPECIES_OVERRIDE); const pokemon = new EnemyPokemon(this, species, level, trainerSlot, boss, dataSource); if (boss) { const secondaryIvs = Utils.getIvsFromId(Utils.randSeedInt(4294967295));