Add fusion luck as a separate field
This commit is contained in:
1 parent
bf2a83993c
commit
6b9542511f
4 files changed
+18
-6
No files matched your search
@@ -604,14 +604,14 @@ export default class SummaryUiHandler extends UiHandler {
|
||||
if (this.pokemon.isTerastallized())
|
||||
profileContainer.add(getTypeIcon(types.length, this.pokemon.getTeraType(), true));
|
||||
|
||||
if (this.pokemon.luck) {
|
||||
if (this.pokemon.getLuck()) {
|
||||
const luckLabelText = addTextObject(this.scene, 141, 28, 'Luck:', TextStyle.SUMMARY_ALT);
|
||||
luckLabelText.setOrigin(0, 0);
|
||||
profileContainer.add(luckLabelText);
|
||||
|
||||
const luckText = addTextObject(this.scene, 141 + luckLabelText.displayWidth + 2, 28, this.pokemon.luck.toString(), TextStyle.SUMMARY);
|
||||
const luckText = addTextObject(this.scene, 141 + luckLabelText.displayWidth + 2, 28, this.pokemon.getLuck().toString(), TextStyle.SUMMARY);
|
||||
luckText.setOrigin(0, 0);
|
||||
luckText.setTint(getVariantTint((Math.min(this.pokemon.luck - 1, 2)) as Variant));
|
||||
luckText.setTint(getVariantTint((Math.min(this.pokemon.getLuck() - 1, 2)) as Variant));
|
||||
profileContainer.add(luckText);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user