From 6e2c4d65fa7f3e7de0c8648514b6e2c1cef99b13 Mon Sep 17 00:00:00 2001 From: Wlowscha <54003515+Wlowscha@users.noreply.github.com> Date: Thu, 29 May 2025 23:36:21 +0200 Subject: [PATCH] Added some missing type signatures --- src/phases/select-modifier-phase.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/phases/select-modifier-phase.ts b/src/phases/select-modifier-phase.ts index 9bd75ac85c4..f9dd535b8d2 100644 --- a/src/phases/select-modifier-phase.ts +++ b/src/phases/select-modifier-phase.ts @@ -248,7 +248,7 @@ export class SelectModifierPhase extends BattlePhase { } // Applies the effects of the chosen modifier - private applyModifier(modifier: Modifier, cost = 0, playSound = false) { + private applyModifier(modifier: Modifier, cost = 0, playSound = false): void { const result = globalScene.addModifier(modifier, false, playSound, undefined, undefined, cost); // Queue a copy of this phase when applying a TM or Memory Mushroom. // If the player selects either of these, then escapes out of consuming them, @@ -277,7 +277,7 @@ export class SelectModifierPhase extends BattlePhase { } // Opens the party menu specifically for fusions - private openFusionMenu(modifierType, cost, modifierSelectCallback) { + private openFusionMenu(modifierType: PokemonModifierType, cost: number, modifierSelectCallback): void { const party = globalScene.getPlayerParty(); globalScene.ui.setModeWithoutClear( UiMode.PARTY, @@ -303,7 +303,7 @@ export class SelectModifierPhase extends BattlePhase { } // Opens the party menu to apply one of various modifiers - private openModifierMenu(modifierType, cost, modifierSelectCallback) { + private openModifierMenu(modifierType: PokemonModifierType, cost: number, modifierSelectCallback): void { const party = globalScene.getPlayerParty(); const pokemonModifierType = modifierType as PokemonModifierType; const isMoveModifier = modifierType instanceof PokemonMoveModifierType;