add OverridesHelper.startingLevel()

This commit is contained in:
Felix Staud 2024-07-25 15:26:21 -07:00
parent 5a173df24d
commit b16a28d5b8
1 changed files with 11 additions and 0 deletions

View File

@ -41,6 +41,17 @@ export class OverridesHelper {
return this;
}
/**
* Override the player (pokemon) starting level
* @param level the (pokemon) level to set
* @returns this
*/
startingLevel(level: Species | number): this {
vi.spyOn(Overrides, "STARTING_LEVEL_OVERRIDE", "get").mockReturnValue(level);
this.log(`Player Pokemon starting level set to ${level}!`);
return this;
}
/**
* Override the player (pokemon) {@linkcode Species | species}
* @param species the (pokemon) {@linkcode Species | species} to set