mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-03-06 18:09:10 +00:00
Add splashes which use random Pokemon
This commit is contained in:
parent
bd3ad35c28
commit
1f69590b88
@ -98,7 +98,7 @@ export default class TitleUiHandler extends OptionSelectUiHandler {
|
|||||||
randomPokemon(): void {
|
randomPokemon(): void {
|
||||||
const rand = Utils.randInt(1025, 1);
|
const rand = Utils.randInt(1025, 1);
|
||||||
const pokemon = getPokemonSpecies(rand as Species);
|
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 }));
|
this.splashMessageText.setText(i18next.t(this.splashMessage, { pokemonName: pokemon.name }));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user