Merge remote-tracking branch 'origin/main' into keyboard-shortcuts

This commit is contained in:
Charlie Allom 2026-11-03 10:48:01 +00:00
commit c5c5aac970
No known key found for this signature in database
14 changed files with 92 additions and 2 deletions

View file

@ -432,6 +432,9 @@ const API_CMD={
metricSet:{args:[['id','entityId'],['v','string']],dom:['metIn'],watch:['pairMet'],
bind:a=>{$('metIn').value=String(a.v);},
doc:'Write the custom metric\'s number for the link\'s city pair, in the mode metricMode set. Select the link first (view.selLink), so the panel is showing the input.'},
seaRush:{args:[['id','entityId'],['all','boolean',false]],watch:['links.#id'],
quote:a=>{const l=S.links.find(x=>x.id===a.id);if(!l)return {};const k=prepSteps(l),n=a.all?k:Math.min(1,k);return {setup:n*prepCost(l),days:Math.min(n*PREP_STEP,Math.max(0,l.ready-prepFloor(l)))};},
doc:'Hurry the survey, permits and factory of your own subsea cable before laying starts: 30 days sooner per step (all: as fast as money goes), never sooner than the factory can make the cable.'},
layShip:{args:[['id','entityId']],watch:['links.#id'],
quote:a=>{const l=S.links.find(x=>x.id===a.id),q=l&&layQuote(l);return q?{setup:q.cost}:{};},
doc:'Book a second lay ship on your own cable before laying starts: it lays from the other end and halves that part of the build.'},