add methods to overridesHelper for new overrides

This commit is contained in:
snoozbuster 2024-08-12 21:40:56 -07:00
parent eb1d195866
commit c080ba0b46
1 changed files with 16 additions and 0 deletions

View File

@ -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);
} }