From b1379b6e63eaf1469c25c6e9d47d6f16dcee2bcb Mon Sep 17 00:00:00 2001 From: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> Date: Sat, 28 Sep 2024 15:35:23 +0200 Subject: [PATCH] Fix how "fill" of icon is calced --- src/ui/summary-ui-handler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/summary-ui-handler.ts b/src/ui/summary-ui-handler.ts index 1d203d2b806..8467ff2b9c8 100644 --- a/src/ui/summary-ui-handler.ts +++ b/src/ui/summary-ui-handler.ts @@ -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;