rename overide to match

This commit is contained in:
snoozbuster 2024-08-12 21:37:54 -07:00
parent c1019bac39
commit e325af1f0b
2 changed files with 5 additions and 2 deletions

View File

@ -437,7 +437,7 @@ export default class Trainer extends Phaser.GameObjects.Container {
const party = this.scene.getEnemyParty();
const nonFaintedLegalPartyMembers = party.slice(this.scene.currentBattle.getBattlerCount()).filter(p => p.isAllowedInBattle()).filter(p => !trainerSlot || p.trainerSlot === trainerSlot);
if (Overrides.TRAINER_ALWAYS_SWITCHES) {
if (Overrides.TRAINER_ALWAYS_SWITCHES_OVERRIDE) {
return nonFaintedLegalPartyMembers.map(p => [party.indexOf(p), 100]);
}

View File

@ -119,7 +119,10 @@ class DefaultOverrides {
// --------------------------
// TRAINER/AI OVERRIDES
// --------------------------
readonly TRAINER_ALWAYS_SWITCHES: boolean = false;
/**
* Force enemy AI to always switch pkmn
*/
readonly TRAINER_ALWAYS_SWITCHES_OVERRIDE: boolean = false;
// -------------
// EGG OVERRIDES