diff --git a/CHANGELOG.md b/CHANGELOG.md index 62aedfe..b80c62d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ All notable changes to this project are documented here. The project follows - Opening a link from a list now moves the map to it, zoomed so the whole line fits beside the open panel. - Traffic for a carrier now leaves through that carrier's own transit port at the same POP, instead of being shared with every other transit port there. Networks that buy transit from the carrier get the same treatment, and a new switch on each transit port, Carry here, pulls that traffic across your network from POPs that have no port of that carrier. Prefer, Backup only and RouteScript still win, and Prefer only does so at the POP where you set it. +- Hurrying anything at sea now takes a cable ship, and there are only a few dozen in the world, so it costs millions. Speeding up your own subsea cable charters another ship for $3M plus $500 per km for every 30 days saved, and a rush repair on a subsea cut costs $1M plus $200 per km, where a cut on land still costs a few thousand. ## [2.3.0] — 2026-10-31 diff --git a/site/i18n/de.js b/site/i18n/de.js index 2d59e64..5038308 100644 --- a/site/i18n/de.js +++ b/site/i18n/de.js @@ -1918,6 +1918,7 @@ "failures.geopolitical_cable_cut":"Geopolitischer Kabelschnitt", "failures.hash_polarisation_on_your_lab_nearly":"Hash-Polarisation auf deinem {lab}: Fast jeder Flow landet auf demselben Mitglied. Das Bündel sagt, es ist up. Es ist auch voll.", "failures.hide_the_vacuum":"Staubsauger verstecken", +"failures.jump_the_cable_ship_queue":"Beim Kabelschiff vordrängeln", "failures.lacp_fast_slow_timer_mismatch_on":"LACP-Fast/Slow-Timer-Mismatch auf deinem {lab}: Ein Mitglied fliegt ständig per Timeout aus dem Bündel und kommt wieder.", "failures.lightning_hit_an_amp_site_on":"Ein Blitz hat einen Verstärkerstandort an {a}–{b} getroffen. Der Überspannungsschutz war Deko.", "failures.load_shedding_in_city_stage_n":"Lastabwurf in {city}
Heute Stufe {n}. Dein Generator hat gehustet, dann blieb das Licht an.", @@ -1998,6 +1999,7 @@ "failures.your_spares_kit_gets_it_back":"Dein Ersatzteillager bringt es morgen zurück.", "features.done_in_d_days":"fertig in {d} Tagen", "features.weekly_challenge_key":"Wochen-Challenge {key}", +"fiber_and_hardware.another_cable_ship_joins_the_lay":{"one":"Ein weiteres Kabelschiff verlegt mit.
Das Kabel ist {n} Tag voraus.","other":"Ein weiteres Kabelschiff verlegt mit.
Das Kabel ist {n} Tage voraus."}, "fiber_and_hardware.can_t_add_optic_why":"{optic} kann nicht hinzugefügt werden.
{why}", "fiber_and_hardware.dark_fiber_iru_signed_a_b":"Dark-Fiber-IRU unterschrieben.
{a}–{b} wird in etwa 30 Tagen gespleißt und übergeben.", "fiber_and_hardware.fiber_pair_n_is_lit_a":"Faserpaar {n} ist beleuchtet: {a}–{b}.
Noch ein ROADMaster 9000 und eine frische Kette von Verstärkern. Platz für {m} weitere Kanäle.", @@ -2413,6 +2415,7 @@ "link_panels.build_a_pop_here_first":"Bau hier zuerst einen POP.", "link_panels.cancel_the_iru":"IRU kündigen", "link_panels.carry_here":"Hierher leiten", +"link_panels.charter_another_cable_ship_price_30":"Noch ein Kabelschiff chartern {price} · −30 Tage", "link_panels.click_to_tear_down":"Klicken zum Abbauen", "link_panels.collecting_data_check_back_in_a":"Daten werden gesammelt. Schau in ein paar Tagen wieder rein.", "link_panels.congested_upgrade_it_or_add_a":"Überlastet. Rüste ihn auf oder füg einen parallelen Pfad hinzu.", @@ -2473,6 +2476,7 @@ "link_panels.on_standby_idle_while_the_other":"Im Standby: untätig, solange die anderen Links zwischen diesen Städten Platz haben.", "link_panels.on_standby_taking_the_overflow":"Im Standby: nimmt den Überlauf, weil die anderen Links zwischen diesen Städten voll sind.", "link_panels.one_backhoe_is_not_enough":"Ein Bagger reicht nicht.", +"link_panels.only_a_few_dozen_cable_ships":"Es gibt nur ein paar Dutzend Kabelschiffe, und die sind Monate im Voraus ausgebucht. Ein zweites für deine Verlegung kostet Millionen.", "link_panels.open_peer_but_not_on_any":"Offener Peer, aber an keinem IX, an dem du einen POP hast. Am nächsten: {city}", "link_panels.open_peer_but_not_on_any_bfbb":"Offener Peer, aber an keinem IX, an dem du einen POP hast", "link_panels.open_peer_join_the_route_server":"Offener Peer: Tritt dem Route Server am {ix} bei", diff --git a/site/i18n/es.js b/site/i18n/es.js index 6850479..f44e735 100644 --- a/site/i18n/es.js +++ b/site/i18n/es.js @@ -1916,6 +1916,7 @@ "failures.geopolitical_cable_cut":"Corte geopolítico de cable", "failures.hash_polarisation_on_your_lab_nearly":"Polarización de hash en tu {lab}: casi todos los flujos caen en el mismo miembro. El paquete dice que está activo. También está lleno.", "failures.hide_the_vacuum":"Esconder la aspiradora", +"failures.jump_the_cable_ship_queue":"Colarse en la cola del buque cablero", "failures.lacp_fast_slow_timer_mismatch_on":"Desajuste de temporizadores LACP rápido/lento en tu {lab}: un miembro sale del paquete por tiempo y vuelve una y otra vez.", "failures.lightning_hit_an_amp_site_on":"Un rayo cayó en un sitio de amplificación en {a}–{b}. El protector contra sobretensiones era decorativo.", "failures.load_shedding_in_city_stage_n":"Cortes programados en {city}
Fase {n} hoy. Tu generador tosió y luego mantuvo las luces encendidas.", @@ -1996,6 +1997,7 @@ "failures.your_spares_kit_gets_it_back":"Tu kit de repuestos lo recupera mañana.", "features.done_in_d_days":"listo en {d} días", "features.weekly_challenge_key":"Desafío semanal {key}", +"fiber_and_hardware.another_cable_ship_joins_the_lay":{"one":"Otro buque cablero se suma al tendido.
El cable va {n} día adelantado.","other":"Otro buque cablero se suma al tendido.
El cable va {n} días adelantado."}, "fiber_and_hardware.can_t_add_optic_why":"No se puede añadir {optic}.
{why}", "fiber_and_hardware.dark_fiber_iru_signed_a_b":"IRU de fibra oscura firmada.
{a}–{b} se empalmará y se entregará en unos 30 días.", "fiber_and_hardware.fiber_pair_n_is_lit_a":"El par de fibra {n} está iluminado: {a}–{b}.
Otro ROADMaster 9000 y una cadena nueva de amplificadores. Hay sitio para {m} canales más.", @@ -2411,6 +2413,7 @@ "link_panels.build_a_pop_here_first":"Construye primero un POP aquí.", "link_panels.cancel_the_iru":"Cancelar la IRU", "link_panels.carry_here":"Llevar aquí", +"link_panels.charter_another_cable_ship_price_30":"Fletar otro buque cablero {price} · −30 días", "link_panels.click_to_tear_down":"Haz clic para desmontar", "link_panels.collecting_data_check_back_in_a":"Recopilando datos. Vuelve en unos días.", "link_panels.congested_upgrade_it_or_add_a":"Congestionado. Mejóralo o añade una ruta paralela.", @@ -2471,6 +2474,7 @@ "link_panels.on_standby_idle_while_the_other":"En espera: inactivo mientras los demás enlaces entre estas ciudades tengan sitio.", "link_panels.on_standby_taking_the_overflow":"En espera: lleva el desbordamiento, porque los demás enlaces entre estas ciudades están llenos.", "link_panels.one_backhoe_is_not_enough":"Una retroexcavadora no basta.", +"link_panels.only_a_few_dozen_cable_ships":"Solo existen unas pocas decenas de buques cableros, reservados con meses de antelación, así que uno más para tu tendido cuesta millones.", "link_panels.open_peer_but_not_on_any":"Open peer, pero no en ningún IX donde tengas POP. Más cercano: {city}", "link_panels.open_peer_but_not_on_any_bfbb":"Open peer, pero no en ningún IX donde tengas POP", "link_panels.open_peer_join_the_route_server":"Open peer: únete al route server de {ix}", diff --git a/site/i18n/fr.js b/site/i18n/fr.js index 6fdb579..b4899e8 100644 --- a/site/i18n/fr.js +++ b/site/i18n/fr.js @@ -1916,6 +1916,7 @@ "failures.geopolitical_cable_cut":"Coupure de câble géopolitique", "failures.hash_polarisation_on_your_lab_nearly":"Polarisation du hash sur ton {lab} : presque tous les flux tombent sur le même membre. Le bundle se dit up. Il est aussi plein.", "failures.hide_the_vacuum":"Cacher l’aspirateur", +"failures.jump_the_cable_ship_queue":"Doubler la file du navire câblier", "failures.lacp_fast_slow_timer_mismatch_on":"Timers LACP fast/slow incohérents sur ton {lab} : un membre n’arrête pas de sortir du bundle sur timeout et d’y revenir.", "failures.lightning_hit_an_amp_site_on":"La foudre a frappé un site d’amplification sur {a}–{b}. Le parafoudre était décoratif.", "failures.load_shedding_in_city_stage_n":"Délestage à {city}
Niveau {n} aujourd’hui. Ton groupe électrogène a toussé, puis a gardé la lumière allumée.", @@ -1996,6 +1997,7 @@ "failures.your_spares_kit_gets_it_back":"Ton kit de rechange le remet en route demain.", "features.done_in_d_days":"réussi en {d} jours", "features.weekly_challenge_key":"Défi hebdo {key}", +"fiber_and_hardware.another_cable_ship_joins_the_lay":{"one":"Un autre navire câblier rejoint la pose.
Le câble a {n} jour d’avance.","other":"Un autre navire câblier rejoint la pose.
Le câble a {n} jours d’avance."}, "fiber_and_hardware.can_t_add_optic_why":"Impossible d’ajouter {optic}.
{why}", "fiber_and_hardware.dark_fiber_iru_signed_a_b":"IRU de fibre noire signé.
{a}–{b} sera soudée et livrée dans environ 30 jours.", "fiber_and_hardware.fiber_pair_n_is_lit_a":"Paire de fibres {n} allumée : {a}–{b}.
Encore un ROADMaster 9000 et une nouvelle chaîne d’amplificateurs. De la place pour {m} canaux de plus.", @@ -2411,6 +2413,7 @@ "link_panels.build_a_pop_here_first":"Construis d’abord un POP ici.", "link_panels.cancel_the_iru":"Résilier l’IRU", "link_panels.carry_here":"Acheminer ici", +"link_panels.charter_another_cable_ship_price_30":"Affréter un autre navire câblier {price} · −30 jours", "link_panels.click_to_tear_down":"Clique pour couper la session", "link_panels.collecting_data_check_back_in_a":"Collecte des données en cours. Repasse dans quelques jours.", "link_panels.congested_upgrade_it_or_add_a":"Saturé. Augmente sa capacité ou ajoute un chemin parallèle.", @@ -2471,6 +2474,7 @@ "link_panels.on_standby_idle_while_the_other":"En attente : au repos tant que les autres liens entre ces villes ont de la place.", "link_panels.on_standby_taking_the_overflow":"En attente : il prend le débordement, car les autres liens entre ces villes sont pleins.", "link_panels.one_backhoe_is_not_enough":"Une pelleteuse ne suffit pas.", +"link_panels.only_a_few_dozen_cable_ships":"Il n’existe que quelques dizaines de navires câbliers, réservés des mois à l’avance : en ajouter un à ta pose coûte des millions.", "link_panels.open_peer_but_not_on_any":"Peer ouvert, mais sur aucun IX où tu as un POP. Le plus proche : {city}", "link_panels.open_peer_but_not_on_any_bfbb":"Peer ouvert, mais sur aucun IX où tu as un POP", "link_panels.open_peer_join_the_route_server":"Peer ouvert : rejoins le route server de {ix}", diff --git a/site/i18n/it.js b/site/i18n/it.js index 7a6a0cc..804e05a 100644 --- a/site/i18n/it.js +++ b/site/i18n/it.js @@ -1916,6 +1916,7 @@ "failures.geopolitical_cable_cut":"Taglio geopolitico dei cavi", "failures.hash_polarisation_on_your_lab_nearly":"Polarizzazione dell’hash su {lab}: quasi tutti i flussi finiscono sullo stesso membro. Il bundle dice di essere su. È anche pieno.", "failures.hide_the_vacuum":"Nascondi l’aspirapolvere", +"failures.jump_the_cable_ship_queue":"Salta la coda della nave posacavi", "failures.lacp_fast_slow_timer_mismatch_on":"Timer LACP fast/slow non allineati su {lab}: un membro continua a uscire dal bundle per timeout e a rientrare.", "failures.lightning_hit_an_amp_site_on":"Un fulmine ha colpito un sito di amplificazione su {a}–{b}. Lo scaricatore era decorativo.", "failures.load_shedding_in_city_stage_n":"Distacchi a rotazione a {city}
Oggi stage {n}. Il tuo generatore ha tossito, poi ha tenuto le luci accese.", @@ -1996,6 +1997,7 @@ "failures.your_spares_kit_gets_it_back":"Il tuo kit di ricambi lo rimette in piedi domani.", "features.done_in_d_days":"fatto in {d} giorni", "features.weekly_challenge_key":"Sfida settimanale {key}", +"fiber_and_hardware.another_cable_ship_joins_the_lay":{"one":"Un’altra nave posacavi si unisce alla posa.
Il cavo è in anticipo di {n} giorno.","other":"Un’altra nave posacavi si unisce alla posa.
Il cavo è in anticipo di {n} giorni."}, "fiber_and_hardware.can_t_add_optic_why":"Impossibile aggiungere {optic}.
{why}", "fiber_and_hardware.dark_fiber_iru_signed_a_b":"IRU di dark fiber firmato.
{a}–{b} sarà giuntata e consegnata in circa 30 giorni.", "fiber_and_hardware.fiber_pair_n_is_lit_a":"Coppia di fibre {n} accesa: {a}–{b}.
Un altro ROADMaster 9000 e una nuova catena di amplificatori. Spazio per altri {m} canali.", @@ -2411,6 +2413,7 @@ "link_panels.build_a_pop_here_first":"Prima costruisci un POP qui.", "link_panels.cancel_the_iru":"Disdici l’IRU", "link_panels.carry_here":"Instrada qui", +"link_panels.charter_another_cable_ship_price_30":"Noleggia un’altra nave posacavi {price} · −30 giorni", "link_panels.click_to_tear_down":"Clicca per chiudere la sessione", "link_panels.collecting_data_check_back_in_a":"Raccolta dati in corso. Ripassa tra qualche giorno.", "link_panels.congested_upgrade_it_or_add_a":"Congestionato. Potenzialo o aggiungi un percorso parallelo.", @@ -2471,6 +2474,7 @@ "link_panels.on_standby_idle_while_the_other":"In standby: a riposo finché gli altri link tra queste città hanno spazio.", "link_panels.on_standby_taking_the_overflow":"In standby: prende il traffico in eccesso, perché gli altri link tra queste città sono pieni.", "link_panels.one_backhoe_is_not_enough":"Una ruspa non basta.", +"link_panels.only_a_few_dozen_cable_ships":"Esistono solo poche decine di navi posacavi, prenotate con mesi di anticipo: aggiungerne una alla tua posa costa milioni.", "link_panels.open_peer_but_not_on_any":"Peer aperto, ma non su nessun IX dove hai un POP. Il più vicino: {city}", "link_panels.open_peer_but_not_on_any_bfbb":"Peer aperto, ma non su nessun IX dove hai un POP", "link_panels.open_peer_join_the_route_server":"Peer aperto: entra nel route server di {ix}", diff --git a/site/i18n/pt.js b/site/i18n/pt.js index a4c9e7d..48a611f 100644 --- a/site/i18n/pt.js +++ b/site/i18n/pt.js @@ -1916,6 +1916,7 @@ "failures.geopolitical_cable_cut":"Corte geopolítico de cabo", "failures.hash_polarisation_on_your_lab_nearly":"Polarização de hash no seu {lab}: quase todo fluxo cai no mesmo membro. O bundle diz que está up. Também está lotado.", "failures.hide_the_vacuum":"Esconder o aspirador", +"failures.jump_the_cable_ship_queue":"Furar a fila do navio cabeiro", "failures.lacp_fast_slow_timer_mismatch_on":"Timer LACP fast/slow desencontrado no seu {lab}: um membro vive dando timeout no bundle e voltando.", "failures.lightning_hit_an_amp_site_on":"Um raio atingiu um site de amplificação em {a}–{b}. O protetor de surto era decorativo.", "failures.load_shedding_in_city_stage_n":"Rodízio de energia em {city}
Stage {n} hoje. Seu gerador tossiu, depois manteve as luzes acesas.", @@ -1996,6 +1997,7 @@ "failures.your_spares_kit_gets_it_back":"Seu kit de sobressalentes traz de volta amanhã.", "features.done_in_d_days":"feito em {d} dias", "features.weekly_challenge_key":"Desafio semanal {key}", +"fiber_and_hardware.another_cable_ship_joins_the_lay":{"one":"Outro navio cabeiro entra no lançamento.
O cabo está {n} dia adiantado.","other":"Outro navio cabeiro entra no lançamento.
O cabo está {n} dias adiantado."}, "fiber_and_hardware.can_t_add_optic_why":"Não dá para adicionar {optic}.
{why}", "fiber_and_hardware.dark_fiber_iru_signed_a_b":"IRU de dark fiber assinado.
{a}–{b} será emendada e entregue em uns 30 dias.", "fiber_and_hardware.fiber_pair_n_is_lit_a":"Par de fibras {n} aceso: {a}–{b}.
Mais um ROADMaster 9000 e uma nova cadeia de amplificadores. Espaço para mais {m} canais.", @@ -2411,6 +2413,7 @@ "link_panels.build_a_pop_here_first":"Construa um POP aqui primeiro.", "link_panels.cancel_the_iru":"Cancelar o IRU", "link_panels.carry_here":"Trazer para cá", +"link_panels.charter_another_cable_ship_price_30":"Fretar outro navio cabeiro {price} · −30 dias", "link_panels.click_to_tear_down":"Clique para encerrar", "link_panels.collecting_data_check_back_in_a":"Coletando dados. Volte em alguns dias.", "link_panels.congested_upgrade_it_or_add_a":"Congestionado. Faça upgrade ou adicione um caminho paralelo.", @@ -2471,6 +2474,7 @@ "link_panels.on_standby_idle_while_the_other":"De reserva: ocioso enquanto os outros links entre estas cidades tiverem espaço.", "link_panels.on_standby_taking_the_overflow":"De reserva: levando o excedente, porque os outros links entre estas cidades estão cheios.", "link_panels.one_backhoe_is_not_enough":"Uma retroescavadeira não basta.", +"link_panels.only_a_few_dozen_cable_ships":"Existem só algumas dezenas de navios cabeiros, reservados com meses de antecedência, então mais um para o seu lançamento custa milhões.", "link_panels.open_peer_but_not_on_any":"Peer aberto, mas em nenhum IX onde você tem POP. O mais próximo: {city}", "link_panels.open_peer_but_not_on_any_bfbb":"Peer aberto, mas em nenhum IX onde você tem POP", "link_panels.open_peer_join_the_route_server":"Peer aberto: entre no route server do {ix}", diff --git a/src/game/10-catalog/60-reach-and-subsea.js b/src/game/10-catalog/60-reach-and-subsea.js index 02f479c..c112af7 100644 --- a/src/game/10-catalog/60-reach-and-subsea.js +++ b/src/game/10-catalog/60-reach-and-subsea.js @@ -20,7 +20,11 @@ function setCableReady(l,ready,day=S.day){const shift=ready-l.ready; const f='sub'+k;if(Number.isFinite(l[f])&&l[f]>day)l[f]=Math.max(day+1,l[f]+shift); }l.ready=ready; } -const crewCost=l=>Math.round(15000+l.km*6); +// Hurrying anything at sea means a cable ship, and there are only a few dozen in the world, booked months ahead: +// a second one for your build is a multi-million charter, and jumping the repair queue costs about what a repair does. +const SHIP_MOB=3000000,SHIP_KM=500,SHIP_FIX=1000000,SHIP_FIX_KM=200; +const crewCost=l=>Math.round(l.sub?SHIP_MOB+l.km*SHIP_KM:15000+l.km*6); +const shipFix=km=>Math.round(SHIP_FIX+km*SHIP_FIX_KM); const crewSteps=l=>Math.max(0,Math.ceil((l.ready-S.day-1)/30)); // Old saves lack purchase dates. Only shorten dates beyond any valid remaining // commissioning window. Credit elapsed time since the actual cable finish; diff --git a/src/game/85-incidents/20-failures.js b/src/game/85-incidents/20-failures.js index 647234e..568b9e5 100644 --- a/src/game/85-incidents/20-failures.js +++ b/src/game/85-incidents/20-failures.js @@ -84,7 +84,7 @@ function fireFailure(only){ const pool=only&&scnRule('anchors')?live.filter(anchorProne):live;if(!pool.length)return;const l=pick(pool.flatMap(x=>{const w=(x.cable&&CAB[x.cable].age==='old'?3:1)*(x.cable&&CAB[x.cable].fragile?3:1)*(tw(x)?4*(scnRule('anchors')?3:1):1)*(scnRule('sharks')&&x.sub?2:1)*(vn(x)?3:1)*(!x.sub&&andesPair(x.a,x.b)?4:1)*(monsoon&&inl(x)?3:1)*(x.sub&&(x.a==='oos'||x.b==='oos')?3:1);return Array(w).fill(x);})),dur=10+Math.floor(Math.random()*8),trc=l.trench||l.id,hit=S.links.filter(x=>(x.trench||x.id)===trc);hit.forEach(x=>x.cut=Math.max(x.cut||0,S.day+dur)); const A=CITY[l.a].name,B=CITY[l.b].name,au=CITY[l.a].au&&CITY[l.b].au,auSummer=mon>=11||mon<=1; const en=l.sub&&(CITY[l.a].au||CITY[l.b].au)&&!(l.cable&&CAB[l.cable].fragile)&&Math.random()<0.35?pick([N_('failures.box_jellyfish_season_at_the_a'),N_('failures.a_great_white_took_an_interest')]):l.cable&&CAB[l.cable].fragile&&Math.random()<0.8?pick([N_('failures.your_a_b_cable_is_cut'),N_('failures.a_b_is_down_same_cable')]):!l.sub&&CITY[l.a].land==='nzs'&&CITY[l.b].land==='nzs'&&Math.random()<0.75?pick([N_('failures.a_kea_pulled_the_rubber_seals'),N_('failures.the_sandflies_drove_your_splicing'),N_('failures.a_farmer_s_post_hole_digger')]):l.cable==='cook'&&Math.random()<0.6?N_('failures.a_ferry_dropped_anchor_in_cook'):!l.sub&&au&&Math.random()<0.75?pick([N_('failures.a_sulphur_crested_cockatoo_chewed'),N_('failures.a_kangaroo_hit_the_fiber_hut'),N_('failures.thieves_dug_up_your_a_b'),N_('failures.a_kilometre_of_copper_went_missing'),N_('failures.a_backhoe_putting_in_a_new'),N_('failures.the_emus_won_again_a_mob'),N_('failures.a_kangaroo_boxed_your_field_tech'),N_('failures.a_drop_bear_fell_on_the'),N_('failures.an_eastern_brown_snake_moved_into'),...((S.day%365)/30.42>=8&&(S.day%365)/30.42<11?[N_('failures.magpie_swooping_season_the_field')]:[]),...(auSummer?[N_('failures.bushfire_season_the_fiber_along_a')]:[]),...(nullPair(l.a,l.b)?[N_('failures.your_a_b_fiber_broke_somewhere')]:[])]):l.sub&&(l.a==='bda'||l.b==='bda')&&Math.random()<0.7?pick([N_('failures.your_a_b_cable_went_quiet'),N_('failures.the_repair_ship_s_compass_spun')]):l.sub&&(l.a==='tbu'||l.b==='tbu')&&Math.random()<0.7?pick([N_('failures.an_undersea_volcano_erupted_next_to'),N_('failures.the_seabed_off_tonga_slid_down')]):vn(l)&&Math.random()<0.8?pick([N_('failures.another_of_vietnam_s_subsea_cables'),N_('failures.your_a_b_cable_broke_in')]):!l.sub&&(l.a==='drw'||l.b==='drw')&&Math.random()<0.7?pick([N_('failures.a_crocodile_took_a_bite_out'),N_('failures.termites_ate_the_duct_on_a')]):tw(l)&&Math.random()<0.8?pick([N_('failures.a_cargo_ship_forgot_to_raise'),N_('failures.another_anchor_another_cut_your_a'),N_('failures.a_fishing_boat_with_an_unusually')]):l.sub&&(l.a==='oos'||l.b==='oos')&&Math.random()<0.8?pick([N_('failures.a_trawler_off_ostend_dragged_its'),N_('failures.a_wind_farm_service_vessel_dropped')]):!l.sub&&(CITY[l.a].ca||CITY[l.b].ca)&&Math.random()<0.4?pick([N_('failures.a_beaver_chewed_through_your_a'),N_('failures.your_a_b_fiber_is_down'),N_('failures.frost_heave_cracked_the_duct_on')]):!l.sub&&andesPair(l.a,l.b)?pick([N_('failures.a_landslide_in_the_andes_buried'),N_('failures.snow_closed_the_mountain_pass_and'),N_('failures.an_earthquake_shook_your_a_b'),N_('failures.a_llama_herd_trampled_the_fiber')]):!l.sub&&(CITY[l.a].india||CITY[l.b].india)?pick([N_('failures.road_widening_near_a_cut_your'),N_('failures.the_monsoon_flooded_a_manhole_on'),N_('failures.a_digger_found_your_a_b')]):l.sub?pick([N_('failures.a_curious_shark_bit_your_subsea'),N_('failures.a_ship_dragged_its_anchor_across'),N_('failures.an_undersea_landslide_snapped_a_b')]):pick([N_('failures.a_backhoe_found_your_fiber_between'),N_('failures.squirrels_chewed_through_a_b_they'),N_('failures.road_works_cut_a_b_nobody')]); - addInc({type,ref:trc,until:S.day+dur,msg:tr(en,{a:A,b:B})+(hit.length>1?' '+tr('failures.all_n_links_in_that_trench',{n:hit.length}):''),cost:Math.max(4000,Math.round(hit.reduce((a,x)=>a+x.mo,0)*0.5))},en); + addInc({type,ref:trc,until:S.day+dur,msg:tr(en,{a:A,b:B})+(hit.length>1?' '+tr('failures.all_n_links_in_that_trench',{n:hit.length}):''),...cutFix(l,hit)},en); }else if(type==='crash'||type==='power'){ const c=pick(Object.keys(S.pops).flatMap(x=>type==='power'&&(CITY[x].za||CITY[x].blackout)?[x,x,x]:type==='crash'&&RG[S.pops[x].rgen||0].flaky?[x,x,x]:[x])),pp=S.pops[c],slow=slowBoot(c),dur=(type==='crash'?2+Math.floor(Math.random()*2):3+Math.floor(Math.random()*3))*(type==='crash'&&S.ev.sanction>S.day?2:1)+(slow?2+Math.floor(Math.random()*3):0); if(type==='crash'&&(pp.routers||1)>=2){pp.rdown=S.day+dur;S.stats.incidents++;S.stats.survived++;toast(tr('failures.router_crash_in_city_one_router',{city:CITY[c].name,slow:slow?' '+tr('failures.the_crashed_one_what',{what:esc(pick(SLOW_BOOT))}):'',d:dur}),'good');sfx('alert');return;} @@ -119,6 +119,8 @@ const gamingCount=()=>S.biz.reduce((n,b)=>n+(BIZ_T[b.type]?.gaming?1:0),0); const FLOOD_WHO=[N_('failures.a_botnet_of_40_000_smart'),N_('failures.every_unpatched_baby_monitor_in'),N_('failures.a_gaming_clan_that_lost_one'),N_('failures.a_fridge_that_achieved_sentience_and'),N_('failures.a_crypto_bro_shorting_your_stock'),N_('failures.a_teenager_with_a_stolen_credit'),N_('failures.a_rival_isp_s_stress_test'),N_('failures.ten_thousand_smart_light_bulbs'),N_('failures.a_printer_just_one_printer_nobody'),N_('failures.a_botnet_run_from_a_cloud'),N_('failures.somebody_who_did_not_like_your'),N_('failures.the_internet_connected_kettles_of_a')]; function incTitle(t){return {ring:tr('failures.metro_ring_cut'),site:tr('common.site_outage'),cut:tr('common.fiber_cut'),crash:tr('common.router_crash'),power:tr('common.power_outage'),transit:tr('common.upstream_outage'),ixloop:tr('common.ix_meltdown'),leak:tr('common.route_leak'),ddos:tr('common.ddos_attack'),fabric:tr('common.fabric_outage'),depeer:tr('common.peering_spat'),fatwave:tr('failures.fat_fingered_wave'),label:tr('failures.patch_panel_mishap'),interop:tr('core.interop_failure'),mtu:tr('common.mtu_mismatch'),krroute:tr('failures.rerouted_via_hong_kong'),ctrlplane:tr('failures.control_plane_meltdown'),lacp:tr('common.lacp_trouble'),loss:tr('common.packet_loss'),pmtud:tr('failures.pmtud_black_hole'),oops:tr('common.oops'),cleaner:tr('common.vacuum_incident'),prepend:tr('common.prepend_ageddon'),rpki:tr('common.rpki_invalid'),amp:tr('common.amplifier_failure'),roadmff:tr('failures.fat_fingered_roadm'),optic:tr('common.dead_optic'),maint:tr('common.maintenance_window_3a92'),ac:tr('common.cooling_failure'),hijack:tr('common.bgp_hijack'),shutdown:tr('common.government_shutdown'),redsea:tr('failures.geopolitical_cable_cut')}[t]||tr('common.incident');} const LINKCUT_TR=['cut','redsea'],LINKCUT_ID=['fatwave','label','interop'],POPDOWN=['crash','power','oops','cleaner','maint','shutdown'],IXDOWN=['ixloop'],TDOWN=['transit','prepend'],LINKEQ=['mtu','amp','roadmff','optic']; +// A rush repair: crews for a trench, a cable ship for the sea (shipFix, 60-reach-and-subsea.js). +const cutFix=(l,hit)=>{const c=Math.max(4000,Math.round(hit.reduce((a,x)=>a+x.mo,0)*0.5));return l.sub?{cost:Math.max(c,shipFix(l.km)),fix:tr('failures.jump_the_cable_ship_queue')}:{cost:c};}; function remainUntil(pred){let u=0;for(const x of S.inc)if(pred(x))u=Math.max(u,x.until);return u;} // Remove an incident, then restore each affected thing to whatever other incidents still hold it down. function clearInc(i){ diff --git a/src/game/85-incidents/40-chaos-monkey.js b/src/game/85-incidents/40-chaos-monkey.js index 6798c37..e4370bf 100644 --- a/src/game/85-incidents/40-chaos-monkey.js +++ b/src/game/85-incidents/40-chaos-monkey.js @@ -35,7 +35,7 @@ function mkSnip(){const M=S.monkey,live=S.links.filter(l=>l.kind!=='vxc'&&!linkD const smp=live.length>40?Array.from({length:40},()=>pick(live)):live,l=pick(smp.flatMap(x=>mkWeak(x)?[x,x,x,x,x]:[x])); const dur=rint(3,4),trc=l.trench||l.id,hit=S.links.filter(x=>(x.trench||x.id)===trc),A=CITY[l.a].name,B=CITY[l.b].name,before=R.served; hit.forEach(x=>x.cut=Math.max(x.cut||0,S.day+dur));M.n++;M.c=l.a; - addInc({type:'cut',ref:trc,until:S.day+dur,msg:tr(pick(MK_SNIPS),{a:A,b:B}),cost:Math.max(4000,Math.round(hit.reduce((a,x)=>a+x.mo,0)*0.5))},''); + addInc({type:'cut',ref:trc,until:S.day+dur,msg:tr(pick(MK_SNIPS),{a:A,b:B}),...cutFix(l,hit)},''); compute();const i=S.inc[S.inc.length-1],imp=Math.max(0,before-R.served);if(i)i.impact=imp; const felt=before>1&&imp>=before*0.03;if(felt)M.hurt++;else S.stats.survived++; toast(felt?`🐒 ${incTitle('cut')}
${esc(i?i.msg:'')}`:tr('chaos_monkey.rerouted',{a:A,b:B}),felt?'bad':'good',[],i?incOpen(i):null);sfx(felt?'err':'alert'); diff --git a/src/game/90-actions/87-fiber-and-hardware.js b/src/game/90-actions/87-fiber-and-hardware.js index af7b388..eea1ac5 100644 --- a/src/game/90-actions/87-fiber-and-hardware.js +++ b/src/game/90-actions/87-fiber-and-hardware.js @@ -33,6 +33,6 @@ Object.assign(ACT,{ addPair:({id})=>{const l=S.links.find(x=>x.id===id);if(!l||l.kind!=='df'||!l.own||!isRdm(l.sys)||l.ready>S.day)return;const n=Math.max(1,l.pairs|0);if(n>=pairsMax(l))return;if((l.ch||[]).length+soldSlots(l){const l=S.links.find(x=>x.id===id),to=l&&sysNext(l);if(!to||!techOk('sys',to,DF_SYS[to].lvl))return;if(!spend(sysUpCost(l)))return;l.sys=to;if(l.ready<=S.day){l.eqDown=S.day+1;toast(tr('fiber_and_hardware.line_system_swap_all_channels_are'),'bad');}after();}, spares:({id})=>{const l=S.links.find(x=>x.id===id);if(!l)return;l.spares=!l.spares;sfx('click');after();}, - crews:({id,all})=>{const l=S.links.find(x=>x.id===id);if(!l||l.kind!=='df'||!l.own||l.ready<=S.day+1)return;const n=all?crewSteps(l):1,c=n*crewCost(l);if(!spend(c))return;const ready=Math.max(S.day+1,l.ready-30*n),saved=l.ready-ready;setCableReady(l,ready);toast(trn('fiber_and_hardware.more_crews_on_site_construction_is',saved,{n:saved}),'good');after();}, + crews:({id,all})=>{const l=S.links.find(x=>x.id===id);if(!l||l.kind!=='df'||!l.own||l.ready<=S.day+1)return;const n=all?crewSteps(l):1,c=n*crewCost(l);if(!spend(c))return;const ready=Math.max(S.day+1,l.ready-30*n),saved=l.ready-ready;setCableReady(l,ready);toast(l.sub?trn('fiber_and_hardware.another_cable_ship_joins_the_lay',saved,{n:saved}):trn('fiber_and_hardware.more_crews_on_site_construction_is',saved,{n:saved}),'good');after();}, addGen:({city})=>{const p=S.pops[city];if(!p||p.gen)return;if(!spend(GEN_COST))return;p.gen=true;floater(CITY[city].x,CITY[city].y-30,tr('common.generator'),'#FF8A3D');after();}, }); diff --git a/src/game/93-ui/70-link-panels.js b/src/game/93-ui/70-link-panels.js index c6c3a71..baed0a3 100644 --- a/src/game/93-ui/70-link-panels.js +++ b/src/game/93-ui/70-link-panels.js @@ -103,7 +103,7 @@ function dfPanel(l){ const load=R.load[l.id]||0,cap=dfCap(l),u=cap?load/cap:0,bld=l.ready>S.day,A=CITY[l.a].name,B=CITY[l.b].name,inc=S.inc.find(i=>i.ref===l.id||i.ref===(l.trench||l.id)),amps=ampCount(l.km),sysD=DF_SYS[l.sys]; let h=`
${tr('link_panels.dark_fiber_kind_km_km',{kind:l.own?tr('link_panels.your_own_build'):tr('common.leased_iru'),km:l.km.toLocaleString()})}

