From 9d86f5a481d21ee655836b1f14033a182b3cd324 Mon Sep 17 00:00:00 2001 From: Brian Fertig Date: Wed, 16 Sep 2026 20:19:47 -0600 Subject: [PATCH] Suppress compass nav chips during active combat MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - While `this.combat.active` is true, call `compass.refresh([])` and return early so edge arrows and name boxes step aside. - Combat chrome (threat markers, off-screen hostile arrows, kill feed) owns the screen edge while the player is shooting; nav chips would only compete with it. - The target set is recomputed every frame, so nothing is lost — a mid-fight discovery still pings above, and the first non-combat frame re-feeds the compass entries. --- js/scenes/GameScene.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/js/scenes/GameScene.js b/js/scenes/GameScene.js index 539f7d5..f678a68 100644 --- a/js/scenes/GameScene.js +++ b/js/scenes/GameScene.js @@ -2495,6 +2495,20 @@ export class GameScene extends Phaser.Scene { const cam = this.cameras.main; const view = { left: cam.scrollX, top: cam.scrollY, w: this.scale.width, h: this.scale.height }; + // COMBAT LIVE (a hostile up, or a wave run in flight — + // this.combat.active, the same predicate that raises the combat bar): + // the edge ARROWS and name BOXES yield to the fight — the combat + // chrome (threat markers, off-screen hostile arrows, the kill feed) + // owns the screen edge while the player is shooting, and the nav + // chips would only compete with it. refresh([]) retires the entries; + // the first non-combat frame re-feeds them — the target set is + // recomputed here every frame, so nothing is lost (a mid-fight + // discovery still pings above; only the compass display steps aside). + if (this.combat?.active) { + this.compass.refresh([], view, this.scale.width, this.scale.height, time, delta, this.ship); + return; + } + // The active route's NEXT STOP. In an intermediate system it is that // system's jump gate toward the destination (routeNextGate); in the // DESTINATION system it is the destination OBJECT itself (the last hop