add OverridesHelper.enemyLevel

This commit is contained in:
Felix Staud 2024-07-25 16:04:46 -07:00
parent 4c15fd86b0
commit a9031a3215
1 changed files with 11 additions and 0 deletions

View File

@ -188,6 +188,17 @@ export class OverridesHelper {
return this;
}
/**
* Override the enemy (pokemon) level
* @param level the level to set
* @returns this
*/
enemyLevel(level: number): this {
vi.spyOn(Overrides, "OPP_LEVEL_OVERRIDE", "get").mockReturnValue(level);
this.log(`Enemy Pokemon level set to ${level}!`);
return this;
}
private log(...params: any[]) {
console.log("Overrides:", ...params);
}