mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-10-30 07:56:07 +01:00
* Clean up various phases Remove redundant code, utilize default parameters, clean up some leftover `strict-null` `TODO`s, replace `integer` with `number` * Replace `* as Utils` imports with named imports * Apply Biome
16 lines
480 B
TypeScript
16 lines
480 B
TypeScript
import { getPokemonNameWithAffix } from "#app/messages";
|
|
import i18next from "i18next";
|
|
import { SummonPhase } from "./summon-phase";
|
|
import { globalScene } from "#app/global-scene";
|
|
|
|
export class SummonMissingPhase extends SummonPhase {
|
|
preSummon(): void {
|
|
globalScene.ui.showText(
|
|
i18next.t("battle:sendOutPokemon", {
|
|
pokemonName: getPokemonNameWithAffix(this.getPokemon()),
|
|
}),
|
|
);
|
|
globalScene.time.delayedCall(250, () => this.summon());
|
|
}
|
|
}
|