mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-09-23 23:13:42 +02:00
[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:
parent
187cd9e356
commit
9c498003aa
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user