From caab08975e326c4c6976e0830ccf949c1e7f82fe Mon Sep 17 00:00:00 2001 From: zaccie Date: Mon, 21 Apr 2025 21:23:14 +1200 Subject: [PATCH] Fix boss level location fixing a problem where boss location was more offset that intended --- src/ui/battle-info.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/battle-info.ts b/src/ui/battle-info.ts index 4f9e59c8c89..4d0757b36ad 100644 --- a/src/ui/battle-info.ts +++ b/src/ui/battle-info.ts @@ -557,7 +557,6 @@ export default class BattleInfo extends Phaser.GameObjects.Container { this.ownedIcon, this.championRibbon, this.statusIndicator, - this.levelContainer, this.statValuesContainer, ].map(e => (e.x += 48 * (boss ? -1 : 1))); this.hpBar.x += 38 * (boss ? -1 : 1); @@ -565,6 +564,7 @@ export default class BattleInfo extends Phaser.GameObjects.Container { this.hpBar.setTexture(`overlay_hp${boss ? "_boss" : ""}`); this.box.setTexture(this.getTextureName()); this.statsBox.setTexture(`${this.getTextureName()}_stats`); + this.levelContainer.x += 2; } this.bossSegments = boss ? pokemon.bossSegments : 0;