Merge pull request #6459 from fabske0/fix-enemy-level-position

[Bug] [UI] Fix enemy level position
This commit is contained in:
Sirz Benjie 2025-08-31 10:28:25 -05:00 committed by GitHub
commit 8a69c628d1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -183,12 +183,12 @@ export class EnemyBattleInfo extends BattleInfo {
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);
this.hpBar.y += 2 * (this.boss ? -1 : 1);
this.hpBar.setTexture(`overlay_hp${boss ? "_boss" : ""}`);
this.levelContainer.x += 2 * (boss ? -1 : 1);
this.box.setTexture(this.getTextureName());
this.statsBox.setTexture(`${this.getTextureName()}_stats`);
}