mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-27 01:06:09 +00:00
add OverridesHelper.startingLevel()
This commit is contained in:
parent
5a173df24d
commit
b16a28d5b8
@ -41,6 +41,17 @@ export class OverridesHelper {
|
|||||||
return this;
|
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}
|
* Override the player (pokemon) {@linkcode Species | species}
|
||||||
* @param species the (pokemon) {@linkcode Species | species} to set
|
* @param species the (pokemon) {@linkcode Species | species} to set
|
||||||
|
Loading…
Reference in New Issue
Block a user