Add splashes which use random Pokemon

This commit is contained in:
Madmadness65 2025-03-02 02:18:16 -06:00 committed by GitHub
parent bd3ad35c28
commit 1f69590b88
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -98,7 +98,7 @@ export default class TitleUiHandler extends OptionSelectUiHandler {
randomPokemon(): void {
const rand = Utils.randInt(1025, 1);
const pokemon = getPokemonSpecies(rand as Species);
if (this.splashMessage === "splashMessages:pokemon") {
if (this.splashMessage === "splashMessages:underratedPokemon" || "splashMessages:dontTalkAboutThePokemonIncident" || "splashMessages:aWildPokemonAppeared" || "splashMessages:aprilFools.removedPokemon") {
this.splashMessageText.setText(i18next.t(this.splashMessage, { pokemonName: pokemon.name }));
}
}