Fix how "fill" of icon is calced

This commit is contained in:
Jannik Tappert 2024-09-28 15:35:23 +02:00
parent e17859ee65
commit b1379b6e63

View File

@ -380,7 +380,7 @@ export default class SummaryUiHandler extends UiHandler {
this.friendshipText.setText(` ${this.pokemon?.friendship||"0"}/255`);
this.friendshipShadow.setCrop(0, 0, 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 baseVariant = !doubleShiny ? this.pokemon.getVariant() : this.pokemon.variant;