From 28d14ae45acd8aa2245be1e159760d9227553d2a Mon Sep 17 00:00:00 2001 From: Felix Staud Date: Fri, 12 Jul 2024 11:37:58 -0700 Subject: [PATCH] minor refactor of abstract `EncounterPokemonRequirement` --- .../mystery-encounter-requirements.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/data/mystery-encounters/mystery-encounter-requirements.ts b/src/data/mystery-encounters/mystery-encounter-requirements.ts index f31b37118ee..c00a31fa872 100644 --- a/src/data/mystery-encounters/mystery-encounter-requirements.ts +++ b/src/data/mystery-encounters/mystery-encounter-requirements.ts @@ -31,12 +31,10 @@ export abstract class EncounterSceneRequirement implements EncounterRequirement } export abstract class EncounterPokemonRequirement implements EncounterRequirement { - minNumberOfPokemon: number; - invertQuery: boolean; + protected minNumberOfPokemon: number; + protected invertQuery: boolean; - meetsRequirement(scene: BattleScene): boolean { - throw new Error("Method not implemented."); - } + abstract meetsRequirement(scene: BattleScene): boolean; // Returns all party members that are compatible with this requirement. For non pokemon related requirements, the entire party is returned.. queryParty(partyPokemon: PlayerPokemon[]): PlayerPokemon[] { @@ -954,3 +952,5 @@ export class WeightRequirement extends EncounterPokemonRequirement { return ["weight", pokemon.getWeight().toString()]; } } + +