${A} ⇄ ${B}

`; if(bld){const tot=Math.max(1,l.ready-l.day),done=clamp((S.day-l.day)/tot,0,1); - h+=`

${l.own?tr('common.under_construction'):tr('common.being_spliced')}

${l.own?tr('link_panels.permits_trenching_splicing'):tr('common.iru_handover')}${tr('common.n_days_left',{n:l.ready-S.day})}
${l.own?`
${btn(tr('link_panels.hire_extra_crews_price_30_days',{price:fmt$(crewCost(l))}),'crews',{id:l.id},'sm',l.ready<=S.day+1||S.cash`:''}

${tr('link_panels.you_can_pre_install_optics_now')}

`;} + h+=`

${l.own?tr('common.under_construction'):tr('common.being_spliced')}

${l.own?tr('link_panels.permits_trenching_splicing'):tr('common.iru_handover')}${tr('common.n_days_left',{n:l.ready-S.day})}
${l.own?`
${btn(l.sub?tr('link_panels.charter_another_cable_ship_price_30',{price:fmt$(crewCost(l))}):tr('link_panels.hire_extra_crews_price_30_days',{price:fmt$(crewCost(l))}),'crews',{id:l.id},'sm',l.ready<=S.day+1||S.cash${l.sub?`

${tr('link_panels.only_a_few_dozen_cable_ships')}

`:''}`:''}

