add OverridesHelper.moveset()

This commit is contained in:
Felix Staud 2024-07-25 15:36:06 -07:00
parent c7a3ae24ac
commit bb1e3f7d20
1 changed files with 12 additions and 0 deletions

View File

@ -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