Hide Ribbons When Not Owned (#649)

* Candy/Ribbon UI Update

* Removes the overrides

No level 2000000000000000 runs for you

* checks for all root species

* Hide ribbon when not owned
This commit is contained in:
Akuma-Reiki 2024-05-08 12:35:27 -05:00 committed by GitHub
parent e93777e52a
commit ea1ed1352c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -291,6 +291,8 @@ export default class SummaryUiHandler extends UiHandler {
if(this.scene.gameData.starterData[this.pokemon.species.getRootSpeciesId()].classicWinCount > 0 && this.scene.gameData.starterData[this.pokemon.species.getRootSpeciesId(true)].classicWinCount > 0)
this.championRibbon.setVisible(true);
else
this.championRibbon.setVisible(false);
var currentFriendship = this.scene.gameData.starterData[this.pokemon.species.getRootSpeciesId()].friendship;
if (!currentFriendship || currentFriendship === undefined)