Update src/ui/summary-ui-handler.ts

Co-authored-by: Adrian T. <68144167+torranx@users.noreply.github.com>
This commit is contained in:
Jannik Tappert 2024-09-30 20:21:53 +02:00 committed by GitHub
parent f22de2ce9a
commit aea0911deb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -380,7 +380,7 @@ export default class SummaryUiHandler extends UiHandler {
this.friendshipText.setText(`${this.pokemon?.friendship || "0"} / 255`); this.friendshipText.setText(`${this.pokemon?.friendship || "0"} / 255`);
this.friendshipShadow.setCrop(0, 0, 16, 16 - (16 * ((this.pokemon?.friendship||0) / 255))); this.friendshipShadow.setCrop(0, 0, 16, 16 - (16 * ((this.pokemon?.friendship || 0) / 255)));
const doubleShiny = isFusion && this.pokemon.shiny && this.pokemon.fusionShiny; const doubleShiny = isFusion && this.pokemon.shiny && this.pokemon.fusionShiny;
const baseVariant = !doubleShiny ? this.pokemon.getVariant() : this.pokemon.variant; const baseVariant = !doubleShiny ? this.pokemon.getVariant() : this.pokemon.variant;