[Bug] Fix improperly named sprite key for enemy boss' battle UI (#5888)

This commit is contained in:
Sirz Benjie 2025-05-29 19:11:53 -05:00 committed by GitHub
parent f9e6785c35
commit 8fcb33d11a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -230,7 +230,7 @@ export default abstract class BattleInfo extends Phaser.GameObjects.Container {
this.box = globalScene.add.sprite(0, 0, this.getTextureName()).setName("box").setOrigin(1, 0.5); this.box = globalScene.add.sprite(0, 0, this.getTextureName()).setName("box").setOrigin(1, 0.5);
this.add(this.box); this.add(this.box);
this.nameText = addTextObject(player ? -115 : -124, player ? -15.2 : -11.2, "", TextStyle.BATTLE_INFO) this.nameText = addTextObject(posParams.nameTextX, posParams.nameTextY, "", TextStyle.BATTLE_INFO)
.setName("text_name") .setName("text_name")
.setOrigin(0); .setOrigin(0);
this.add(this.nameText); this.add(this.nameText);

View File

@ -29,7 +29,7 @@ export class EnemyBattleInfo extends BattleInfo {
} }
override getTextureName(): string { override getTextureName(): string {
return this.boss ? "pbinfo_enemy_boss_mini" : "pbinfo_enemy_mini"; return this.boss ? "pbinfo_enemy_boss" : "pbinfo_enemy_mini";
} }
override constructTypeIcons(): void { override constructTypeIcons(): void {