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 ownedpull/651/head
parent
e93777e52a
commit
ea1ed1352c
|
@ -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)
|
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);
|
this.championRibbon.setVisible(true);
|
||||||
|
else
|
||||||
|
this.championRibbon.setVisible(false);
|
||||||
|
|
||||||
var currentFriendship = this.scene.gameData.starterData[this.pokemon.species.getRootSpeciesId()].friendship;
|
var currentFriendship = this.scene.gameData.starterData[this.pokemon.species.getRootSpeciesId()].friendship;
|
||||||
if (!currentFriendship || currentFriendship === undefined)
|
if (!currentFriendship || currentFriendship === undefined)
|
||||||
|
|
Loading…
Reference in New Issue