[UI/UX] Always show starter's natures and ivs in evolution's dex entry (#6335)

Natures and ivs use starter's dexEntry
This commit is contained in:
Wlowscha 2025-08-22 15:57:45 +02:00 committed by GitHub
parent 187cd9e356
commit 9c498003aa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1777,7 +1777,9 @@ export class PokedexPageUiHandler extends MessageUiHandler {
this.blockInput = true;
ui.setMode(UiMode.POKEDEX_PAGE, "refresh").then(() => {
ui.showText(i18next.t("pokedexUiHandler:showNature"), null, () => {
const natures = globalScene.gameData.getNaturesForAttr(this.speciesStarterDexEntry?.natureAttr);
const starterDexEntry =
globalScene.gameData.dexData[this.getStarterSpeciesId(this.species.speciesId)];
const natures = globalScene.gameData.getNaturesForAttr(starterDexEntry.natureAttr);
ui.setModeWithoutClear(UiMode.OPTION_SELECT, {
options: natures
.map((n: Nature, _i: number) => {
@ -2829,7 +2831,8 @@ export class PokedexPageUiHandler extends MessageUiHandler {
this.statsContainer.setVisible(true);
this.statsContainer.updateIvs(this.speciesStarterDexEntry.ivs);
const ivs = globalScene.gameData.dexData[this.getStarterSpeciesId(this.species.speciesId)].ivs;
this.statsContainer.updateIvs(ivs);
}
clearText() {