mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-29 19:52:27 +02:00
Pokemon cry in setSpeciesDetails
This commit is contained in:
parent
3e6b804b5e
commit
f69666a6b0
@ -577,9 +577,6 @@ export default class PokedexPageUiHandler extends MessageUiHandler {
|
|||||||
this.setSpecies(this.lastSpecies);
|
this.setSpecies(this.lastSpecies);
|
||||||
this.updateInstructions();
|
this.updateInstructions();
|
||||||
|
|
||||||
const crier = (this.lastSpecies.forms && this.lastSpecies.forms.length > 0) ? this.lastSpecies.forms[this.lastFormIndex] : this.lastSpecies;
|
|
||||||
crier.cry();
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -2168,6 +2165,12 @@ export default class PokedexPageUiHandler extends MessageUiHandler {
|
|||||||
this.pokemonGenderText.setText("");
|
this.pokemonGenderText.setText("");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (dexEntry.caughtAttr) {
|
||||||
|
this.lastSpecies.loadAssets(female!, formIndex, shiny, variant as Variant, true).then(() => {
|
||||||
|
const crier = (this.lastSpecies.forms && this.lastSpecies.forms.length > 0) ? this.lastSpecies.forms[formIndex ?? this.lastFormIndex] : this.lastSpecies;
|
||||||
|
crier.cry();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
if (dexEntry.caughtAttr || forSeen) {
|
if (dexEntry.caughtAttr || forSeen) {
|
||||||
const speciesForm = getPokemonSpeciesForm(species.speciesId, formIndex!); // TODO: is the bang correct?
|
const speciesForm = getPokemonSpeciesForm(species.speciesId, formIndex!); // TODO: is the bang correct?
|
||||||
|
Loading…
Reference in New Issue
Block a user