Add fusion icon on party and summary screen
This commit is contained in:
1 parent
3fea44de6f
commit
1861823673
2 files changed
+27
No files matched your search
@@ -853,6 +853,18 @@ class PartySlot extends Phaser.GameObjects.Container {
|
||||
slotInfoContainer.add(slotGenderText);
|
||||
}
|
||||
|
||||
if (this.pokemon.fusionSpecies) {
|
||||
const splicedIcon = this.scene.add.image(0, 0, 'icon_spliced');
|
||||
splicedIcon.setScale(0.5);
|
||||
splicedIcon.setOrigin(0, 0);
|
||||
if (this.slotIndex >= battlerCount)
|
||||
splicedIcon.setPositionRelative(slotLevelLabel, 36 - (genderSymbol ? 8 : 0), 0.5);
|
||||
else
|
||||
splicedIcon.setPositionRelative(slotName, 76 - (genderSymbol ? 8 : 0), 3.5);
|
||||
|
||||
slotInfoContainer.add(splicedIcon);
|
||||
}
|
||||
|
||||
if (this.pokemon.status) {
|
||||
const statusIndicator = this.scene.add.sprite(0, 0, 'statuses');
|
||||
statusIndicator.setFrame(StatusEffect[this.pokemon.status?.effect].toLowerCase());
|
||||
|
||||
Reference in new issue
Block a user