mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-24 16:29:27 +02:00
Update src/ui/summary-ui-handler.ts
Co-authored-by: Adrian T. <68144167+torranx@users.noreply.github.com>
This commit is contained in:
parent
f22de2ce9a
commit
aea0911deb
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user