Added some missing type signatures

This commit is contained in:
Wlowscha 2025-05-29 23:36:21 +02:00
parent d4de55e6f0
commit 6e2c4d65fa
No known key found for this signature in database
GPG Key ID: 3C8F1AD330565D04

View File

@ -248,7 +248,7 @@ export class SelectModifierPhase extends BattlePhase {
} }
// Applies the effects of the chosen modifier // 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); const result = globalScene.addModifier(modifier, false, playSound, undefined, undefined, cost);
// Queue a copy of this phase when applying a TM or Memory Mushroom. // 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, // 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 // Opens the party menu specifically for fusions
private openFusionMenu(modifierType, cost, modifierSelectCallback) { private openFusionMenu(modifierType: PokemonModifierType, cost: number, modifierSelectCallback): void {
const party = globalScene.getPlayerParty(); const party = globalScene.getPlayerParty();
globalScene.ui.setModeWithoutClear( globalScene.ui.setModeWithoutClear(
UiMode.PARTY, UiMode.PARTY,
@ -303,7 +303,7 @@ export class SelectModifierPhase extends BattlePhase {
} }
// Opens the party menu to apply one of various modifiers // 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 party = globalScene.getPlayerParty();
const pokemonModifierType = modifierType as PokemonModifierType; const pokemonModifierType = modifierType as PokemonModifierType;
const isMoveModifier = modifierType instanceof PokemonMoveModifierType; const isMoveModifier = modifierType instanceof PokemonMoveModifierType;