Add typed depot logistics visibility, auto-strike, 16-block reach, and web panel controls
build / mod (push) Failing after 15s

This commit is contained in:
2026-12-04 13:37:54 +03:00
parent a02b7d1177
commit 76ef94b537
31 changed files with 2225 additions and 106 deletions
+9
View File
@@ -6,6 +6,7 @@ const styles = [
["objects", "object", "#a9baf6"],
["contacts", "contact", "#f0bf6a"],
["interceptors", "interceptor", "#b2e68f"],
["sites", "site", "#ff9b52"],
];
const clamp = (x, low, high) => Math.min(high, Math.max(low, x));
@@ -116,6 +117,14 @@ export function createMap(canvas, {onSelect, onView, onTerrain}) {
ctx.stroke();
ctx.setLineDash([]);
}
if (point.key === selected && row.depotReach > 0) {
ctx.beginPath();
ctx.arc(x, y, Math.min(380, row.depotReach * scale), 0, Math.PI * 2);
ctx.setLineDash([5, 5]);
ctx.strokeStyle = "#ffb85c";
ctx.stroke();
ctx.setLineDash([]);
}
}
const focus = visible.find(item => item.key === selected);
if (focus) {