diff --git a/.claude/skills/gameplay-rules/SKILL.md b/.claude/skills/gameplay-rules/SKILL.md
index b8c5146..ecb01ed 100644
--- a/.claude/skills/gameplay-rules/SKILL.md
+++ b/.claude/skills/gameplay-rules/SKILL.md
@@ -62,3 +62,4 @@ These are what the game promises, held up by `tests/gameplay-rules.test.js` (one
| --- | --- | --- |
| F1 | A new network gets a gentle start: no outage before day 45, no event before day 40 and only good news before day 50, nothing sold out for 90 days, hardware prices hold for 180, and a new customer loses no mood for 15 days. | New players learn before they get punished. |
| F2 | On On-call, a simple build in a start city (broadband, the cheapest 100G transit, an exchange port with the route server) makes money within 3 months, in Frankfurt, New York, Singapore and Johannesburg. | Seeded today it turns a profit in month 1 or 2; a balance change that breaks this makes the start too hard. |
+| F3 | A specialist path (#187) only brings a customer type in below its level when the network can already serve it, or nearly: the spotted cities have POPs, the latency is met, the fiber carries at least three quarters of the smallest order. | Capability, not luck: an offer you cannot fulfil with a reasonable build is a trap. |
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 4d9898a..33382cb 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -8,6 +8,10 @@ All notable changes to this project are documented here. The project follows
## [2.0.0] — 2026-10-29
+- Customers now call when your network can already serve them, not only when your level says so (#187). A fast path between two finance cities brings trading firms, lit dark fiber brings AI interconnects, two diverse paths in one country bring sovereign clouds and broadband in a big city brings cloud gaming, each at its smallest size and with a note on what they spotted; your level still makes them bigger and more frequent.
+- Routers, line systems and optics one level above yours can be had early as a vendor demo unit (#187). Ask the vendor, wait about two weeks, then pay 60% over list until your level catches up; and you can dig your own dark fiber from level 2 as a pioneer, at 60% more than the level 3 price.
+- Take a seat on a new consortium subsea cable (#173). Capacity conferences offer them, and now and then a consortium calls from level 2: pay your share of the build, wait for the ship, then own one, two or four fiber pairs and light them with your own optics, your way onto your own subsea glass before Tier 1. A cut on that cable cuts your pairs too.
+- Pick a charter in your first month of a Normal game: Global backbone (the game as you know it, and the default) or Low-latency boutique (#187). The boutique gets more trading firms, pays them 40% more and has its own win, Speed of Light: beat the fastest leased latency on three finance routes with your own glass while two latency customers pay you. It comes with a badge and shows on your share card.
- A new start screen with four doors: Puzzles, Sandbox, Normal, and Scenarios & weekly. Every network now picks its rules when it starts, and they stay locked for that network; your saved games carry on exactly as before.
- Puzzles: small networks that carry real traffic, routed exactly like the main game (#190). Each puzzle has flows to deliver (eyeballs pulling from a content origin, circuits between two cities with a latency cap, best-effort traffic that may drop), and the map shows every link's load as it fills. Earn up to three stars: everything delivered, under budget, and still delivered when any single trench or cable is cut. Build with the real tools: link sizes from 10G to 800G, parallel links in the same trench or on a diverse route (also from the link panel), routers with real ports and limits, routing metrics, standby, lowest-latency paths for circuits, and the redundancy check. The whole world is open: any city can get a POP if it helps. Parallel links show their count and sizes, and selecting a city lights up every path it has. Eighteen puzzles in five packs, each teaching one idea: Fat Pipes, Router Rodeo, Traffic Cops, N-1 Club and Grand Tour. No clock, no bills, nothing breaks, and your main game is never touched.
- A new weekly puzzle every Sunday morning, the same for everyone: a themed puzzle with its own traffic, such as an ocean crossing, a ring, a latency sprint, island hopping or a detour around a busy hub, with its own name and a budget tuned so three stars take a smart design. The Puzzles door says "New this Sunday!" until you have played it, the list counts down to the next one, and your streak and share line use the week's name. A new puzzle week starts on Sunday at 06:00 Berlin time; offline, the game still has a weekly puzzle of its own.
diff --git a/site/i18n/de.js b/site/i18n/de.js
index b0585cb..7bbc9ff 100644
--- a/site/i18n/de.js
+++ b/site/i18n/de.js
@@ -1772,7 +1772,6 @@
"fiber_and_hardware.those_optics_need_the_regen_site":"Diese Optiken brauchen den Regen-Standort. Entferne zuerst die Langstreckenkanäle oder behalte den Standort.",
"fiber_modals.a_fiber_pair_of_your_own":"Ein eigenes Faserpaar. Das Glas ist billig, die Technik nicht: Du kaufst ein Line System mit einem Verstärker alle {km} km und dann Optiken für jeden Kanal. Deine Technik kann ausfallen, und du reparierst sie.",
"fiber_modals.a_fiber_pair_on_cable_km":"Ein Faserpaar auf {cable}, {km} km. Es teilt sich das Kabel mit den Waves aller anderen, Anker inklusive.",
-"fiber_modals.build_your_own_level_3":"Selbst bauen Level 3",
"fiber_modals.build_your_own_price_n_days":"Selbst bauen {price} · ~{n} Tage",
"fiber_modals.dark_fiber_across_the_chinese_border":"Dark Fiber über die chinesische Grenze ist nicht zu haben. Kauf stattdessen eine grenzüberschreitende Wave.",
"fiber_modals.dark_fiber_unlocks_at_customer_level":"Dark Fiber wird ab Kundenlevel 2 freigeschaltet. Du brauchst die Größe, damit sich eigene optische Technik lohnt.",
@@ -3507,6 +3506,39 @@
"sold_out.tier_1s_never_peer_at_ixs":"Tier 1s peeren nie an IXs",
"sold_out.wants_need_gbps_of_traffic_from":"Will ≥ {need} Gbps Traffic von dir (du schickst {dem})",
"sold_out.wants_you_to_be_a_tier":"Will, dass du Tier 2 bist oder ≥ {need} Gbps dorthin schickst (du schickst {dem})",
+"specialist.a_b_km_km_ready_in":"{a} ⇄ {b} · {km} km · etwa {ms} ms · fertig in etwa {n} Tagen",
+"specialist.a_consortium_is_selling_seats_on":"Ein Konsortium verkauft Plätze auf {name}, einem neuen Kabel von {a} nach {b}. Eigene Faserpaare darauf, noch bevor du Tier 1 bist.",
+"specialist.ask_for_a_demo_unit_p_n":"Demogerät: +{p} %, {n} Tage",
+"specialist.charter_signed_name":"Charta unterschrieben: {name}.",
+"specialist.consortium_seat":"Konsortialplatz",
+"specialist.consortium_seat_name":"Konsortialplatz: {name}",
+"specialist.demo_unit_ships_in_n_days":"Demogerät kommt in {n} Tagen",
+"specialist.dig_your_own_as_a_pioneer":"Selbst graben als Pionier (+{p} %) · {price} · {n} Tage",
+"specialist.global_backbone":"Globaler Backbone",
+"specialist.includes_pops_at_the_landings_price":"Inklusive POPs an den Landestationen: {price}.",
+"specialist.keep_it":"Behalten",
+"specialist.low_latency_boutique":"Low-Latency-Boutique",
+"specialist.n_fiber_pairs":{"one":"{n} Faserpaar","other":"{n} Faserpaare"},
+"specialist.part_owner_of_the_sea":"Miteigentümer des Meeres",
+"specialist.pick":"Wählen",
+"specialist.pick_a_charter":"Wähle eine Charta",
+"specialist.routes_r_of_n_beat_the":"Finanzrouten, auf denen deine eigene Glasfaser schneller ist als jeder gemietete Weg: {r}/{n} · zahlende Latenzkunden: {c}/{m}",
+"specialist.speed_of_light":"Lichtgeschwindigkeit",
+"specialist.spotted_your_broadband_in_a_one":"Sie haben dein Breitband in {a} entdeckt, einer der großen Privatkunden-Städte.",
+"specialist.spotted_your_cap_of_dark_fiber":"Sie haben deine {cap} beleuchtete Dark Fiber zwischen {a} und {b} entdeckt.",
+"specialist.spotted_your_ms_ms_a_b_path":"Sie haben deinen {ms}-ms-Weg {a}–{b} entdeckt.",
+"specialist.spotted_your_two_diverse_paths_a":"Sie haben deine zwei getrennten Wege zwischen {a} und {b} entdeckt.",
+"specialist.take_a_seat_on_a_consortium":"Nimm einen Platz auf einem Konsortialkabel",
+"specialist.the_classic_game_grow_everywhere_and":"Das klassische Spiel: überall wachsen, Kunden folgen deinem Level, Tier 1 ist der Sieg.",
+"specialist.the_consortium_runs_the_cable_your":"Das Konsortium betreibt das Kabel und seine Repeater. Deine Paare beleuchtest du mit eigenen Optiken; ein Schnitt im Kabel trifft auch sie.",
+"specialist.the_vendor_ships_a_demo_name":"Der Hersteller schickt in {n} Tagen ein Demo-{name}. Bis dein Level aufholt, kostet jedes Gerät {p} % mehr.",
+"specialist.trading_firms_and_other_latency_customers":"Handelsfirmen und andere Latenzkunden melden sich öfter und zahlen {p} % mehr. Gewinne Lichtgeschwindigkeit: schlag die schnellste gemietete Latenz auf {r} Finanzrouten mit eigener Glasfaser, während {c} Latenzkunden zahlen. Tier 1 zählt weiterhin.",
+"specialist.what_kind_of_network_are_you":"Was für ein Netz baust du? Du kannst noch {n} Tage wählen; bis dahin bist du ein Globaler Backbone.",
+"specialist.win_as_a_low_latency_boutique":"Gewinne als Low-Latency-Boutique",
+"specialist.won_on_date_your_own_glass":"Gewonnen am {date}: deine eigene Glasfaser schlug jeden gemieteten Weg.",
+"specialist.you_own_n_fiber_pairs_on":"Unterschrieben: dir gehören {n} Faserpaare auf {name}, {a} ⇄ {b}. Die Kabelschiffe legen ab; fertig in etwa {d} Tagen.",
+"specialist.your_own_fiber_pairs_on_a":"Eigene Faserpaare auf einem neuen Seekabel: zahl jetzt deinen Anteil am Bau und beleuchte sie mit eigenen Optiken, wenn es anlandet.",
+"specialist.your_own_glass_beats_every_leased":"Deine eigene Glasfaser schlägt auf drei Finanzrouten jeden gemieteten Weg, und die Trader zahlen dafür. Die Boutique hat gewonnen!",
"supply_chain.as_when_you_started":"wie bei deinem Start",
"supply_chain.chip_shortage_every_router_vendor_is":"Chipmangel! Jeder Router-Hersteller wartet auf dieselben Chips. Neue Router und Router-Upgrades kosten {n} Tage lang 40 % mehr. Lieferzeit: „ja“.",
"supply_chain.every_cable_ship_is_booked":"Jedes Kabelschiff ist ausgebucht. Hyperscaler haben jedes Kabelschiff und jeden Grabungstrupp der Welt angeheuert. Neue Glasfaser- und Kabelbauten kosten {n} Tage lang 30 % mehr.",
diff --git a/site/i18n/es.js b/site/i18n/es.js
index d81f013..6c4a07f 100644
--- a/site/i18n/es.js
+++ b/site/i18n/es.js
@@ -1770,7 +1770,6 @@
"fiber_and_hardware.those_optics_need_the_regen_site":"Esas ópticas necesitan el sitio regenerador. Quita primero los canales de larga distancia, o conserva el sitio.",
"fiber_modals.a_fiber_pair_of_your_own":"Un par de fibra propio. El vidrio es barato, el equipo no: compras un sistema de línea con un amplificador cada {km} km, y luego ópticas para cada canal. Tu equipo puede fallar, y tú lo arreglas.",
"fiber_modals.a_fiber_pair_on_cable_km":"Un par de fibra en {cable}, {km} km. Comparte cable con las ondas de todos los demás, anclas incluidas.",
-"fiber_modals.build_your_own_level_3":"Construye el tuyo nivel 3",
"fiber_modals.build_your_own_price_n_days":"Construye el tuyo {price} · ~{n} días",
"fiber_modals.dark_fiber_across_the_chinese_border":"La fibra oscura que cruza la frontera china no está a la venta. Compra una onda transfronteriza.",
"fiber_modals.dark_fiber_unlocks_at_customer_level":"La fibra oscura se desbloquea en el nivel de cliente 2. Necesitas la escala para justificar comprar tu propio equipo óptico.",
@@ -3505,6 +3504,39 @@
"sold_out.tier_1s_never_peer_at_ixs":"Los Tier 1 nunca hacen peering en IX",
"sold_out.wants_need_gbps_of_traffic_from":"Quiere ≥ {need} Gbps de tráfico tuyo (envías {dem})",
"sold_out.wants_you_to_be_a_tier":"Quiere que seas Tier 2, o que le envíes ≥ {need} Gbps (envías {dem})",
+"specialist.a_b_km_km_ready_in":"{a} ⇄ {b} · {km} km · unos {ms} ms · lista en unos {n} días",
+"specialist.a_consortium_is_selling_seats_on":"Un consorcio vende plazas en {name}, un cable nuevo de {a} a {b}. Tus propios pares de fibra en él, antes de ser Tier 1.",
+"specialist.ask_for_a_demo_unit_p_n":"Unidad demo: +{p}%, {n} días",
+"specialist.charter_signed_name":"Carta firmada: {name}.",
+"specialist.consortium_seat":"Plaza en el consorcio",
+"specialist.consortium_seat_name":"Plaza en el consorcio: {name}",
+"specialist.demo_unit_ships_in_n_days":"La unidad demo llega en {n} días",
+"specialist.dig_your_own_as_a_pioneer":"Excava la tuya como pionero (+{p}%) · {price} · {n} días",
+"specialist.global_backbone":"Backbone global",
+"specialist.includes_pops_at_the_landings_price":"Incluye POPs en los aterrizajes: {price}.",
+"specialist.keep_it":"Mantener",
+"specialist.low_latency_boutique":"Boutique de baja latencia",
+"specialist.n_fiber_pairs":{"one":"{n} par de fibra","other":"{n} pares de fibra"},
+"specialist.part_owner_of_the_sea":"Copropietario del mar",
+"specialist.pick":"Elegir",
+"specialist.pick_a_charter":"Elige una carta",
+"specialist.routes_r_of_n_beat_the":"Rutas financieras más rápidas por tu propia fibra que por cualquier camino alquilado: {r}/{n} · clientes de latencia que pagan: {c}/{m}",
+"specialist.speed_of_light":"Velocidad de la luz",
+"specialist.spotted_your_broadband_in_a_one":"Vieron tu banda ancha en {a}, una de las grandes ciudades de usuarios.",
+"specialist.spotted_your_cap_of_dark_fiber":"Vieron tus {cap} de fibra oscura iluminada entre {a} y {b}.",
+"specialist.spotted_your_ms_ms_a_b_path":"Vieron tu camino {a}–{b} de {ms} ms.",
+"specialist.spotted_your_two_diverse_paths_a":"Vieron tus dos caminos diversos entre {a} y {b}.",
+"specialist.take_a_seat_on_a_consortium":"Toma una plaza en un cable de consorcio",
+"specialist.the_classic_game_grow_everywhere_and":"El juego clásico: crece en todas partes, los clientes siguen tu nivel y Tier 1 es la victoria.",
+"specialist.the_consortium_runs_the_cable_your":"El consorcio opera el cable y sus repetidores. Tus pares los iluminas con tus propias ópticas; un corte en el cable también los corta.",
+"specialist.the_vendor_ships_a_demo_name":"El fabricante envía un {name} de demostración en {n} días. Hasta que tu nivel lo alcance, cada unidad cuesta un {p}% más.",
+"specialist.trading_firms_and_other_latency_customers":"Las firmas de trading y otros clientes de latencia llaman más a menudo y pagan un {p}% más. Gana Velocidad de la luz: supera la latencia alquilada más rápida en {r} rutas financieras con tu propia fibra mientras {c} clientes de latencia te pagan. Tier 1 sigue contando.",
+"specialist.what_kind_of_network_are_you":"¿Qué tipo de red estás construyendo? Puedes elegir durante {n} días más; hasta entonces eres un Backbone global.",
+"specialist.win_as_a_low_latency_boutique":"Gana como boutique de baja latencia",
+"specialist.won_on_date_your_own_glass":"Ganado el {date}: tu propia fibra superó todos los caminos alquilados.",
+"specialist.you_own_n_fiber_pairs_on":"Firmado: tienes {n} pares de fibra en {name}, {a} ⇄ {b}. Zarpan los buques cableros; listo en unos {d} días.",
+"specialist.your_own_fiber_pairs_on_a":"Tus propios pares de fibra en un cable submarino nuevo: paga ahora tu parte de la obra e ilumínalos con tus ópticas cuando llegue a tierra.",
+"specialist.your_own_glass_beats_every_leased":"Tu propia fibra supera todos los caminos alquilados en tres rutas financieras, y los traders pagan por ello. ¡La boutique ha ganado!",
"supply_chain.as_when_you_started":"igual que cuando empezaste",
"supply_chain.chip_shortage_every_router_vendor_is":"¡Escasez de chips! Todos los fabricantes de routers esperan los mismos chips. Los routers nuevos y sus mejoras cuestan un 40 % más durante {n} días. Plazo de entrega: «sí».",
"supply_chain.every_cable_ship_is_booked":"Todos los barcos cableros están reservados. Los hiperescaladores han contratado todos los barcos cableros y cuadrillas de zanjas del planeta. La fibra y los cables nuevos cuestan un 30 % más durante {n} días.",
diff --git a/site/i18n/fr.js b/site/i18n/fr.js
index d8e7f47..294d294 100644
--- a/site/i18n/fr.js
+++ b/site/i18n/fr.js
@@ -1770,7 +1770,6 @@
"fiber_and_hardware.those_optics_need_the_regen_site":"Ces optiques ont besoin du site de régénération. Retire d’abord les canaux longue distance, ou garde le site.",
"fiber_modals.a_fiber_pair_of_your_own":"Une paire de fibres rien qu’à toi. Le verre ne coûte pas cher, le matériel si : tu achètes un système de ligne avec un amplificateur tous les {km} km, puis des optiques pour chaque canal. Ton matériel peut tomber en panne, et c’est toi qui répares.",
"fiber_modals.a_fiber_pair_on_cable_km":"Une paire de fibres sur {cable}, {km} km. Elle partage le câble avec les longueurs d’onde de tout le monde, ancres comprises.",
-"fiber_modals.build_your_own_level_3":"Construire la tienne niveau 3",
"fiber_modals.build_your_own_price_n_days":"Construire la tienne {price} · ~{n} jours",
"fiber_modals.dark_fiber_across_the_chinese_border":"La fibre noire à travers la frontière chinoise n’est pas à vendre. Achète plutôt une longueur d’onde transfrontalière.",
"fiber_modals.dark_fiber_unlocks_at_customer_level":"La fibre noire se débloque au niveau clients 2. Il te faut la taille critique pour justifier l’achat de ton propre matériel optique.",
@@ -3505,6 +3504,39 @@
"sold_out.tier_1s_never_peer_at_ixs":"Les Tier 1 ne font jamais de peering sur les IX",
"sold_out.wants_need_gbps_of_traffic_from":"Veut ≥ {need} Gbps de trafic de ta part (tu en envoies {dem})",
"sold_out.wants_you_to_be_a_tier":"Veut que tu sois Tier 2, ou que tu lui envoies ≥ {need} Gbps (tu en envoies {dem})",
+"specialist.a_b_km_km_ready_in":"{a} ⇄ {b} · {km} km · environ {ms} ms · prêt dans environ {n} jours",
+"specialist.a_consortium_is_selling_seats_on":"Un consortium vend des places sur {name}, un nouveau câble de {a} à {b}. Tes propres paires de fibre dessus, avant d'être Tier 1.",
+"specialist.ask_for_a_demo_unit_p_n":"Unité de démo : +{p} %, {n} jours",
+"specialist.charter_signed_name":"Charte signée : {name}.",
+"specialist.consortium_seat":"Place au consortium",
+"specialist.consortium_seat_name":"Place au consortium : {name}",
+"specialist.demo_unit_ships_in_n_days":"L'unité de démo arrive dans {n} jours",
+"specialist.dig_your_own_as_a_pioneer":"Creuse la tienne en pionnier (+{p} %) · {price} · {n} jours",
+"specialist.global_backbone":"Backbone mondial",
+"specialist.includes_pops_at_the_landings_price":"POPs aux atterrissements compris : {price}.",
+"specialist.keep_it":"Garder",
+"specialist.low_latency_boutique":"Boutique basse latence",
+"specialist.n_fiber_pairs":{"one":"{n} paire de fibre","other":"{n} paires de fibre"},
+"specialist.part_owner_of_the_sea":"Copropriétaire de la mer",
+"specialist.pick":"Choisir",
+"specialist.pick_a_charter":"Choisis une charte",
+"specialist.routes_r_of_n_beat_the":"Routes financières plus rapides sur ta propre fibre que tout chemin loué : {r}/{n} · clients latence qui paient : {c}/{m}",
+"specialist.speed_of_light":"Vitesse de la lumière",
+"specialist.spotted_your_broadband_in_a_one":"Ils ont repéré ton haut débit à {a}, une des grandes villes d'abonnés.",
+"specialist.spotted_your_cap_of_dark_fiber":"Ils ont repéré tes {cap} de fibre noire allumée entre {a} et {b}.",
+"specialist.spotted_your_ms_ms_a_b_path":"Ils ont repéré ton chemin {a}–{b} à {ms} ms.",
+"specialist.spotted_your_two_diverse_paths_a":"Ils ont repéré tes deux chemins diversifiés entre {a} et {b}.",
+"specialist.take_a_seat_on_a_consortium":"Prends une place sur un câble de consortium",
+"specialist.the_classic_game_grow_everywhere_and":"Le jeu classique : grandis partout, les clients suivent ton niveau, et Tier 1 est la victoire.",
+"specialist.the_consortium_runs_the_cable_your":"Le consortium exploite le câble et ses répéteurs. Tes paires, tu les allumes avec tes propres optiques ; une coupure du câble les coupe aussi.",
+"specialist.the_vendor_ships_a_demo_name":"Le constructeur envoie un {name} de démo dans {n} jours. Tant que ton niveau ne l'a pas rattrapé, chaque unité coûte {p} % de plus.",
+"specialist.trading_firms_and_other_latency_customers":"Les sociétés de trading et autres clients latence appellent plus souvent et paient {p} % de plus. Gagne Vitesse de la lumière : bats la latence louée la plus rapide sur {r} routes financières avec ta propre fibre pendant que {c} clients latence te paient. Tier 1 compte toujours.",
+"specialist.what_kind_of_network_are_you":"Quel genre de réseau construis-tu ? Tu peux choisir encore {n} jours ; d'ici là tu es un Backbone mondial.",
+"specialist.win_as_a_low_latency_boutique":"Gagne en boutique basse latence",
+"specialist.won_on_date_your_own_glass":"Gagné le {date} : ta propre fibre a battu tous les chemins loués.",
+"specialist.you_own_n_fiber_pairs_on":"Signé : tu possèdes {n} paires de fibre sur {name}, {a} ⇄ {b}. Les câbliers appareillent ; prêt dans environ {d} jours.",
+"specialist.your_own_fiber_pairs_on_a":"Tes propres paires de fibre sur un nouveau câble sous-marin : paie ta part du chantier maintenant, allume-les avec tes optiques quand il atterrit.",
+"specialist.your_own_glass_beats_every_leased":"Ta propre fibre bat tous les chemins loués sur trois routes financières, et les traders paient pour ça. La boutique a gagné !",
"supply_chain.as_when_you_started":"comme à vos débuts",
"supply_chain.chip_shortage_every_router_vendor_is":"Pénurie de puces ! Tous les fabricants de routeurs attendent les mêmes puces. Les routeurs neufs et les mises à niveau coûtent 40 % de plus pendant {n} jours. Délai de livraison : « oui ».",
"supply_chain.every_cable_ship_is_booked":"Tous les câbliers sont réservés. Les hyperscalers ont loué chaque câblier et chaque équipe de tranchée de la planète. Les nouvelles fibres et les nouveaux câbles coûtent 30 % de plus pendant {n} jours.",
diff --git a/site/i18n/it.js b/site/i18n/it.js
index 58c52b8..dfb1b8a 100644
--- a/site/i18n/it.js
+++ b/site/i18n/it.js
@@ -1770,7 +1770,6 @@
"fiber_and_hardware.those_optics_need_the_regen_site":"Quelle ottiche hanno bisogno del sito di rigenerazione. Rimuovi prima i canali long-haul, oppure tieni il sito.",
"fiber_modals.a_fiber_pair_of_your_own":"Una coppia di fibre tutta tua. Il vetro costa poco, l’hardware no: compri un sistema di linea con un amplificatore ogni {km} km, poi le ottiche per ogni canale. Il tuo hardware può guastarsi, e lo ripari tu.",
"fiber_modals.a_fiber_pair_on_cable_km":"Una coppia di fibre su {cable}, {km} km. Condivide il cavo con le wave di tutti gli altri, ancore comprese.",
-"fiber_modals.build_your_own_level_3":"Costruiscila tu livello 3",
"fiber_modals.build_your_own_price_n_days":"Costruiscila tu {price} · ~{n} giorni",
"fiber_modals.dark_fiber_across_the_chinese_border":"La dark fiber attraverso il confine cinese non è in vendita. Compra piuttosto una wave transfrontaliera.",
"fiber_modals.dark_fiber_unlocks_at_customer_level":"La dark fiber si sblocca al livello clienti 2. Ti serve la scala per giustificare l’acquisto di hardware ottico tutto tuo.",
@@ -3505,6 +3504,39 @@
"sold_out.tier_1s_never_peer_at_ixs":"I Tier 1 non fanno mai peering agli IX",
"sold_out.wants_need_gbps_of_traffic_from":"Vuole ≥ {need} Gbps di traffico da te (ne mandi {dem})",
"sold_out.wants_you_to_be_a_tier":"Vuole che tu sia un Tier 2, o che gli mandi ≥ {need} Gbps (ne mandi {dem})",
+"specialist.a_b_km_km_ready_in":"{a} ⇄ {b} · {km} km · circa {ms} ms · pronto tra circa {n} giorni",
+"specialist.a_consortium_is_selling_seats_on":"Un consorzio vende posti su {name}, un nuovo cavo da {a} a {b}. Coppie di fibra tue, prima di essere Tier 1.",
+"specialist.ask_for_a_demo_unit_p_n":"Unità demo: +{p}%, {n} giorni",
+"specialist.charter_signed_name":"Statuto firmato: {name}.",
+"specialist.consortium_seat":"Posto nel consorzio",
+"specialist.consortium_seat_name":"Posto nel consorzio: {name}",
+"specialist.demo_unit_ships_in_n_days":"L'unità demo arriva tra {n} giorni",
+"specialist.dig_your_own_as_a_pioneer":"Scava la tua da pioniere (+{p}%) · {price} · {n} giorni",
+"specialist.global_backbone":"Backbone globale",
+"specialist.includes_pops_at_the_landings_price":"POP agli approdi inclusi: {price}.",
+"specialist.keep_it":"Tienilo",
+"specialist.low_latency_boutique":"Boutique a bassa latenza",
+"specialist.n_fiber_pairs":{"one":"{n} coppia di fibra","other":"{n} coppie di fibra"},
+"specialist.part_owner_of_the_sea":"Comproprietario del mare",
+"specialist.pick":"Scegli",
+"specialist.pick_a_charter":"Scegli uno statuto",
+"specialist.routes_r_of_n_beat_the":"Rotte finanziarie più veloci sulla tua fibra che su qualsiasi percorso in affitto: {r}/{n} · clienti latenza paganti: {c}/{m}",
+"specialist.speed_of_light":"Velocità della luce",
+"specialist.spotted_your_broadband_in_a_one":"Hanno notato la tua banda larga a {a}, una delle grandi città di utenti.",
+"specialist.spotted_your_cap_of_dark_fiber":"Hanno notato i tuoi {cap} di dark fiber accesa tra {a} e {b}.",
+"specialist.spotted_your_ms_ms_a_b_path":"Hanno notato il tuo percorso {a}–{b} da {ms} ms.",
+"specialist.spotted_your_two_diverse_paths_a":"Hanno notato i tuoi due percorsi diversi tra {a} e {b}.",
+"specialist.take_a_seat_on_a_consortium":"Prendi un posto su un cavo di consorzio",
+"specialist.the_classic_game_grow_everywhere_and":"Il gioco classico: cresci ovunque, i clienti seguono il tuo livello e Tier 1 è la vittoria.",
+"specialist.the_consortium_runs_the_cable_your":"Il consorzio gestisce il cavo e i suoi ripetitori. Le tue coppie le accendi con le tue ottiche; un taglio del cavo taglia anche loro.",
+"specialist.the_vendor_ships_a_demo_name":"Il vendor spedisce un {name} demo tra {n} giorni. Finché il tuo livello non lo raggiunge, ogni unità costa il {p}% in più.",
+"specialist.trading_firms_and_other_latency_customers":"Le società di trading e gli altri clienti latenza chiamano più spesso e pagano il {p}% in più. Vinci Velocità della luce: batti la latenza in affitto più veloce su {r} rotte finanziarie con la tua fibra mentre {c} clienti latenza ti pagano. Tier 1 conta ancora.",
+"specialist.what_kind_of_network_are_you":"Che rete stai costruendo? Puoi scegliere ancora per {n} giorni; fino ad allora sei un Backbone globale.",
+"specialist.win_as_a_low_latency_boutique":"Vinci come boutique a bassa latenza",
+"specialist.won_on_date_your_own_glass":"Vinto il {date}: la tua fibra ha battuto ogni percorso in affitto.",
+"specialist.you_own_n_fiber_pairs_on":"Firmato: hai {n} coppie di fibra su {name}, {a} ⇄ {b}. Le navi posacavi salpano; pronto tra circa {d} giorni.",
+"specialist.your_own_fiber_pairs_on_a":"Coppie di fibra tue su un nuovo cavo sottomarino: paga ora la tua quota della posa e accendile con le tue ottiche quando approda.",
+"specialist.your_own_glass_beats_every_leased":"La tua fibra batte ogni percorso in affitto su tre rotte finanziarie, e i trader pagano per questo. La boutique ha vinto!",
"supply_chain.as_when_you_started":"come quando hai iniziato",
"supply_chain.chip_shortage_every_router_vendor_is":"Carenza di chip! Tutti i produttori di router aspettano gli stessi chip. Router nuovi e upgrade costano il 40% in più per {n} giorni. Tempi di consegna: “sì”.",
"supply_chain.every_cable_ship_is_booked":"Tutte le navi posacavi sono prenotate. Gli hyperscaler hanno noleggiato ogni nave posacavi e ogni squadra di scavo del pianeta. Nuove fibre e nuovi cavi costano il 30% in più per {n} giorni.",
diff --git a/site/i18n/pt.js b/site/i18n/pt.js
index cd27409..de70a42 100644
--- a/site/i18n/pt.js
+++ b/site/i18n/pt.js
@@ -1770,7 +1770,6 @@
"fiber_and_hardware.those_optics_need_the_regen_site":"Essas ópticas precisam do site de regeneração. Remova primeiro os canais long-haul, ou mantenha o site.",
"fiber_modals.a_fiber_pair_of_your_own":"Um par de fibra só seu. O vidro é barato, o equipamento não: você compra um line system com um amplificador a cada {km} km, depois a óptica de cada canal. Seu equipamento pode falhar, e quem conserta é você.",
"fiber_modals.a_fiber_pair_on_cable_km":"Um par de fibra no {cable}, {km} km. Divide o cabo com as waves de todo mundo, âncoras incluídas.",
-"fiber_modals.build_your_own_level_3":"Construir a sua nível 3",
"fiber_modals.build_your_own_price_n_days":"Construir a sua {price} · ~{n} dias",
"fiber_modals.dark_fiber_across_the_chinese_border":"Dark fiber atravessando a fronteira chinesa não está à venda. Compre uma wave transfronteiriça.",
"fiber_modals.dark_fiber_unlocks_at_customer_level":"Dark fiber desbloqueia no nível de clientes 2. Você precisa de escala para justificar comprar seu próprio equipamento óptico.",
@@ -3505,6 +3504,39 @@
"sold_out.tier_1s_never_peer_at_ixs":"Tier 1 nunca faz peering em IX",
"sold_out.wants_need_gbps_of_traffic_from":"Quer ≥ {need} Gbps de tráfego seu (você manda {dem})",
"sold_out.wants_you_to_be_a_tier":"Quer que você seja Tier 2, ou que mande ≥ {need} Gbps para ele (você manda {dem})",
+"specialist.a_b_km_km_ready_in":"{a} ⇄ {b} · {km} km · cerca de {ms} ms · pronto em cerca de {n} dias",
+"specialist.a_consortium_is_selling_seats_on":"Um consórcio está vendendo lugares no {name}, um cabo novo de {a} a {b}. Seus próprios pares de fibra nele, antes de ser Tier 1.",
+"specialist.ask_for_a_demo_unit_p_n":"Unidade demo: +{p}%, {n} dias",
+"specialist.charter_signed_name":"Carta assinada: {name}.",
+"specialist.consortium_seat":"Lugar no consórcio",
+"specialist.consortium_seat_name":"Lugar no consórcio: {name}",
+"specialist.demo_unit_ships_in_n_days":"A unidade demo chega em {n} dias",
+"specialist.dig_your_own_as_a_pioneer":"Cave a sua como pioneiro (+{p}%) · {price} · {n} dias",
+"specialist.global_backbone":"Backbone global",
+"specialist.includes_pops_at_the_landings_price":"Inclui POPs nas estações de ancoragem: {price}.",
+"specialist.keep_it":"Manter",
+"specialist.low_latency_boutique":"Boutique de baixa latência",
+"specialist.n_fiber_pairs":{"one":"{n} par de fibra","other":"{n} pares de fibra"},
+"specialist.part_owner_of_the_sea":"Coproprietário do mar",
+"specialist.pick":"Escolher",
+"specialist.pick_a_charter":"Escolha uma carta",
+"specialist.routes_r_of_n_beat_the":"Rotas financeiras mais rápidas na sua fibra do que em qualquer caminho alugado: {r}/{n} · clientes de latência pagando: {c}/{m}",
+"specialist.speed_of_light":"Velocidade da luz",
+"specialist.spotted_your_broadband_in_a_one":"Eles viram sua banda larga em {a}, uma das grandes cidades de usuários.",
+"specialist.spotted_your_cap_of_dark_fiber":"Eles viram seus {cap} de dark fiber acesa entre {a} e {b}.",
+"specialist.spotted_your_ms_ms_a_b_path":"Eles viram seu caminho {a}–{b} de {ms} ms.",
+"specialist.spotted_your_two_diverse_paths_a":"Eles viram seus dois caminhos diversos entre {a} e {b}.",
+"specialist.take_a_seat_on_a_consortium":"Pegue um lugar num cabo de consórcio",
+"specialist.the_classic_game_grow_everywhere_and":"O jogo clássico: cresça em todo lugar, os clientes seguem seu nível e Tier 1 é a vitória.",
+"specialist.the_consortium_runs_the_cable_your":"O consórcio opera o cabo e seus repetidores. Seus pares você acende com suas próprias ópticas; um corte no cabo corta eles também.",
+"specialist.the_vendor_ships_a_demo_name":"O fabricante envia um {name} de demonstração em {n} dias. Até seu nível alcançar, cada unidade custa {p}% a mais.",
+"specialist.trading_firms_and_other_latency_customers":"Firmas de trading e outros clientes de latência ligam mais vezes e pagam {p}% a mais. Vença Velocidade da luz: supere a latência alugada mais rápida em {r} rotas financeiras com sua própria fibra enquanto {c} clientes de latência pagam você. Tier 1 continua valendo.",
+"specialist.what_kind_of_network_are_you":"Que tipo de rede você está construindo? Você pode escolher por mais {n} dias; até lá você é um Backbone global.",
+"specialist.win_as_a_low_latency_boutique":"Vença como boutique de baixa latência",
+"specialist.won_on_date_your_own_glass":"Vencido em {date}: sua própria fibra superou todos os caminhos alugados.",
+"specialist.you_own_n_fiber_pairs_on":"Assinado: você tem {n} pares de fibra no {name}, {a} ⇄ {b}. Os navios lançadores zarpam; pronto em cerca de {d} dias.",
+"specialist.your_own_fiber_pairs_on_a":"Seus próprios pares de fibra num cabo submarino novo: pague agora sua parte da obra e acenda com suas ópticas quando ele chegar.",
+"specialist.your_own_glass_beats_every_leased":"Sua própria fibra supera todos os caminhos alugados em três rotas financeiras, e os traders pagam por isso. A boutique venceu!",
"supply_chain.as_when_you_started":"como no começo",
"supply_chain.chip_shortage_every_router_vendor_is":"Falta de chips! Todo fabricante de roteador está esperando os mesmos chips. Roteadores novos e upgrades custam 40% a mais por {n} dias. Prazo de entrega: “sim”.",
"supply_chain.every_cable_ship_is_booked":"Todos os navios lançadores de cabo estão reservados. Os hyperscalers contrataram todos os navios e todas as equipes de escavação do planeta. Novas fibras e novos cabos custam 30% a mais por {n} dias.",
diff --git a/src/game/10-catalog/30-supply-chain.js b/src/game/10-catalog/30-supply-chain.js
index 07f79e7..8fc363b 100644
--- a/src/game/10-catalog/30-supply-chain.js
+++ b/src/game/10-catalog/30-supply-chain.js
@@ -22,10 +22,10 @@ function hwCard(){if(!S||!rule('market')||(S.day<=HW_FREE&&!hwShock()&&!hwLock()
:`
`;}
// Routers past the standard cage (#157) need a cage extension: pricier to install, and rent on top.
const RCAGE=6,CAGE_MUL=1.5,CAGE_MO=2000;
-const routerCost=(g,rt)=>Math.round((ROUTER_COST+RG[g].cost*0.8)*((rt||1)>=RCAGE?CAGE_MUL:1)*hwMul('rt'));
+const routerCost=(g,rt)=>Math.round((ROUTER_COST+RG[g].cost*0.8)*((rt||1)>=RCAGE?CAGE_MUL:1)*hwMul('rt')*techMul(RG[g].lvl));
const routerMo=g=>ROUTER_MO+RG[g].mo,cageMo=rt=>Math.max(0,(rt||1)-RCAGE)*CAGE_MO;
// Old routers go on eBuy when you swap models or remove one (#82), like spare optics (#45). Chassis age faster.
-const ROUTER_RESALE=0.3,tradeIn=(g,n)=>Math.round(RG[g].cost*n*ROUTER_RESALE),swapCost=(c,g)=>{const p=S.pops[c],rt=p.routers||1;return Math.max(0,Math.round(RG[g].cost*rt*hwMul('rt'))-tradeIn(p.rgen||0,rt));};
+const ROUTER_RESALE=0.3,tradeIn=(g,n)=>Math.round(RG[g].cost*n*ROUTER_RESALE),swapCost=(c,g)=>{const p=S.pops[c],rt=p.routers||1;return Math.max(0,Math.round(RG[g].cost*rt*hwMul('rt')*techMul(RG[g].lvl))-tradeIn(p.rgen||0,rt));};
const RMAX=16;
// The plain, badge-less model of each class is the default upgrade path; the others are side-grades.
const mainRG=k=>RG.findIndex(r=>r.cls===k&&!r.badge);
diff --git a/src/game/10-catalog/50-dark-fiber.js b/src/game/10-catalog/50-dark-fiber.js
index 246000f..f6286a9 100644
--- a/src/game/10-catalog/50-dark-fiber.js
+++ b/src/game/10-catalog/50-dark-fiber.js
@@ -8,7 +8,7 @@ const AMP_EVERY=100, AMP_COST=8000, AMP_MO=300;
/* Your own trench holds more than one fiber pair (#35). Once a ROADMaster is full you can light the next pair:
another ROADMaster and another chain of amplifiers, 64 more channels. Regen huts are shared. */
const isRdm=y=>y==='roadm'||y==='cl';
-const PAIRS_MAX=4,PAIRS_BIG=8,PAIRS_LV=12,SUB_PAIRS_MAX=8,SUB_PAIR_UP=1500000,pairsMax=l=>l.sub?SUB_PAIRS_MAX:lvl()>=PAIRS_LV?PAIRS_BIG:PAIRS_MAX,chMax=l=>DF_SYS[l.sys].max*(isRdm(l.sys)&&l.own?Math.max(1,l.pairs|0):1),
+const PAIRS_MAX=4,PAIRS_BIG=8,PAIRS_LV=12,SUB_PAIRS_MAX=8,SUB_PAIR_UP=1500000,pairsMax=l=>l.seat?Math.max(1,l.pairs|0):l.sub?SUB_PAIRS_MAX:lvl()>=PAIRS_LV?PAIRS_BIG:PAIRS_MAX,chMax=l=>DF_SYS[l.sys].max*(isRdm(l.sys)&&l.own?Math.max(1,l.pairs|0):1),
pairCost=l=>DF_SYS[isRdm(l.sys)?l.sys:'roadm'].cost+(l.sub?SUB_PAIR_UP:ampCount(l.km)*AMP_COST);
const OPT={
zr4:{n:'Ackackia 400ZR+',g:400,cost:12000,reach:1500,modes:[[400,1500],[200,3000]],rg:1,lvl:2,sys:'lite',blurb:tr('dark_fiber.coherent_pluggable_in_the_router_no')},
diff --git a/src/game/60-features/35-capacity-deals.js b/src/game/60-features/35-capacity-deals.js
index 68049f6..bdb5c51 100644
--- a/src/game/60-features/35-capacity-deals.js
+++ b/src/game/60-features/35-capacity-deals.js
@@ -26,7 +26,7 @@ function capOffer(a,b,t,nm){const T=BIZ_T[t],km=kmBetween(a,b),n=pick(T.opts),o=
if(t==='capfib'){o.bw=1;o.slots=n;o.rate=Math.round(dfLeaseMo(km)*n*1.5);o.win=dfBuildDays(km)+150;}
else{o.bw=t==='capw'?n*400:n;o.rate=Math.round((150+km*0.08)*T.km);o.win=t==='capsub'?300+Math.floor(Math.random()*121):180+Math.floor(Math.random()*91);}
return o;}
-function capDealTick(d){const q=S.capDeal;if(!q||q.at!==d)return;S.capDeal=null;const pool=(CAP_ROUTES[q.c]||[]).filter(r=>isCity(r[0])&&isCity(r[1])).slice(),out=[];
+function capDealTick(d){const q=S.capDeal;if(!q||q.at!==d)return;S.capDeal=null;seatConf(q.c);const pool=(CAP_ROUTES[q.c]||[]).filter(r=>isCity(r[0])&&isCity(r[1])).slice(),out=[];
while(out.length<3&&pool.length){const [a,b,t]=pool.splice(Math.floor(Math.random()*pool.length),1)[0],T=BIZ_T[t];
const nm=()=>{const list=T.names.filter(n=>!S.usedNames.includes(n)),n=list.length?pick(list):pick(T.names);useName(n);return n;};out.push(capOffer(a,b,t,nm));}
if(!out.length)return;S.offers.push(...out);
diff --git a/src/game/60-features/36-specialist.js b/src/game/60-features/36-specialist.js
new file mode 100644
index 0000000..855834f
--- /dev/null
+++ b/src/game/60-features/36-specialist.js
@@ -0,0 +1,96 @@
+/* ---------- Specialist play (#187, #173) ----------
+ You do not have to grow everywhere to grow up. Customers call when your network can already serve them, not only
+ when your level says so; gear one level ahead comes early as a vendor demo unit at a premium; a seat on a
+ consortium cable is the way onto your own subsea glass before Tier 1; and a charter picks what you set out to be. */
+const FIN=['nyc','chi','lon','fra','tok','sin','hkg','ams','ash'];
+// What a capability brings in, and why the offer says it came.
+const SPOT_W={lat:N_('specialist.spotted_your_ms_ms_a_b_path'),df:N_('specialist.spotted_your_cap_of_dark_fiber'),div:N_('specialist.spotted_your_two_diverse_paths_a'),eye:N_('specialist.spotted_your_broadband_in_a_one')};
+const SPOT_BIG=12,SPOT_DF=0.75;
+const latMaxOf=(a,b)=>+(kmBetween(a,b)/200*1.35).toFixed(1);
+let BIGEYE=null;const bigEye=()=>BIGEYE||(BIGEYE=CITIES.slice().sort((x,y)=>y.P-x.P).slice(0,SPOT_BIG).map(c=>c.id));
+// Worked out at most once a day (and again when the network changes shape): offers spawn far less often than that.
+let SPOTC=null;
+function spots(){const lv=lvl(),k=S.day+'|'+lv+'|'+S.links.length+'|'+Object.keys(S.pops).length+'|'+charter();if(SPOTC&&SPOTC.s===S&&SPOTC.k===k)return SPOTC.v;const v=spots0(lv);SPOTC={s:S,k,v};return v;}
+function spots0(lv){const out=[];if(gatesOpen()||S.scn)return out;const up=t=>BIZ_T[t].lv>lv,mine=Object.keys(S.pops);
+ if(up('hft')){const f=FIN.filter(c=>S.pops[c]);for(let i=0;iS.day||linkDown(l))continue;const g=dfCap(l);
+ for(const t of dci){const T=BIZ_T[t];if(g>=T.opts[0]*SPOT_DF&&(!T.div||reqCan('diverse',{city:l.a,city2:l.b})))out.push({t,a:l.a,b:l.b,k:'df',n:g});}}
+ if(up('sov')){const by={};for(const c of mine)(by[CITY[c].cc]=by[CITY[c].cc]||[]).push(c);
+ for(const cs of Object.values(by))for(let i=0;i=0.95)out.push({t:'cgame',a:c,b:null,k:'eye',n:0});
+ return out;}
+// A spotted customer starts at the smallest size its type comes in; your level makes them bigger and more frequent.
+function spawnSpot(t,s){const T=BIZ_T[t],list=T.names.filter(n=>!S.usedNames.includes(n)),name=list.length?pick(list):pick(T.names);useName(name);
+ const o={id:uid(),city:s.a,city2:s.b,name,type:t,bw:T.opts[0],reqs:[],exp:S.day+40,spot:{k:s.k,n:s.n}};
+ o.rate=T.l2?Math.round((150+kmBetween(s.a,s.b)*0.08)*T.km*(T.lat?latPay():1)*(T.div?1+REQS.diverse.bonus:1)):T.rate;
+ if(T.lat){o.reqs=['lat'];o.latMax=latMaxOf(s.a,s.b);}else if(T.div)o.reqs=['diverse'];
+ S.offers.push(o);}
+function spotWhy(o){const s=o&&o.spot;if(!s||!own(SPOT_W,s.k))return '';
+ return `
`;}
+
+/* Vendor demo units: gear one level above yours, early, at a markup and after a short wait. Never two levels ahead. */
+const DEMO_MUL=1.6,DEMO_DAYS=14;
+function demoItem(k,id){return k==='rg'?RG[+id]||null:k==='sys'?(own(DF_SYS,id)?DF_SYS[id]:null):k==='opt'?(own(OPT,id)?OPT[id]:null):null;}
+const demoAt=(k,id)=>{const d=S&&S.demo&&S.demo[k+':'+id];return d===undefined?null:d;};
+const demoCan=L=>!gatesOpen()&&L===lvl()+1;
+function techOk(k,id,L){if(L<=lvl())return true;const d=demoAt(k,id);return demoCan(L)&&d!==null&&d<=S.day;}
+const techMul=L=>L>lvl()?DEMO_MUL:1;
+function demoBtn(k,id,L,lock,cls){const d=demoAt(k,id);if(!demoCan(L))return btn(lock,'demoAsk',{k,id},cls,true);
+ if(d!==null&&d>S.day)return btn(tr('specialist.demo_unit_ships_in_n_days',{n:d-S.day}),'demoAsk',{k,id},cls,true);
+ return btn(tr('specialist.ask_for_a_demo_unit_p_n',{p:Math.round((DEMO_MUL-1)*100),n:leadDays(DEMO_DAYS)}),'demoAsk',{k,id},cls);}
+const sysCost=k=>Math.round(DF_SYS[k].cost*techMul(DF_SYS[k].lvl));
+// Digging your own fiber before level 3: the pioneer pays for the permits nobody has asked for yet.
+const PIONEER=1.6;
+const digMul=()=>lvl()>=3?1:PIONEER,digCost=km=>Math.round(dfBuildCost(km)*digMul());
+
+/* A seat on a consortium cable (#173): pay your share of the build, wait for the ship, and own fiber pairs on it,
+ lit with your own optics like your own cable. Capacity conferences offer them, and now and then a consortium calls. */
+const SEAT_ROUTES={
+ lon:[['nyc','bde','Amity Ville'],['lis','for','Ella Fitz-Link'],['mrs','sin','Sea, Me, We, Us, Them'],['lon','lag','Equi-Not']],
+ hnl:[['syd','lax','Southern Double-Cross'],['tok','sea','Kuro-Show'],['sin','hkg','Dim Sum Express'],['syd','akl','Tasman Devil']],
+};
+const SEAT_N=[1,2,4],SEAT_SHARE=10,SEAT_LV=2,SEAT_ODDS=240,SEAT_EXP=30;
+const seatKm=(a,b)=>Math.round(kmBetween(a,b)*1.2),seatCost=(km,n)=>Math.round(ownCabCost(km)*n/SEAT_SHARE),seatMo=(km,n)=>Math.round(ownCabMo(km)*n/SEAT_SHARE),seatDays=km=>Math.max(1,Math.round(ownCabDays(km)*0.6));
+const seatRoute=name=>Object.values(SEAT_ROUTES).flat().find(r=>r[2]===name);
+// A conference names its own routes; a cold call is about a route with one of your POPs at an end. Picked by a hash, not
+// by the dice, so the rest of the game rolls exactly as before.
+function seatOffer(c,d){const rs=(c?SEAT_ROUTES[c]||[]:Object.values(SEAT_ROUTES).flat()).filter(r=>isCity(r[0])&&isCity(r[1])&&(c||S.pops[r[0]]||S.pops[r[1]])&&!S.links.some(l=>l.seat&&l.cname===r[2]));
+ if(!rs.length)return null;const r=rs[hstr(S.asn+'|seat|'+d)%rs.length];return {a:r[0],b:r[1],name:r[2],km:seatKm(r[0],r[1]),exp:d+SEAT_EXP};}
+function seatConf(c){if(S.seatOff||lvl()!S.pops[c]).reduce((x,c)=>x+popCost(c),0);
+ return `
`;}
+
+/* Charters: what the network sets out to be, picked once at the start of a Normal game. Global backbone is the game as
+ it always was; the Low-latency boutique sells speed to traders and has its own win, Speed of Light. */
+const CHARTERS={global:{i:'🌐',n:N_('specialist.global_backbone'),d:N_('specialist.the_classic_game_grow_everywhere_and')},boutique:{i:'⚡',n:N_('specialist.low_latency_boutique'),d:N_('specialist.trading_firms_and_other_latency_customers')}};
+const CHARTER_DAYS=30,LAT_PAY=1.4,SOL_ROUTES=3,SOL_CUST=2;
+const charter=()=>S&&!S.scn&&S.mode==='normal'&&S.charter==='boutique'?'boutique':'global';
+const latPay=()=>charter()==='boutique'?LAT_PAY:1;
+// The fastest a leased wave or fiber gets between two cities: overland, or the quickest cable on the route.
+function leasedLat(a,b){let best=isSub(a,b)?Infinity:kmBetween(a,b)*1.25/200;for(const c of cablesFor(a,b))best=Math.min(best,c.km*Math.min(CAB[c.cid].lat||1,1.25)/200);return best;}
+const ownGlass=l=>l.kind==='df'&&l.own&&l.ready<=S.day&&dfCap(l)>0;
+let SOLC=null;
+function solRoutes(){const k=S.day+'|'+S.links.length+'|'+S.links.reduce((n,l)=>n+(l.ch||[]).length,0);if(SOLC&&SOLC.s===S&&SOLC.k===k)return SOLC.v;
+ const f=FIN.filter(c=>S.pops[c]),v=[];if(S.links.some(ownGlass))for(let i=0;iS.biz.filter(b=>BIZ_T[b.type]&&BIZ_T[b.type].lat&&b.mood>=50&&reqOk(b)).length;
+function charterCard(){if(S.scn||S.mode!=='normal')return '';
+ if(!S.chartSet&&S.day<=CHARTER_DAYS)return `
`:''}`;}
-function bestLat(a,b){const ls=S.links.filter(l=>!linkDown(l));const dist={[a]:0},done=new Set();for(;;){let u=null,ud=Infinity;for(const k in dist)if(!done.has(k)&&dist[k]!linkDown(l)&&(!f||f(l)));const dist={[a]:0},done=new Set();for(;;){let u=null,ud=Infinity;for(const k in dist)if(!done.has(k)&&dist[k]i<=RG[S.pops[c]?(S.pops[c].rgen||0):0].maxLT);}
function waveNeed(i){const g=RG.find(r=>r.maxLT>=i);return g?tr('sites_and_service.pn_routers',{pn:g.pn}):'?';}
function routerModels(c){const p=S.pops[c],g=p.rgen||0,rt=p.routers||1;
- return `
diff --git a/src/i18n/en.js b/src/i18n/en.js
index 81093a4..9ff482c 100644
--- a/src/i18n/en.js
+++ b/src/i18n/en.js
@@ -1771,7 +1771,6 @@
"fiber_and_hardware.those_optics_need_the_regen_site":"Those optics need the regen site. Remove the long-haul channels first, or keep the site.",
"fiber_modals.a_fiber_pair_of_your_own":"A fiber pair of your own. The glass is cheap, the gear is not: you buy a line system with an amplifier every {km} km, then optics for each channel. Your gear can fail, and you fix it.",
"fiber_modals.a_fiber_pair_on_cable_km":"A fiber pair on {cable}, {km} km. It shares the cable with everyone else's waves, anchors included.",
-"fiber_modals.build_your_own_level_3":"Build your own level 3",
"fiber_modals.build_your_own_price_n_days":"Build your own {price} · ~{n} days",
"fiber_modals.dark_fiber_across_the_chinese_border":"Dark fiber across the Chinese border is not for sale. Buy a cross-border wave instead.",
"fiber_modals.dark_fiber_unlocks_at_customer_level":"Dark fiber unlocks at customer level 2. You need the scale to justify buying your own optical gear.",
@@ -3506,6 +3505,39 @@
"sold_out.tier_1s_never_peer_at_ixs":"Tier 1s never peer at IXs",
"sold_out.wants_need_gbps_of_traffic_from":"Wants ≥ {need} Gbps of traffic from you (you send {dem})",
"sold_out.wants_you_to_be_a_tier":"Wants you to be a Tier 2, or send ≥ {need} Gbps to it (you send {dem})",
+"specialist.a_b_km_km_ready_in":"{a} ⇄ {b} · {km} km · about {ms} ms · ready in about {n} days",
+"specialist.a_consortium_is_selling_seats_on":"A consortium is selling seats on {name}, a new cable from {a} to {b}. Your own fiber pairs on it, before you are Tier 1.",
+"specialist.ask_for_a_demo_unit_p_n":"Demo unit: +{p}%, {n} days",
+"specialist.charter_signed_name":"Charter signed: {name}.",
+"specialist.consortium_seat":"Consortium seat",
+"specialist.consortium_seat_name":"Consortium seat: {name}",
+"specialist.demo_unit_ships_in_n_days":"Demo unit ships in {n} days",
+"specialist.dig_your_own_as_a_pioneer":"Dig your own as a pioneer (+{p}%) · {price} · {n} days",
+"specialist.global_backbone":"Global backbone",
+"specialist.includes_pops_at_the_landings_price":"Includes POPs at the landings: {price}.",
+"specialist.keep_it":"Keep it",
+"specialist.low_latency_boutique":"Low-latency boutique",
+"specialist.n_fiber_pairs":{"one":"{n} fiber pair","other":"{n} fiber pairs"},
+"specialist.part_owner_of_the_sea":"Part-owner of the sea",
+"specialist.pick":"Pick",
+"specialist.pick_a_charter":"Pick a charter",
+"specialist.routes_r_of_n_beat_the":"Finance routes faster on your own glass than any leased path: {r}/{n} · paying latency customers: {c}/{m}",
+"specialist.speed_of_light":"Speed of Light",
+"specialist.spotted_your_broadband_in_a_one":"They spotted your broadband in {a}, one of the big eyeball cities.",
+"specialist.spotted_your_cap_of_dark_fiber":"They spotted your {cap} of lit dark fiber between {a} and {b}.",
+"specialist.spotted_your_ms_ms_a_b_path":"They spotted your {ms} ms {a}–{b} path.",
+"specialist.spotted_your_two_diverse_paths_a":"They spotted your two diverse paths between {a} and {b}.",
+"specialist.take_a_seat_on_a_consortium":"Take a seat on a consortium cable",
+"specialist.the_classic_game_grow_everywhere_and":"The classic game: grow everywhere, customers follow your level, and Tier 1 is the win.",
+"specialist.the_consortium_runs_the_cable_your":"The consortium runs the cable and its repeaters. Your pairs are yours to light with your own optics; a cut on the cable cuts them too.",
+"specialist.the_vendor_ships_a_demo_name":"The vendor ships a demo {name} in {n} days. Until your level catches up, every unit costs {p}% more.",
+"specialist.trading_firms_and_other_latency_customers":"Trading firms and other latency customers call more often and pay {p}% more. Win Speed of Light: beat the fastest leased latency on {r} finance routes with your own glass while {c} latency customers pay you. Tier 1 still counts.",
+"specialist.what_kind_of_network_are_you":"What kind of network are you building? You can pick for {n} more days; until then you are a Global backbone.",
+"specialist.win_as_a_low_latency_boutique":"Win as a low-latency boutique",
+"specialist.won_on_date_your_own_glass":"Won on {date}: your own glass beat every leased path.",
+"specialist.you_own_n_fiber_pairs_on":"Signed: you own {n} fiber pairs on {name}, {a} ⇄ {b}. The cable ships sail; it is ready in about {d} days.",
+"specialist.your_own_fiber_pairs_on_a":"Your own fiber pairs on a new subsea cable: pay your share of the build now, light them with your own optics when it lands.",
+"specialist.your_own_glass_beats_every_leased":"Your own glass beats every leased path on three finance routes, and the traders pay for it. The boutique has won!",
"supply_chain.as_when_you_started":"as when you started",
"supply_chain.chip_shortage_every_router_vendor_is":"Chip shortage! Every router vendor is waiting for the same chips. New routers and router upgrades cost 40% more for {n} days. Lead time: “yes”.",
"supply_chain.every_cable_ship_is_booked":"Every cable ship is booked. Hyperscalers have hired every cable ship and trenching crew on the planet. New fiber and cable builds cost 30% more for {n} days.",
diff --git a/tests/gameplay-rules.test.js b/tests/gameplay-rules.test.js
index 5123f89..ce95537 100644
--- a/tests/gameplay-rules.test.js
+++ b/tests/gameplay-rules.test.js
@@ -163,7 +163,7 @@ test('N2: names are puns: no network, cable, exchange, data center, router or op
const norm = (s) => String(s).toLowerCase().normalize('NFD').replace(/[\u0300-\u036f]/g, '').replace(/[’`]/g, "'").replace(/\s+/g, ' ').trim();
const real = new Set(REAL_NAMES.map(norm));
const names = J(`[...NETS.map(n=>['network',n.name]),...CABLES.map(c=>['cable',c.name]),...XIX.map(x=>['exchange',x.name]),
- ...CITIES.flatMap(c=>[['exchange',c.ix],['data center',c.dc],['data center',c.dc2]]),...RG.map(r=>['router',r.n]),...Object.values(OPT).map(o=>['optic',o.n])].filter(x=>x[1])`);
+ ...CITIES.flatMap(c=>[['exchange',c.ix],['data center',c.dc],['data center',c.dc2]]),...RG.map(r=>['router',r.n]),...Object.values(OPT).map(o=>['optic',o.n]),...Object.values(SEAT_ROUTES).flat().map(r=>['cable',r[2]])].filter(x=>x[1])`);
fail('N2', names.filter(([, n]) => real.has(norm(n))).map(([k, n]) => `${k} “${n}” is a real name`), 'find a pun');
fail('N2', names.filter(([, n]) => /-ish\b/i.test(n)).map(([k, n]) => `${k} “${n}”`), 'no lazy -ish names: find a real pun, or keep the plain word');
});
@@ -343,6 +343,25 @@ test('F2: a simple build in a start city makes money within three months on On-c
fail('F2', bad, 'a balance change made the start too hard; fix the balance, or argue for a new N in the gameplay-rules skill');
});
+test('F3: a specialist path only brings customers you can already serve', () => {
+ const g = load();
+ g.ev("ACT.start({});S.cash=1e9;S.lvl=1;for(const c of ['nyc','chi','ash'])S.pops[c]=S.pops[c]||{day:0,bb:null,boost:0,down:0,routers:1,gen:false,rgen:0}");
+ g.ev("S.links.push({id:'w',a:'nyc',b:'chi',kind:'wave',tier:2,km:kmBetween('nyc','chi'),cut:0,mo:0},{id:'d',a:'chi',b:'ash',kind:'df',own:true,sys:'roadm',ch:['zr4','zr4','zr4','zr4'],km:kmBetween('chi','ash'),sub:false,cable:null,mo:0,trench:'d',cut:0,day:0,ready:0,spares:false},{id:'e',a:'nyc',b:'ash',kind:'df',own:true,sys:'roadm',ch:['zr4'],km:kmBetween('nyc','ash'),sub:false,cable:null,mo:0,trench:'e',cut:0,day:0,ready:0,spares:false});compute()");
+ const Jg = (x) => JSON.parse(g.ev(`JSON.stringify(${x})`));
+ const sp = Jg('spots()');
+ assert.ok(sp.length > 0, 'F3: the reference network is spotted');
+ const bad = [];
+ for (const s of sp) {
+ const T = Jg(`BIZ_T.${s.t}`);
+ if (!(T.lv > 1)) bad.push(`${s.t} needs no spotting at level 1`);
+ if (![s.a, s.b].filter(Boolean).every((c) => g.ev(`!!S.pops['${c}']`))) bad.push(`${s.t} names a city without a POP`);
+ if (s.k === 'lat' && !(g.ev(`bestLat('${s.a}','${s.b}')<=latMaxOf('${s.a}','${s.b}')`))) bad.push(`${s.t} ${s.a}–${s.b} is too slow`);
+ if (s.k === 'df' && !(s.n >= T.opts[0] * 0.75)) bad.push(`${s.t} ${s.a}–${s.b} asks for far more than the fiber carries`);
+ }
+ fail('F3', bad, 'spots0() must only name what the network can serve, or nearly');
+ assert.deepEqual(g.errors, []);
+});
+
test('no page errors while checking the rules', () => {
assert.deepEqual(errors, []);
});
diff --git a/tests/specialist.test.js b/tests/specialist.test.js
new file mode 100644
index 0000000..f877d43
--- /dev/null
+++ b/tests/specialist.test.js
@@ -0,0 +1,170 @@
+const test = require('node:test');
+const assert = require('node:assert/strict');
+const { load } = require('./harness');
+
+// Specialist play (#187, #173): capability offers, vendor demo units, pioneer fiber, consortium seats, charters.
+const start = "ACT.start({});S.cash=1e9;for(const g of GOALS)S.done[g.id]=0;ACT.launchBB({city:'fra'})";
+const pop = (c) => `S.pops['${c}']=S.pops['${c}']||{day:0,bb:null,boost:0,down:0,routers:1,gen:false,rgen:0};`;
+const df = (id, a, b, ch, own = true) => `S.links.push({id:'${id}',a:'${a}',b:'${b}',kind:'df',own:${own},sys:'roadm',ch:${JSON.stringify(ch)},km:kmBetween('${a}','${b}'),sub:false,cable:null,mo:0,trench:'${id}',cut:0,day:0,ready:0,spares:false});`;
+// Spawn offers until one of a type shows up (or give up), with everything else cleared out of the way.
+const spawnUntil = (ev, type, n = 400) => ev(`(()=>{for(let i=0;i<${n};i++){S.offers=[];spawnOffer();const o=S.offers.find(o=>o.type==='${type}');if(o)return JSON.stringify(o);}return 'null';})()`);
+
+test('#187 a capability brings its customers before the level does, only when you can serve them', () => {
+ const { ev, dom, errors } = load();
+ ev(start);
+ ev(`S.lvl=1;${pop('nyc')}${pop('chi')}compute()`);
+ assert.equal(ev("spots().filter(s=>s.t==='hft').length"), 0, 'no low-latency path, no trading firm');
+ assert.equal(JSON.parse(spawnUntil(ev, 'hft')), null, 'level 1 alone never brings HFT');
+ ev("S.links.push({id:'w',a:'nyc',b:'chi',kind:'wave',tier:2,km:kmBetween('nyc','chi'),cut:0,mo:0});compute()");
+ const s = JSON.parse(ev("JSON.stringify(spots().find(s=>s.t==='hft'))"));
+ assert.deepEqual([s.a, s.b].sort(), ['chi', 'nyc']);
+ const o = JSON.parse(spawnUntil(ev, 'hft'));
+ assert.ok(o, 'the trading firm calls');
+ assert.equal(o.bw, ev("BIZ_T.hft.opts[0]"), 'at the smallest size');
+ assert.deepEqual(o.reqs, ['lat']);
+ assert.ok(o.latMax >= s.n, 'and the path you have already meets it');
+ assert.equal(o.spot.k, 'lat');
+ ev("ACT.leftTab({t:'deals'});renderAll()");
+ assert.match(dom.window.document.body.innerHTML, /They spotted your [\d.]+ ms (New York|Chicago)–(New York|Chicago) path/);
+ // Lit dark fiber with enough capacity brings AI interconnects (level 4) to a level 3 network; not the bigger DCI.
+ ev(`S.lvl=3;${df('d', 'nyc', 'chi', ['zr4', 'zr4'])}compute()`);
+ const t = JSON.parse(ev("JSON.stringify([...new Set(spots().map(s=>s.t))])"));
+ assert.ok(t.includes('ai'), 'AI training interconnect');
+ assert.ok(!t.includes('hyper'), 'not a hyperscaler DCI three times its size');
+ assert.ok(!t.includes('hft'), 'level 3 gets HFT anyway: no spotting needed');
+ ev("S.lvl=5");
+ assert.ok(!ev("spots().some(s=>s.t==='ai')"), 'once the level brings them, they are ordinary offers');
+ assert.equal(ev("(()=>{S.rules.gates='open';const n=spots().length;S.rules.gates='ladder';return n;})()"), 0, 'open gates need no spotting');
+ assert.deepEqual(errors, []);
+});
+
+test('#187 vendor demo units: one level ahead, a wait and a markup', () => {
+ const { ev, errors } = load();
+ ev(start);
+ ev('S.lvl=1');
+ assert.equal(ev("RG[1].lvl"), 2);
+ assert.equal(ev("techOk('rg',1,2)"), false);
+ ev("ACT.demoAsk({k:'rg',id:2})");
+ assert.equal(ev("demoAt('rg',2)"), null, 'never two levels ahead');
+ ev("ACT.demoAsk({k:'rg',id:1})");
+ const at = ev("demoAt('rg',1)");
+ assert.equal(at - ev('S.day'), ev('leadDays(DEMO_DAYS)'), 'a short wait');
+ ev("ACT.upRouter({city:'fra',g:1})");
+ assert.equal(ev("S.pops.fra.rgen||0"), 0, 'not before it ships');
+ ev(`S.day=${at}`);
+ assert.equal(ev("techOk('rg',1,2)"), true);
+ assert.equal(ev("swapCost('fra',1)"), ev("Math.round(RG[1].cost*hwMul('rt')*1.6)-tradeIn(0,1)"), '+60%');
+ const cash = ev('S.cash');
+ ev("ACT.upRouter({city:'fra',g:1})");
+ assert.equal(ev("S.pops.fra.rgen"), 1);
+ assert.ok(cash - ev('S.cash') > 0);
+ // Optics and line systems the same way.
+ ev("S.lvl=2;ACT.demoAsk({k:'opt',id:'zr8'});ACT.demoAsk({k:'sys',id:'roadm'})");
+ assert.ok(ev("demoAt('opt','zr8')!==null&&demoAt('sys','roadm')!==null"));
+ ev("S.day+=30");
+ assert.equal(ev("optCost('zr8')"), ev("Math.round(OPT.zr8.cost*1.6*hwMul('opt'))"));
+ assert.equal(ev("sysCost('roadm')"), ev("Math.round(DF_SYS.roadm.cost*1.6)"));
+ ev('S.lvl=3');
+ assert.equal(ev("optCost('zr8')"), ev("Math.round(OPT.zr8.cost*hwMul('opt'))"), 'list price once your level catches up');
+ assert.equal(ev("demoCan(5)"), false);
+ assert.deepEqual(errors, []);
+});
+
+test('#187 pioneer fiber: dig your own before level 3, at a markup', () => {
+ const { ev, errors } = load();
+ ev(start);
+ ev(`S.lvl=2;${pop('ams')}UI.dfSrc='build';UI.dfSys='lite';UI.pending={a:'fra',b:'ams'};`);
+ const km = ev("kmBetween('fra','ams')");
+ assert.equal(ev(`digCost(${km})`), ev(`Math.round(dfBuildCost(${km})*1.6)`));
+ const cash = ev('S.cash');
+ ev('ACT.orderDf()');
+ const l = JSON.parse(ev("JSON.stringify(S.links.find(l=>l.kind==='df'))"));
+ assert.ok(l && l.own, 'your own trench');
+ assert.equal(cash - ev('S.cash'), ev(`digCost(${km})+DF_SYS.lite.cost+ampCount(${km})*AMP_COST`));
+ ev('S.lvl=3');
+ assert.equal(ev(`digCost(${km})`), ev(`dfBuildCost(${km})`), 'no markup at level 3');
+ assert.deepEqual(errors, []);
+});
+
+test('#173 a consortium seat: offer, pay, build, light, cut, save', () => {
+ const { ev, dom, errors } = load();
+ ev(start);
+ ev("S.lvl=3;S.capDeal={at:S.day,c:'lon'};capDealTick(S.day)");
+ const off = JSON.parse(ev('JSON.stringify(S.seatOff)'));
+ assert.ok(off && ev(`SEAT_ROUTES.lon.some(r=>r[2]===${JSON.stringify(off.name)})`), 'a capacity conference offers a seat on one of its routes');
+ ev("ACT.leftTab({t:'deals'});renderAll()");
+ assert.match(dom.window.document.body.innerHTML, /Consortium seat: /);
+ // A seat short enough to light with level 2 optics.
+ ev("S.lvl=2;S.seatOff={a:'syd',b:'akl',name:'Tasman Devil',km:seatKm('syd','akl'),exp:S.day+30}");
+ const km = ev('S.seatOff.km');
+ const cash = ev('S.cash'), popC = ev("popCost('syd')+popCost('akl')");
+ ev('ACT.seatBuy({n:2})');
+ assert.equal(cash - ev('S.cash'), ev(`seatCost(${km},2)`) + popC, 'your share of the build, and the landing POPs');
+ const l = JSON.parse(ev("JSON.stringify(S.links.find(l=>l.seat))"));
+ assert.ok(l.own && l.sub && l.pairs === 2 && l.ready > ev('S.day'), 'your own subsea glass, being laid');
+ assert.equal(ev('S.seatOff'), null);
+ assert.equal(ev("pairsMax(S.links.find(l=>l.seat))"), 2, 'only the pairs you bought');
+ // Save and load keep it.
+ ev('const s=migrate(JSON.parse(JSON.stringify(S)));window.__s=s');
+ assert.equal(ev("__s.links.find(l=>l.seat).pairs"), 2);
+ // It lands and lights with your own optics.
+ ev(`S.day=${l.ready};S.pops.syd.rgen=S.pops.akl.rgen=1;ACT.addCh({id:'${l.id}',o:'zr4'});compute()`);
+ assert.ok(ev(`dfCap(S.links.find(l=>l.id==='${l.id}'))`) > 0, 'lit');
+ ev(`ACT.subUpgrade({id:'${l.id}',k:'terminal'})`);
+ assert.equal(ev(`S.links.find(l=>l.id==='${l.id}').subterminal`), undefined, 'the consortium owns the terminals');
+ // A cut on the cable cuts your share.
+ ev(`S.links=S.links.filter(l=>l.id==='${l.id}');eval('('+fireFailure.toString().replace('for(const o of opts){r-=o[1];if(r<=0){type=o[0];break;}}',\"type='cut';\")+')')()`);
+ assert.ok(ev(`linkDown(S.links.find(l=>l.id==='${l.id}'))`), 'the cut takes your pairs down too');
+ assert.deepEqual(errors, []);
+});
+
+test('#187 the Low-latency boutique: pick it on day 0, traders weigh more and pay more, Speed of Light wins', () => {
+ const { ev, dom, errors } = load();
+ ev(start);
+ ev("ACT.leftTab({t:'goals'});renderAll()");
+ assert.match(dom.window.document.body.innerHTML, /Pick a charter/);
+ ev("window.innerWidth=360;renderAll()");
+ assert.match(dom.window.document.body.innerHTML, /Low-latency boutique/, 'on a phone too');
+ ev("window.innerWidth=1280");
+ assert.equal(ev('charter()'), 'global', 'Global backbone until you pick');
+ ev("ACT.charter({k:'boutique'})");
+ assert.equal(ev('charter()'), 'boutique');
+ ev("ACT.charter({k:'global'})");
+ assert.equal(ev('charter()'), 'boutique', 'picked once');
+ // More and better-paid trading firms than a global backbone with the same network.
+ const count = (k) => {
+ const g = load();
+ g.ev(start);
+ g.ev(`S.lvl=2;S.charter='${k}';${pop('nyc')}${pop('chi')}compute()`);
+ return JSON.parse(g.ev("(()=>{let n=0,r=0;for(let i=0;i<300;i++){S.offers=[];spawnOffer();const o=S.offers.find(o=>o.type==='hft');if(o){n++;if(o.reqs.length===1)r=o.rate/(150+kmBetween(o.city,o.city2)*0.08)/BIZ_T.hft.km;}}return JSON.stringify({n,r});})()"));
+ };
+ const gl = count('global'), bq = count('boutique');
+ assert.ok(bq.n > gl.n * 1.5, `boutique traders call more (${bq.n} vs ${gl.n})`);
+ assert.ok(Math.abs(bq.r - 1.4) < 0.02 && Math.abs(gl.r - 1) < 0.02, 'and pay 40% more');
+ // Speed of Light: three finance routes faster on your own glass than any lease, and two paying latency customers.
+ ev(`S.lvl=2;${pop('nyc')}${pop('chi')}${pop('ash')}${df('a', 'nyc', 'chi', ['zr4'])}${df('b', 'chi', 'ash', ['zr4'])}${df('c', 'nyc', 'ash', ['zr4'])}compute()`);
+ assert.equal(ev('solRoutes().length'), 3);
+ ev('specDay(S.day)');
+ assert.equal(ev('S.solWon'), 0, 'not without paying customers');
+ ev("for(const [a,b] of [['nyc','chi'],['chi','ash']])S.biz.push({id:uid(),city:a,city2:b,name:'T',type:'hft',bw:1,rate:1000,reqs:['lat'],latMax:latMaxOf(a,b),mood:100,since:0});compute();specDay(S.day)");
+ assert.equal(ev('S.solWon'), Math.max(1, ev('S.day')), 'Speed of Light');
+ ev('checkBadges()');
+ assert.notEqual(ev("S.ach.sol"), undefined, 'and its badge');
+ ev("renderAll()");
+ assert.match(dom.window.document.body.innerHTML, /Won on /);
+ assert.deepEqual(errors, []);
+});
+
+test('#187 old saves load as Global backbone; scenarios ignore charters', () => {
+ const { ev, errors } = load();
+ ev(start);
+ ev("const o=JSON.parse(JSON.stringify(S));for(const k of ['charter','chartSet','demo','seatOff','solWon'])delete o[k];o.links.push({id:'q',a:'fra',b:'ams',kind:'df',own:false,sub:false,seat:true,sys:'lite',ch:[],km:400,ready:0});window.__o=migrate(o)");
+ assert.equal(ev('__o.charter'), 'global');
+ assert.equal(ev('__o.chartSet'), true, 'no charter card for an old save');
+ assert.deepEqual(JSON.parse(ev('JSON.stringify(__o.demo)')), {});
+ assert.equal(ev('__o.seatOff'), null);
+ assert.equal(ev("__o.links.find(l=>l.id==='q').seat"), undefined, 'a forged seat is dropped');
+ ev("S.charter='boutique';S.scn={id:'x'}");
+ assert.equal(ev('charter()'), 'global');
+ assert.deepEqual(errors, []);
+});