mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-01 05:52:17 +02:00
[Bug] Fix improperly named sprite key for enemy boss' battle UI (#5888)
This commit is contained in:
parent
f9e6785c35
commit
8fcb33d11a
@ -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.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")
|
||||
.setOrigin(0);
|
||||
this.add(this.nameText);
|
||||
|
@ -29,7 +29,7 @@ export class EnemyBattleInfo extends BattleInfo {
|
||||
}
|
||||
|
||||
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 {
|
||||
|
Loading…
Reference in New Issue
Block a user