mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-04-21 00:58:33 +01:00
Fix multiple line enemy modifiers covering wave count
This commit is contained in:
parent
1e2bd0dbb9
commit
1ac9f239b7
@ -841,7 +841,8 @@ export default class BattleScene extends Phaser.Scene {
|
|||||||
}
|
}
|
||||||
|
|
||||||
updateUIPositions(): void {
|
updateUIPositions(): void {
|
||||||
this.waveCountText.setY(-(this.game.canvas.height / 6) + (this.enemyModifiers.filter(m => m.isIconVisible(this)).length ? 15 : 0));
|
const enemyModifierCount = this.enemyModifiers.filter(m => m.isIconVisible(this)).length;
|
||||||
|
this.waveCountText.setY(-(this.game.canvas.height / 6) + (enemyModifierCount ? enemyModifierCount <= 12 ? 15 : 24 : 0));
|
||||||
this.moneyText.setY(this.waveCountText.y + 10);
|
this.moneyText.setY(this.waveCountText.y + 10);
|
||||||
this.partyExpBar.setY(this.moneyText.y + 15);
|
this.partyExpBar.setY(this.moneyText.y + 15);
|
||||||
this.ui?.achvBar.setY((this.game.canvas.height / 6 + this.moneyText.y + 15));
|
this.ui?.achvBar.setY((this.game.canvas.height / 6 + this.moneyText.y + 15));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user