mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-27 01:06:09 +00:00
add OverridesHelper.moveset()
This commit is contained in:
parent
c7a3ae24ac
commit
bb1e3f7d20
@ -74,6 +74,18 @@ export class OverridesHelper {
|
|||||||
return this;
|
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
|
* Override each wave to have or not have standard trainer battles
|
||||||
* @returns this
|
* @returns this
|
||||||
|
Loading…
Reference in New Issue
Block a user