${tr('link_panels.you_can_pre_install_optics_now')}

`;} else if(inc&&linkDown(l))h+=`

${tr('common.dark_6bf5')}

${esc(inc.msg)}

${inc.cost?btn(`${esc(inc.fix||tr('common.rush_repair'))} ${fmt$(inc.cost)}`,'fixInc',{id:inc.id},'red',S.cash`; h+=`

${tr('common.capacity')}

${tr('link_panels.n_of_max_channels_lit',{n:(l.ch||[]).length,max:chMax(l)})}${soldSlots(l)?` · ${tr('link_panels.n_sold_as_alien_waves',{n:soldSlots(l)})}`:''}${fmtG(load)} / ${fmtG(cap)}
${seatPanel(l)}${l.own&&l.sub?`
${tr('common.cable_design')}${tr((SEA_DESIGNS[l.seaDesign]||SEA_DESIGNS.standard).n)}
`:''} diff --git a/src/i18n/en.js b/src/i18n/en.js index eb71f08..4efd0fd 100644 --- a/src/i18n/en.js +++ b/src/i18n/en.js @@ -1917,6 +1917,7 @@ "failures.geopolitical_cable_cut":"Geopolitical cable cut", "failures.hash_polarisation_on_your_lab_nearly":"Hash polarisation on your {lab}: nearly every flow hashes onto the same member. The bundle says it is up. It is also full.", "failures.hide_the_vacuum":"Hide the vacuum", +"failures.jump_the_cable_ship_queue":"Jump the cable-ship queue", "failures.lacp_fast_slow_timer_mismatch_on":"LACP fast/slow timer mismatch on your {lab}: one member keeps timing out of the bundle and coming back.", "failures.lightning_hit_an_amp_site_on":"Lightning hit an amp site on {a}–{b}. The surge protector was decorative.", "failures.load_shedding_in_city_stage_n":"Load shedding in {city}
Stage {n} today. Your generator coughed, then kept the lights on.", @@ -1997,6 +1998,7 @@ "failures.your_spares_kit_gets_it_back":"Your spares kit gets it back tomorrow.", "features.done_in_d_days":"done in {d} days", "features.weekly_challenge_key":"Weekly challenge {key}", +"fiber_and_hardware.another_cable_ship_joins_the_lay":{"one":"Another cable ship joins the lay.
The cable is {n} day ahead.","other":"Another cable ship joins the lay.
The cable is {n} days ahead."}, "fiber_and_hardware.can_t_add_optic_why":"Can't add {optic}.
{why}", "fiber_and_hardware.dark_fiber_iru_signed_a_b":"Dark fiber IRU signed.
{a}–{b} will be spliced and handed over in about 30 days.", "fiber_and_hardware.fiber_pair_n_is_lit_a":"Fiber pair {n} is lit: {a}–{b}.
Another ROADMaster 9000 and a fresh chain of amplifiers. Room for {m} more channels.", @@ -2412,6 +2414,7 @@ "link_panels.build_a_pop_here_first":"Build a POP here first.", "link_panels.cancel_the_iru":"Cancel the IRU", "link_panels.carry_here":"Carry here", +"link_panels.charter_another_cable_ship_price_30":"Charter another cable ship {price} · −30 days", "link_panels.click_to_tear_down":"Click to tear down", "link_panels.collecting_data_check_back_in_a":"Collecting data. Check back in a few days.", "link_panels.congested_upgrade_it_or_add_a":"Congested. Upgrade it or add a parallel path.", @@ -2472,6 +2475,7 @@ "link_panels.on_standby_idle_while_the_other":"On standby: idle while the other links between these cities have room.", "link_panels.on_standby_taking_the_overflow":"On standby: taking the overflow, because the other links between these cities are full.", "link_panels.one_backhoe_is_not_enough":"One backhoe is not enough.", +"link_panels.only_a_few_dozen_cable_ships":"Only a few dozen cable ships exist, and they are booked months ahead, so a second one for your lay costs millions.", "link_panels.open_peer_but_not_on_any":"Open peer, but not on any IX where you have a POP. Nearest: {city}", "link_panels.open_peer_but_not_on_any_bfbb":"Open peer, but not on any IX where you have a POP", "link_panels.open_peer_join_the_route_server":"Open peer: join the route server at {ix}", diff --git a/tests/subsea-acceleration.test.js b/tests/subsea-acceleration.test.js new file mode 100644 index 0000000..4a06aaf --- /dev/null +++ b/tests/subsea-acceleration.test.js @@ -0,0 +1,60 @@ +const test = require('node:test'); +const assert = require('node:assert/strict'); +const { load } = require('./harness'); + +// Hurrying anything at sea takes a cable ship: a charter for a build, a place in the repair queue for a cut. Both cost +// millions, while the same hurry on land stays cheap. +const start = "ACT.start({});S.cash=1e9;S.lvl=13;S.day=200;for(const g of GOALS)S.done[g.id]=0;"; + +test('more crews on a subsea build means chartering a cable ship, for millions', () => { + const { ev, dom, errors } = load(); + ev(start + "S.links=[{id:'sea',a:'lag',b:'bde',kind:'df',own:true,sub:true,sys:'roadm',km:6000,ch:[],day:200,ready:800,cut:0,mo:1}," + + "{id:'land',a:'fra',b:'ams',kind:'df',own:true,sys:'roadm',km:400,ch:[],day:200,ready:500,cut:0,mo:1}]"); + assert.equal(ev("crewCost(S.links[0])"), 3000000 + 6000 * 500, 'mobilising a ship plus its time at sea'); + assert.ok(ev("crewCost(S.links[1])") < 50000, 'land crews stay cheap'); + const cash = ev('S.cash'); + ev("ACT.crews({id:'sea'})"); + assert.equal(cash - ev('S.cash'), 6000000); + assert.equal(ev('S.links[0].ready'), 770); + assert.match(dom.window.document.body.innerHTML, /Another cable ship joins the lay/); + ev("UI.sel={type:'link',id:'sea'};renderPanel()"); + const panel = () => dom.window.document.querySelector('#panelBody').textContent; + assert.match(panel(), /Charter another cable ship/); + assert.match(panel(), /Only a few dozen cable ships exist/); + assert.doesNotMatch(panel(), /Hire extra crews/); + ev("UI.sel={type:'link',id:'land'};renderPanel()"); + assert.match(panel(), /Hire extra crews/); + assert.doesNotMatch(panel(), /cable ship/); + // The whole lay in one go is the charter times every 30 days left. + ev("S.cash=1e9;UI.sel={type:'link',id:'sea'};renderPanel()"); + assert.equal(ev("crewSteps(S.links[0])*crewCost(S.links[0])"), 19 * 6000000); + assert.deepEqual(errors, []); +}); + +test('a rush repair on a subsea cut, even on a leased wave, costs a cable ship, a trench cut stays cheap', () => { + const { ev, errors } = load(); + ev(start + "S.links=[{id:'sea',a:'lag',b:'bde',kind:'wave',sub:true,tier:0,km:6000,cut:0,mo:1000}];S.inc=[];fireFailure('cut')"); + const sea = JSON.parse(ev("JSON.stringify(S.inc.find(i=>i.type==='cut'))")); + assert.equal(sea.cost, 1000000 + 6000 * 200); + assert.equal(sea.fix, 'Jump the cable-ship queue'); + ev("S.links=[{id:'land',a:'fra',b:'ams',kind:'wave',tier:0,km:400,cut:0,mo:1000}];S.inc=[];fireFailure('cut')"); + const land = JSON.parse(ev("JSON.stringify(S.inc.find(i=>i.type==='cut'))")); + assert.equal(land.cost, 4000); + assert.equal(land.fix, undefined); + // Paying it brings the cable back at once, like any rush repair. + ev("S.links=[{id:'sea',a:'lag',b:'bde',kind:'wave',sub:true,tier:0,km:6000,cut:0,mo:1000}];S.inc=[];fireFailure('cut')"); + const id = ev("S.inc.find(i=>i.type==='cut').id"), cash = ev('S.cash'); + ev(`ACT.fixInc({id:'${id}'})`); + assert.equal(cash - ev('S.cash'), 2200000); + assert.equal(ev("linkDown(S.links[0])"), false); + assert.deepEqual(errors, []); +}); + +test('the chaos monkey snipping a subsea cable prices the rush the same way', () => { + const { ev, errors } = load(); + ev(start + "S.links=[{id:'sea',a:'lag',b:'bde',kind:'wave',sub:true,tier:0,km:3000,cut:0,mo:1000}];S.inc=[];" + + "S.monkey={n:0,hurt:0,until:S.day+100};mkSnip()"); + const i = JSON.parse(ev("JSON.stringify(S.inc.find(i=>i.type==='cut'))")); + assert.equal(i.cost, 1000000 + 3000 * 200); + assert.deepEqual(errors, []); +}); diff --git a/tests/subsea-upgrade-timing.test.js b/tests/subsea-upgrade-timing.test.js index 0f88d39..0d71cf3 100644 --- a/tests/subsea-upgrade-timing.test.js +++ b/tests/subsea-upgrade-timing.test.js @@ -129,11 +129,11 @@ test('one-click completion costs the same as repeated crew hires and advances pe const button = [...dom.window.document.querySelectorAll('#panelBody [data-act=crews]')].find(b => JSON.parse(b.dataset.args).all); assert.ok(button && !button.disabled, 'one-click option is available'); const cash = ev('S.cash'); - assert.ok(button.textContent.includes(ev('fmt$(30*Math.round(15000+15000*6))')), 'full price is shown before purchase'); + assert.ok(button.textContent.includes(ev('fmt$(30*Math.round(3000000+15000*500))')), 'full price is shown before purchase'); button.click(); const bulkDates = dates(ev), bulkCash = ev('S.cash'); assert.deepEqual(bulkDates, [101, 131, 281]); - assert.equal(cash - bulkCash, 30 * 105000); + assert.equal(cash - bulkCash, 30 * 10500000); const after = [...dom.window.document.querySelectorAll('#panelBody [data-act=crews]')]; assert.ok(after.every(b => b.disabled), 'both options stop at one day'); ev("ACT.crews({id:'cable',all:1})"); @@ -150,18 +150,18 @@ test('one-click completion is atomic when unaffordable and handles short or comp const { ev, dom } = load(); try { setup(ev); - ev("S.cash=30*105000-1;UI.sel={type:'link',id:'cable'};renderPanel()"); + ev("S.cash=30*10500000-1;UI.sel={type:'link',id:'cable'};renderPanel()"); const bulk = [...dom.window.document.querySelectorAll('#panelBody [data-act=crews]')].find(b => JSON.parse(b.dataset.args).all); assert.equal(bulk.disabled, true); ev("ACT.crews({id:'cable',all:1})"); - assert.equal(ev('S.cash'), 30 * 105000 - 1); + assert.equal(ev('S.cash'), 30 * 10500000 - 1); assert.equal(ev('S.links[0].ready'), 1000, 'no partial purchase'); - ev("S.cash=105000;S.links[0].ready=102;ACT.crews({id:'cable',all:1})"); + ev("S.cash=10500000;S.links[0].ready=102;ACT.crews({id:'cable',all:1})"); assert.equal(ev('S.cash'), 0); assert.equal(ev('S.links[0].ready'), 101, 'two days remaining costs one normal hire'); - assert.match(dom.window.document.body.textContent, /Construction is 1 day ahead\./); - ev("S.cash=105000;S.day=101;ACT.crews({id:'cable',all:1})"); - assert.equal(ev('S.cash'), 105000, 'completed construction cannot be rushed'); + assert.match(dom.window.document.body.textContent, /The cable is 1 day ahead\./); + ev("S.cash=10500000;S.day=101;ACT.crews({id:'cable',all:1})"); + assert.equal(ev('S.cash'), 10500000, 'completed construction cannot be rushed'); ev("S.day=100;S.links[0].ready=1000;S.links[0].own=false;ACT.crews({id:'cable',all:1})"); assert.equal(ev('S.links[0].ready'), 1000, 'leased handovers cannot buy construction crews'); } finally { dom.window.close(); }