add OverridesHelper.starterSpecies()

This commit is contained in:
Felix Staud 2024-07-25 15:19:16 -07:00
parent b0279f34f3
commit f8e6230a14
1 changed files with 11 additions and 0 deletions

View File

@ -41,6 +41,17 @@ export class OverridesHelper {
return this;
}
/**
* Override the player (pokemon) {@linkcode Species | species}
* @param species the (pokemon) {@linkcode Species | species} to set
* @returns this
*/
starterSpecies(species: Species | number): this {
vi.spyOn(Overrides, "STARTER_SPECIES_OVERRIDE", "get").mockReturnValue(species);
this.log(`Player Pokemon species set to ${Species[species]} (=${species})!`);
return this;
}
/**
* Override each wave to have or not have standard trainer battles
* @returns this