Use class max hull in legacy HUD
This commit is contained in:
parent
d5cd19cdb1
commit
f07c8117a6
@ -762,7 +762,7 @@ class GameScene extends Phaser.Scene {
|
||||
|
||||
if (nearest) {
|
||||
this.hudGraphics.fillStyle(0xd65757, 1);
|
||||
this.hudGraphics.fillRoundedRect(enemyX, barY, barWidth * (nearestHull / PIRATE_MAX_HULL), barHeight, 4);
|
||||
this.hudGraphics.fillRoundedRect(enemyX, barY, barWidth * (nearestHull / nearestMaxHull), barHeight, 4);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user