mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-24 16:29:27 +02:00
Fix how "fill" of icon is calced
This commit is contained in:
parent
e17859ee65
commit
b1379b6e63
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user