Use class max hull in legacy HUD

This commit is contained in:
Admin 2026-09-18 05:45:53 +00:00
parent d5cd19cdb1
commit f07c8117a6

View File

@ -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);
}
}