From f07c8117a623fff115243237ce206d101bcdac5d Mon Sep 17 00:00:00 2001 From: Admin Date: Fri, 18 Sep 2026 05:45:53 +0000 Subject: [PATCH] Use class max hull in legacy HUD --- src/game-v4.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game-v4.js b/src/game-v4.js index aa72123..31ad32d 100644 --- a/src/game-v4.js +++ b/src/game-v4.js @@ -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); } }