Merge remote-tracking branch 'origin/main' into keyboard-shortcuts
This commit is contained in:
commit
c5c5aac970
14 changed files with 92 additions and 2 deletions
|
|
@ -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.'},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue