mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-27 09:16:03 +00:00
add OverridesHelper.starterSpecies()
This commit is contained in:
parent
b0279f34f3
commit
f8e6230a14
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user