Changes to plains arena pool

This commit is contained in:
Flashfyre committed 2023-03-29 12:23:52 -04:00
1 parent a739a1666f
commit 27c0b64a3f
8 files changed
+134 -81

No files matched your search

+1 -1
View File
@@ -285,7 +285,7 @@ class PartySlot extends Phaser.GameObjects.Container {
slotHpBar.setPositionRelative(slotBg, this.slotIndex ? 72 : 8, this.slotIndex ? 7 : 31);
slotHpBar.setOrigin(0, 0);
const hpRatio = this.pokemon.hp / this.pokemon.getMaxHp();
const hpRatio = this.pokemon.getHpRatio();
const slotHpOverlay = this.scene.add.sprite(0, 0, 'party_slot_hp_overlay', hpRatio > 0.5 ? 'high' : hpRatio > 0.25 ? 'medium' : 'low');
slotHpOverlay.setPositionRelative(slotHpBar, 16, 2);