Inherit shininess from splices
This commit is contained in:
1 parent
28f8fdfdc1
commit
79c5b3d4f3
5 files changed
+12
-8
No files matched your search
@@ -686,7 +686,7 @@ class PartySlot extends Phaser.GameObjects.Container {
|
||||
slotInfoContainer.add(statusIndicator);
|
||||
}
|
||||
|
||||
if (this.pokemon.shiny) {
|
||||
if (this.pokemon.isShiny()) {
|
||||
const shinyStar = this.scene.add.image(0, 0, 'shiny_star');
|
||||
shinyStar.setOrigin(0, 0);
|
||||
shinyStar.setPositionRelative(slotName, -8, 2);
|
||||
|
||||
@@ -190,11 +190,11 @@ export default class SummaryUiHandler extends UiHandler {
|
||||
this.summaryContainer.setVisible(true);
|
||||
this.cursor = -1;
|
||||
|
||||
this.shinyOverlay.setVisible(this.pokemon.shiny);
|
||||
this.shinyOverlay.setVisible(this.pokemon.isShiny());
|
||||
|
||||
this.numberText.setText(Utils.padInt(this.pokemon.species.speciesId, 3));
|
||||
this.numberText.setColor(getTextColor(!this.pokemon.shiny ? TextStyle.SUMMARY : TextStyle.SUMMARY_GOLD));
|
||||
this.numberText.setShadowColor(getTextColor(!this.pokemon.shiny ? TextStyle.SUMMARY : TextStyle.SUMMARY_GOLD, true));
|
||||
this.numberText.setColor(getTextColor(!this.pokemon.isShiny() ? TextStyle.SUMMARY : TextStyle.SUMMARY_GOLD));
|
||||
this.numberText.setShadowColor(getTextColor(!this.pokemon.isShiny() ? TextStyle.SUMMARY : TextStyle.SUMMARY_GOLD, true));
|
||||
|
||||
this.pokemonSprite.play(this.pokemon.getSpriteKey(true));
|
||||
this.pokemon.cry();
|
||||
|
||||
Reference in new issue
Block a user