mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-27 09:16:03 +00:00
add OverridesHelper.enemyLevel
This commit is contained in:
parent
4c15fd86b0
commit
a9031a3215
@ -188,6 +188,17 @@ export class OverridesHelper {
|
|||||||
return this;
|
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[]) {
|
private log(...params: any[]) {
|
||||||
console.log("Overrides:", ...params);
|
console.log("Overrides:", ...params);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user