add OverridesHelper.enemyHeldItems

This commit is contained in:
Felix Staud 2024-07-25 16:48:49 -07:00
parent a22db0df99
commit 8e09714904
1 changed files with 11 additions and 0 deletions

View File

@ -254,6 +254,17 @@ export class OverridesHelper {
return this;
}
/**
* Override the enemy (pokemon) held items
* @param items the items to hold
* @returns this
*/
enemyHeldItems(items: ModifierOverride[]) {
vi.spyOn(Overrides, "OPP_HELD_ITEMS_OVERRIDE", "get").mockReturnValue(items);
this.log("Enemy Pokemon held items set to:", items);
return this;
}
private log(...params: any[]) {
console.log("Overrides:", ...params);
}