mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-27 10:42:25 +02:00
add methods to overridesHelper for new overrides
This commit is contained in:
parent
eb1d195866
commit
c080ba0b46
@ -276,6 +276,22 @@ export class OverridesHelper extends GameManagerHelper {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
enemyParty(species: Species[]) {
|
||||||
|
vi.spyOn(Overrides, "TRAINER_PARTY_OVERRIDE", "get").mockReturnValue(species);
|
||||||
|
this.log("Enemy trainer party set to:", species);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Forces the AI to always switch out
|
||||||
|
* @returns this
|
||||||
|
*/
|
||||||
|
forceTrainerSwitches() {
|
||||||
|
vi.spyOn(Overrides, "TRAINER_ALWAYS_SWITCHES_OVERRIDE", "get").mockReturnValue(true);
|
||||||
|
this.log("Trainers will always switch out");
|
||||||
|
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