add OverridesHelper.moveset()
This commit is contained in:
parent
c7a3ae24ac
commit
bb1e3f7d20
|
@ -74,6 +74,18 @@ export class OverridesHelper {
|
|||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Override the player (pokemon) {@linkcode Moves | moves}set
|
||||
* @param moveset the {@linkcode Moves | moves}set to set
|
||||
* @returns this
|
||||
*/
|
||||
moveset(moveset: Moves[]): this {
|
||||
vi.spyOn(Overrides, "MOVESET_OVERRIDE", "get").mockReturnValue(moveset);
|
||||
const movesetStr = moveset.map((moveId) => Moves[moveId]).join(", ");
|
||||
this.log(`Player Pokemon moveset set to ${movesetStr} (=[${moveset.join(", ")}])!`);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Override each wave to have or not have standard trainer battles
|
||||
* @returns this
|
||||
|
|
Loading…
Reference in New Issue