[Bug][UI/UX] Make ribbon option in dex selectable with classic wins

https://github.com/pagefaultgames/pokerogue/pull/6720
This commit is contained in:
Wlowscha 2025-10-31 04:21:26 +01:00 committed by GitHub
parent 1d4a9259b8
commit d7cfb2087c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -776,7 +776,8 @@ export class PokedexPageUiHandler extends MessageUiHandler {
|| (this.tmMoves.length === 0 && o === MenuOptions.TM_MOVES)
|| (!globalScene.gameData.dexData[this.species.speciesId].ribbons.getRibbons()
&& o === MenuOptions.RIBBONS
&& !globalScene.showMissingRibbons);
&& !globalScene.showMissingRibbons
&& !globalScene.gameData.starterData[this.species.speciesId]?.classicWinCount);
const color = getTextColor(isDark ? TextStyle.SHADOW_TEXT : TextStyle.SETTINGS_VALUE, false);
const shadow = getTextColor(isDark ? TextStyle.SHADOW_TEXT : TextStyle.SETTINGS_VALUE, true);
return `[shadow=${shadow}][color=${color}]${label}[/color][/shadow]`;
@ -1778,6 +1779,7 @@ export class PokedexPageUiHandler extends MessageUiHandler {
} else if (
!globalScene.gameData.dexData[this.species.speciesId].ribbons.getRibbons()
&& !globalScene.showMissingRibbons
&& !globalScene.gameData.starterData[this.species.speciesId]?.classicWinCount
) {
ui.showText(i18next.t("pokedexUiHandler:noRibbons"));
error = true;