add OverridesHelper.starterSpecies()

This commit is contained in:
Felix Staud 2024-07-25 15:19:16 -07:00
parent b0279f34f3
commit f8e6230a14

View File

@ -41,6 +41,17 @@ export class OverridesHelper {
return this; 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 * Override each wave to have or not have standard trainer battles
* @returns this * @returns this