mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-08 01:12:17 +02:00
Fix boss level location
fixing a problem where boss location was more offset that intended
This commit is contained in:
parent
b89b945b11
commit
caab08975e
@ -557,7 +557,6 @@ export default class BattleInfo extends Phaser.GameObjects.Container {
|
|||||||
this.ownedIcon,
|
this.ownedIcon,
|
||||||
this.championRibbon,
|
this.championRibbon,
|
||||||
this.statusIndicator,
|
this.statusIndicator,
|
||||||
this.levelContainer,
|
|
||||||
this.statValuesContainer,
|
this.statValuesContainer,
|
||||||
].map(e => (e.x += 48 * (boss ? -1 : 1)));
|
].map(e => (e.x += 48 * (boss ? -1 : 1)));
|
||||||
this.hpBar.x += 38 * (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.hpBar.setTexture(`overlay_hp${boss ? "_boss" : ""}`);
|
||||||
this.box.setTexture(this.getTextureName());
|
this.box.setTexture(this.getTextureName());
|
||||||
this.statsBox.setTexture(`${this.getTextureName()}_stats`);
|
this.statsBox.setTexture(`${this.getTextureName()}_stats`);
|
||||||
|
this.levelContainer.x += 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.bossSegments = boss ? pokemon.bossSegments : 0;
|
this.bossSegments = boss ? pokemon.bossSegments : 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user