Pay to hurry the permits and factory of your own subsea cable (closes #258)

Before laying starts, seaRush buys 30 days a step (or all of them at once)
at $500k plus $60 a km, with the market's build prices. The floor is the
factory: 60 days plus a day per ~80 km from the order (prepMin, through
leadDays), then the lay ships still need their time at sea, which a second
ship still halves. 6,000 km: from 600 days of prep to 132 for about $13M.
This commit is contained in:
Frederic Jung 2026-11-03 10:35:16 +00:00
parent 4d609d996f
commit 823e4188be
No known key found for this signature in database
13 changed files with 89 additions and 1 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.'},