Add typed depot logistics visibility, auto-strike, 16-block reach, and web panel controls
build / mod (push) Failing after 15s
build / mod (push) Failing after 15s
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user