Charters: a popup at the start, and a third one, the Cable broker (#300)
A new Normal game now asks what it is building before anything else, in a popup that holds the clock and cannot be closed without an answer; the tutorial waits for it. A save still in its first month that never picked is asked on load. Sandbox, puzzles and scenarios never ask. The Cable broker builds and lights glass from day one at the prices everyone pays at the top level: dark fiber, every line system and optic, digging without the pioneer markup, own subsea cables and their upgrades, eight pairs, and every router those optics need. Everything else unlocks by level as before. Its offers lean to carriers buying waves and pairs, capacity conferences are open to it at any level, and carriers call about three times a year with a capacity deal. It runs its own ten-goal ladder and wins Glass Baron (own cables on five continents, $1M a month of capacity sales), with a badge; Tier 1 stays its own win. Classic and boutique networks may lay their own subsea cable from customer level 9 as well as after Tier 1. Rule M6 (gameplay-rules): a charter changes what you set out to do, never what things cost. Closes #300.
This commit is contained in:
parent
f303f29f22
commit
934a83588a
40 changed files with 535 additions and 97 deletions
|
|
@ -47,6 +47,7 @@ These are what the game promises, held up by `tests/gameplay-rules.test.js` (one
|
||||||
| M3 | Every subsystem that can annoy the player reads a rule: outages and events (`chaos`), DDoS, sold-out routes, de-peering and hardware prices (`market`), lead times (`lead`), the clock, cable ships (`sea`), conferences (`confs`), going broke (`broke`), customer patience (`moods`), PNI delivery (`pnis`), and the day's toasts (quiet notifications). A quiet ruleset gives a quiet year. | Rules are presets of flags, not separate code. |
|
| M3 | Every subsystem that can annoy the player reads a rule: outages and events (`chaos`), DDoS, sold-out routes, de-peering and hardware prices (`market`), lead times (`lead`), the clock, cable ships (`sea`), conferences (`confs`), going broke (`broke`), customer patience (`moods`), PNI delivery (`pnis`), and the day's toasts (quiet notifications). A quiet ruleset gives a quiet year. | Rules are presets of flags, not separate code. |
|
||||||
| M4 | Scenarios and the weekly challenge always run On-call plus their own `S.scn.rules`. | Fair scores. |
|
| M4 | Scenarios and the weekly challenge always run On-call plus their own `S.scn.rules`. | Fair scores. |
|
||||||
| M5 | Sandbox has no locked feature: open gates, every level, own cables, endless money. | It is a sandbox. |
|
| M5 | Sandbox has no locked feature: open gates, every level, own cables, endless money. | It is a sandbox. |
|
||||||
|
| M6 | A Normal game picks its charter once, when it starts (sandbox, puzzles and scenarios never do). A charter changes what you set out to do, never what things cost: the Cable broker gets glass (fiber, line systems, optics, own subsea cables and the routers to light them) from day one at the prices everyone pays at the top level, and everything else by level. | Same prices and rules for every charter (#300). |
|
||||||
|
|
||||||
## Content
|
## Content
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,8 @@ All notable changes to this project are documented here. The project follows
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
- A new game now asks what you are building before it starts, and there is a third answer: Cable broker. The broker lays fiber on land and cables under the sea from day one, at the usual prices, lights them and sells the capacity to other carriers; it has ten goals of its own, carriers call it with capacity deals, and its win is Glass Baron: your own cables land on five continents while carriers pay you $1M a month. The Global backbone and the Low-latency boutique play as before, and the choice is now a popup at the start instead of a card you could miss (#300).
|
||||||
|
- From customer level 9 you can lay your own subsea cable without being Tier 1 first (#300).
|
||||||
- Traffic now leaves your network at the nearest peering, so a PNI in London no longer pulls New York's traffic across the Atlantic when the New York IX reaches the same network (#298). Where a PNI and an IX port reach a network in the same city, the PNI still goes first, and RouteScript's `prefer pni` still hauls everything to your PNIs.
|
- Traffic now leaves your network at the nearest peering, so a PNI in London no longer pulls New York's traffic across the Atlantic when the New York IX reaches the same network (#298). Where a PNI and an IX port reach a network in the same city, the PNI still goes first, and RouteScript's `prefer pni` still hauls everything to your PNIs.
|
||||||
- Fabric (NNI) ports now grow like your other ports: buy them at 10G, 100G or 400G (as fast as your router takes), and bundle up to eight into a LAG when one is not enough (#140). A fabric customer is no longer accepted, by hand or automatically, when its bandwidth would not fit on the port as well (#307).
|
- Fabric (NNI) ports now grow like your other ports: buy them at 10G, 100G or 400G (as fast as your router takes), and bundle up to eight into a LAG when one is not enough (#140). A fabric customer is no longer accepted, by hand or automatically, when its bandwidth would not fit on the port as well (#307).
|
||||||
- Pressing Space to play again after a pause now picks up at the speed you were playing, not always at 1× (#299).
|
- Pressing Space to play again after a pause now picks up at the speed you were playing, not always at 1× (#299).
|
||||||
|
|
|
||||||
|
|
@ -352,6 +352,26 @@
|
||||||
"banks.your_ceo_plays_golf_with_our":"Dein CEO spielt jeden Donnerstag Golf mit unserem CEO.",
|
"banks.your_ceo_plays_golf_with_our":"Dein CEO spielt jeden Donnerstag Golf mit unserem CEO.",
|
||||||
"banks.your_rate_is_set_by_the":"Dein Zinssatz wird jeden Monat von den Sternen festgelegt. Merkur ist oft rückläufig.",
|
"banks.your_rate_is_set_by_the":"Dein Zinssatz wird jeden Monat von den Sternen festgelegt. Merkur ist oft rückläufig.",
|
||||||
"banks.your_rising_sign":"Dein Aszendent",
|
"banks.your_rising_sign":"Dein Aszendent",
|
||||||
|
"broker.a_carrier_calls":"<b>{name} will Kapazität</b><br>{what} zwischen {a} und {b}. Es liegt bei deinen Deals.",
|
||||||
|
"broker.glass_baron":"Glasbaron",
|
||||||
|
"broker.goal_10k":"10.000 km eigenes Glas",
|
||||||
|
"broker.goal_10k_d":"Fiber, die du gegraben hast, und Kabel, die du verlegt hast, fertig und Ende an Ende zusammengezählt.",
|
||||||
|
"broker.goal_10t":"Verkaufe 10 Tbps",
|
||||||
|
"broker.goal_10t_d":"Waves und Subsea-Kapazität, für die Carrier dich bezahlen, ergeben zusammen 10 Tbps.",
|
||||||
|
"broker.goal_16t":"1,6T auf zwei Hops hintereinander",
|
||||||
|
"broker.goal_16t_d":"Beleuchte zwei deiner eigenen Fibers oder Kabel, die sich in einer Stadt treffen, mit jeweils 1,6T oder mehr.",
|
||||||
|
"broker.goal_c4":"Kabel auf vier Kontinenten",
|
||||||
|
"broker.goal_c4_d":"Deine eigenen Seekabel landen auf vier Kontinenten.",
|
||||||
|
"broker.goal_deal":"Liefere einen Kapazitäts-Deal",
|
||||||
|
"broker.goal_deal_d":"Unterschreibe einen Deal auf einer Kapazitätskonferenz oder wenn ein Carrier anruft, und beleuchte ihn vor seinem Termin.",
|
||||||
|
"broker.goal_df_d":"Miete oder grabe Dark Fiber und setze eine Optik darauf. Als Makler sind jedes Leitungssystem und jede Optik ab dem ersten Tag offen.",
|
||||||
|
"broker.goal_pair":"Vermiete ein Dark-Fiber-Paar",
|
||||||
|
"broker.goal_pair_d":"Grabe deine eigene Fiber und vermiete dann ein freies Paar an einen Carrier oder einen Hyperscaler.",
|
||||||
|
"broker.goal_sea":"Verlege dein eigenes Seekabel",
|
||||||
|
"broker.goal_sea_d":"Wähle im Dark-Fiber-Fenster eine Seeroute und schick das Schiff los. Jedes Kabel, das dir gehört, zählt für Glasbaron.",
|
||||||
|
"broker.goal_wave":"Verkaufe eine Wave auf deinem Glas",
|
||||||
|
"broker.goal_wave_d":"Carrier mieten Alien Waves auf Fiber, die du beleuchtet hast. Nimm eine aus deinen Deals an.",
|
||||||
|
"broker.goal_win_d":"Deine eigenen Kabel landen auf fünf Kontinenten, und Carrier zahlen dir 1 Mio. $ im Monat für Kapazität.",
|
||||||
"broker.how":"verkauft, wie der Markt es will; der Broker behält 10 %",
|
"broker.how":"verkauft, wie der Markt es will; der Broker behält 10 %",
|
||||||
"broker.lead":"Der Broker behält dein Angebot und verkauft es nach und nach, wenn Carrier zwischen diesen beiden Städten Kapazität brauchen. Er behält 10 % jedes Verkaufs.",
|
"broker.lead":"Der Broker behält dein Angebot und verkauft es nach und nach, wenn Carrier zwischen diesen beiden Städten Kapazität brauchen. Er behält 10 % jedes Verkaufs.",
|
||||||
"broker.list_all":"Alle {n} anbieten",
|
"broker.list_all":"Alle {n} anbieten",
|
||||||
|
|
@ -365,9 +385,14 @@
|
||||||
"broker.n_waves":{"one":"noch {n} Welle","other":"noch {n} Wellen"},
|
"broker.n_waves":{"one":"noch {n} Welle","other":"noch {n} Wellen"},
|
||||||
"broker.n_waves_left":{"one":"{n} Welle noch zu verkaufen","other":"{n} Wellen noch zu verkaufen"},
|
"broker.n_waves_left":{"one":"{n} Welle noch zu verkaufen","other":"{n} Wellen noch zu verkaufen"},
|
||||||
"broker.no_market":"Zwischen diesen beiden Städten will gerade niemand mehr Kapazität. Ein Angebot wartet, bis es so weit ist.",
|
"broker.no_market":"Zwischen diesen beiden Städten will gerade niemand mehr Kapazität. Ein Angebot wartet, bis es so weit ist.",
|
||||||
|
"broker.progress":"Deine eigenen Kabel landen auf {c} von {n} Kontinenten · Carrier zahlen dir {mo} von {m} im Monat.",
|
||||||
"broker.seat_regen_note":"Auf einem Konsortialkabel stehen deine Regen-Standorte in den Landestationen unterwegs.",
|
"broker.seat_regen_note":"Auf einem Konsortialkabel stehen deine Regen-Standorte in den Landestationen unterwegs.",
|
||||||
"broker.sold":"<b>Dein Broker hat Kapazität verkauft.</b><br>{name} mietet {what} für {price}/Monat.",
|
"broker.sold":"<b>Dein Broker hat Kapazität verkauft.</b><br>{name} mietet {what} für {price}/Monat.",
|
||||||
"broker.unlist":"Vom Markt nehmen",
|
"broker.unlist":"Vom Markt nehmen",
|
||||||
|
"broker.win_as_a_cable_broker":"Gewinne als Kabelmakler.",
|
||||||
|
"broker.win_text":"{name} (AS{asn}) hat in {days} Tagen eigene Kabel auf {n} Kontinente verlegt und verkauft anderen Carriern Kapazität für {mo} im Monat. Die Ozeane sind jetzt dein Graben.",
|
||||||
|
"broker.won_on_date":"Gewonnen am {date}: Deine eigenen Kabel überspannen die Ozeane, und Carrier zahlen dir für ihre Nutzung.",
|
||||||
|
"broker.your_glass_gear_is_already_yours":"Als Kabelmakler gehören dir jede Fiber, jedes Leitungssystem, jede Optik, jedes Seekabel und die Router, um sie zu beleuchten, schon jetzt, egal was das Level sagt.",
|
||||||
"businesses.a_free_pni_with_voda_phony":"Ein kostenloser PNI mit Voda-Phony. Hardware: Absolute-Unit-3.2T-Router, 3.2T-Ports und 12.8T-Waves.",
|
"businesses.a_free_pni_with_voda_phony":"Ein kostenloser PNI mit Voda-Phony. Hardware: Absolute-Unit-3.2T-Router, 3.2T-Ports und 12.8T-Waves.",
|
||||||
"businesses.agi_lab_allegedly":"AGI-Labor (angeblich)",
|
"businesses.agi_lab_allegedly":"AGI-Labor (angeblich)",
|
||||||
"businesses.agi_labs_allegedly_wanting_ai_wans":"AGI-Labore (angeblich), die KI-WANs mit 12,8 bis 25,6 Tbps wollen, und kostenlose PNIs mit Du-opoly und Ooh-redoo. Hardware: Mikrowtik-CCR-3.2T-Router.",
|
"businesses.agi_labs_allegedly_wanting_ai_wans":"AGI-Labore (angeblich), die KI-WANs mit 12,8 bis 25,6 Tbps wollen, und kostenlose PNIs mit Du-opoly und Ooh-redoo. Hardware: Mikrowtik-CCR-3.2T-Router.",
|
||||||
|
|
@ -3009,7 +3034,7 @@
|
||||||
"modal_and_names.the_real_thing_by_thomas_kj":"Das Original, von Thomas Kjær Aabo: eine zoombare, interaktive Karte, die zeigt, wie deine Pakete wirklich reisen, vom WLAN bis zur Unterseeglasfaser, heute, 2010 und 1995. Dieses Spiel denkt sich alles unterwegs aus. Die Karte liegt richtig.",
|
"modal_and_names.the_real_thing_by_thomas_kj":"Das Original, von Thomas Kjær Aabo: eine zoombare, interaktive Karte, die zeigt, wie deine Pakete wirklich reisen, vom WLAN bis zur Unterseeglasfaser, heute, 2010 und 1995. Dieses Spiel denkt sich alles unterwegs aus. Die Karte liegt richtig.",
|
||||||
"modal_and_names.the_real_thing_follow_a_packet":"Das Original: Folge einem Paket vom WLAN bis zur Unterseeglasfaser.",
|
"modal_and_names.the_real_thing_follow_a_packet":"Das Original: Folge einem Paket vom WLAN bis zur Unterseeglasfaser.",
|
||||||
"modals.lay_your_own_subsea_cable":"Eigenes Seekabel verlegen…",
|
"modals.lay_your_own_subsea_cable":"Eigenes Seekabel verlegen…",
|
||||||
"modals.your_own_subsea_cable_tier_1":"Dein eigenes Seekabel <small>nur Tier 1</small>",
|
"modals.your_own_subsea_cable_level_n":"Eigenes Seekabel <small>Level {n} oder Tier 1</small>",
|
||||||
"networks.a_mobile_network_named_after_the":"Ein Mobilfunknetz, benannt nach dem Klang anstoßender Gläser. Prost auf jeden 5G-Mast.",
|
"networks.a_mobile_network_named_after_the":"Ein Mobilfunknetz, benannt nach dem Klang anstoßender Gläser. Prost auf jeden 5G-Mast.",
|
||||||
"networks.a_spanish_carrier_starring_in_every":"Ein spanischer Carrier mit Hauptrolle in jedem lateinamerikanischen Markt, zumindest bis er den nächsten verkauft.",
|
"networks.a_spanish_carrier_starring_in_every":"Ein spanischer Carrier mit Hauptrolle in jedem lateinamerikanischen Markt, zumindest bis er den nächsten verkauft.",
|
||||||
"networks.a_tiny_telco_in_a_country":"Eine winzige Telco in einem Land, in dem die Kabel der Welt an Land gehen. Die Preise passen dazu.",
|
"networks.a_tiny_telco_in_a_country":"Eine winzige Telco in einem Land, in dem die Kabel der Welt an Land gehen. Die Preise passen dazu.",
|
||||||
|
|
@ -3299,7 +3324,6 @@
|
||||||
"own_cable.km_km_is_too_far_for":"{km} km sind zu weit für deine Optiken allein. Füge {what} hinzu, um dieses Kabel zu beleuchten.",
|
"own_cable.km_km_is_too_far_for":"{km} km sind zu weit für deine Optiken allein. Füge {what} hinzu, um dieses Kabel zu beleuchten.",
|
||||||
"own_cable.km_km_of_seabed":"{km} km Meeresboden",
|
"own_cable.km_km_of_seabed":"{km} km Meeresboden",
|
||||||
"own_cable.lay_the_cable_price":"Kabel verlegen <small>{price}</small>",
|
"own_cable.lay_the_cable_price":"Kabel verlegen <small>{price}</small>",
|
||||||
"own_cable.laying_your_own_subsea_cable_is":"Ein eigenes Seekabel zu verlegen ist Tier-1-Sache. Werde zuerst transitfrei.",
|
|
||||||
"own_cable.n_days":"+{n} Tage",
|
"own_cable.n_days":"+{n} Tage",
|
||||||
"own_cable.n_in_the_cable_the_first":"{n} im Kabel, das erste beleuchtet",
|
"own_cable.n_in_the_cable_the_first":"{n} im Kabel, das erste beleuchtet",
|
||||||
"own_cable.no_navigable_sea_route_connects":"Keine befahrbare Seeroute verbindet diese Landestationen.",
|
"own_cable.no_navigable_sea_route_connects":"Keine befahrbare Seeroute verbindet diese Landestationen.",
|
||||||
|
|
@ -3312,6 +3336,7 @@
|
||||||
"own_cable.the_seabed_survey_found_an_old":"Die Meeresbodenvermessung hat eine alte Seemine gefunden. Ein kleiner, sehr vorsichtiger Umweg.",
|
"own_cable.the_seabed_survey_found_an_old":"Die Meeresbodenvermessung hat eine alte Seemine gefunden. Ein kleiner, sehr vorsichtiger Umweg.",
|
||||||
"own_cable.this_design_s_route_is_km":"Die Route dieses Designs ist {km} km lang: zu lang für jede Optik, selbst mit beiden Upgrades. Ein kürzeres Design schafft es.",
|
"own_cable.this_design_s_route_is_km":"Die Route dieses Designs ist {km} km lang: zu lang für jede Optik, selbst mit beiden Upgrades. Ein kürzeres Design schafft es.",
|
||||||
"own_cable.this_route_is_on_land_build":"Diese Route verläuft an Land. Bau stattdessen deine eigene Glasfaser.",
|
"own_cable.this_route_is_on_land_build":"Diese Route verläuft an Land. Bau stattdessen deine eigene Glasfaser.",
|
||||||
|
"own_cable.your_own_subsea_cable_needs_level":"Dein eigenes Seekabel braucht Kundenlevel {n} oder Tier 1. Ein Kabelmakler verlegt sie ab dem ersten Tag.",
|
||||||
"own_cable.your_very_own_subsea_cable_a":"Dein ganz eigenes Seekabel. Ein Schiff verlegt es über den Meeresboden, dir gehört jedes Faserpaar darin, und niemand sonst teilt sich dein Glas mit seinen Waves. Es kostet unverschämt viel Geld und dauert lange.",
|
"own_cable.your_very_own_subsea_cable_a":"Dein ganz eigenes Seekabel. Ein Schiff verlegt es über den Meeresboden, dir gehört jedes Faserpaar darin, und niemand sonst teilt sich dein Glas mit seinen Waves. Es kostet unverschämt viel Geld und dauert lange.",
|
||||||
"page.a_free_cartoon_browser_game_about":"Ein kostenloses Cartoon-Browserspiel darüber, wie das Internet funktioniert. Starte als winziges Netz in einer Stadt, bring Breitband in die Haushalte, kauf IP-Transit bei Tier-1- und Tier-2-Carriern, peere an Internet Exchanges, richte Private Interconnects und eingebettete CDN-Caches ein und verlege Glasfaser an Land, Subsea-Waves und deine eigene Dark Fiber mit DWDM- und ZR-Optiken. Gewinne Unternehmens-, Hosting-, Hochfrequenzhandels-, KI-GPU- und Hyperscaler-Kunden und halte sie bei Laune, während Bagger, Haie, Vertipper, Route Leaks, DDoS-Angriffe und Geopolitik alles kaputt machen.",
|
"page.a_free_cartoon_browser_game_about":"Ein kostenloses Cartoon-Browserspiel darüber, wie das Internet funktioniert. Starte als winziges Netz in einer Stadt, bring Breitband in die Haushalte, kauf IP-Transit bei Tier-1- und Tier-2-Carriern, peere an Internet Exchanges, richte Private Interconnects und eingebettete CDN-Caches ein und verlege Glasfaser an Land, Subsea-Waves und deine eigene Dark Fiber mit DWDM- und ZR-Optiken. Gewinne Unternehmens-, Hosting-, Hochfrequenzhandels-, KI-GPU- und Hyperscaler-Kunden und halte sie bei Laune, während Bagger, Haie, Vertipper, Route Leaks, DDoS-Angriffe und Geopolitik alles kaputt machen.",
|
||||||
"page.breaking_cve_2026_31337_in_php":"🐘 EILMELDUNG: CVE-2026-31337 IN PHP LEGT DAS HALBE INTERNET LAHM",
|
"page.breaking_cve_2026_31337_in_php":"🐘 EILMELDUNG: CVE-2026-31337 IN PHP LEGT DAS HALBE INTERNET LAHM",
|
||||||
|
|
@ -4157,6 +4182,8 @@
|
||||||
"specialist.a_b_km_km_ready_in":"{a} ⇄ {b} · {km} km · etwa {ms} ms · fertig in etwa {n} Tagen",
|
"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.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.ask_for_a_demo_unit_p_n":"Demogerät: +{p} %, {n} Tage",
|
||||||
|
"specialist.cable_broker":"Kabelmakler",
|
||||||
|
"specialist.cable_broker_desc":"Verlege ab dem ersten Tag Fiber an Land und Kabel unter dem Meer, beleuchte sie und verkaufe die Kapazität an andere Carrier. Eigene Ziele; gewinne Glasbaron: Deine eigenen Kabel landen auf {n} Kontinenten, während Carrier dir {m} im Monat zahlen. Alles andere schaltet sich wie immer nach Level frei.",
|
||||||
"specialist.charter_signed_name":"Charta unterschrieben: {name}.",
|
"specialist.charter_signed_name":"Charta unterschrieben: {name}.",
|
||||||
"specialist.consortium_seat":"Konsortialplatz",
|
"specialist.consortium_seat":"Konsortialplatz",
|
||||||
"specialist.consortium_seat_name":"Konsortialplatz: {name}",
|
"specialist.consortium_seat_name":"Konsortialplatz: {name}",
|
||||||
|
|
@ -4164,12 +4191,9 @@
|
||||||
"specialist.dig_your_own_as_a_pioneer":"Selbst graben als Pionier (+{p} %) · {price} · {n} Tage",
|
"specialist.dig_your_own_as_a_pioneer":"Selbst graben als Pionier (+{p} %) · {price} · {n} Tage",
|
||||||
"specialist.global_backbone":"Globaler Backbone",
|
"specialist.global_backbone":"Globaler Backbone",
|
||||||
"specialist.includes_pops_at_the_landings_price":"Inklusive POPs an den Landestationen: {price}.",
|
"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.low_latency_boutique":"Low-Latency-Boutique",
|
||||||
"specialist.n_fiber_pairs":{"one":"{n} Faserpaar","other":"{n} Faserpaare"},
|
"specialist.n_fiber_pairs":{"one":"{n} Faserpaar","other":"{n} Faserpaare"},
|
||||||
"specialist.part_owner_of_the_sea":"Miteigentümer des Meeres",
|
"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.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.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_broadband_in_a_one":"Sie haben dein Breitband in {a} entdeckt, einer der großen Privatkunden-Städte.",
|
||||||
|
|
@ -4181,10 +4205,11 @@
|
||||||
"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_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.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.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.what_are_you_building":"Was baust du?",
|
||||||
"specialist.win_as_a_low_latency_boutique":"Gewinne als Low-Latency-Boutique",
|
"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.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.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_charter_sets_your_goals":"Deine Charta bestimmt deine Ziele und deinen Sieg. Du wählst einmal, für das ganze Leben dieses Netzes.",
|
||||||
"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_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!",
|
"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.as_when_you_started":"wie bei deinem Start",
|
||||||
|
|
|
||||||
|
|
@ -350,6 +350,26 @@
|
||||||
"banks.your_ceo_plays_golf_with_our":"Tu CEO juega al golf con nuestro CEO todos los jueves.",
|
"banks.your_ceo_plays_golf_with_our":"Tu CEO juega al golf con nuestro CEO todos los jueves.",
|
||||||
"banks.your_rate_is_set_by_the":"Tu tasa la fijan los astros cada mes. Mercurio está retrógrado a menudo.",
|
"banks.your_rate_is_set_by_the":"Tu tasa la fijan los astros cada mes. Mercurio está retrógrado a menudo.",
|
||||||
"banks.your_rising_sign":"Tu ascendente",
|
"banks.your_rising_sign":"Tu ascendente",
|
||||||
|
"broker.a_carrier_calls":"<b>{name} quiere capacidad</b><br>{what} entre {a} y {b}. Está en tus ofertas.",
|
||||||
|
"broker.glass_baron":"Barón del Vidrio",
|
||||||
|
"broker.goal_10k":"10.000 km de vidrio propio",
|
||||||
|
"broker.goal_10k_d":"Fibra que excavaste y cables que tendiste, listos y sumados de extremo a extremo.",
|
||||||
|
"broker.goal_10t":"Vende 10 Tbps",
|
||||||
|
"broker.goal_10t_d":"Las ondas y la capacidad submarina que los operadores te pagan suman 10 Tbps.",
|
||||||
|
"broker.goal_16t":"1,6T en dos saltos seguidos",
|
||||||
|
"broker.goal_16t_d":"Ilumina dos de tus propias fibras o cables que se encuentran en una ciudad con 1,6T o más cada uno.",
|
||||||
|
"broker.goal_c4":"Cables en cuatro continentes",
|
||||||
|
"broker.goal_c4_d":"Tus propios cables submarinos llegan a cuatro continentes.",
|
||||||
|
"broker.goal_deal":"Entrega un acuerdo de capacidad",
|
||||||
|
"broker.goal_deal_d":"Firma un acuerdo en una conferencia de capacidad, o cuando llame un operador, e ilumínalo antes de su fecha.",
|
||||||
|
"broker.goal_df_d":"Alquila o excava fibra oscura y ponle un óptico. Como bróker, todos los sistemas de línea y ópticos están abiertos desde el primer día.",
|
||||||
|
"broker.goal_pair":"Alquila un par de fibra oscura",
|
||||||
|
"broker.goal_pair_d":"Excava tu propia fibra y alquila un par libre a un operador o a un hiperescalador.",
|
||||||
|
"broker.goal_sea":"Tiende tu propio cable submarino",
|
||||||
|
"broker.goal_sea_d":"Elige una ruta marítima en la ventana de fibra oscura y envía el barco. Cada cable que tienes cuenta para Barón del Vidrio.",
|
||||||
|
"broker.goal_wave":"Vende una onda en tu vidrio",
|
||||||
|
"broker.goal_wave_d":"Los operadores alquilan alien waves en fibra que has iluminado. Acepta una de tus ofertas.",
|
||||||
|
"broker.goal_win_d":"Tus propios cables llegan a cinco continentes y los operadores te pagan 1 M$ al mes por capacidad.",
|
||||||
"broker.how":"vende según lo que pida el mercado; el bróker se queda el 10 %",
|
"broker.how":"vende según lo que pida el mercado; el bróker se queda el 10 %",
|
||||||
"broker.lead":"El bróker mantiene tu oferta y la va vendiendo con el tiempo, cuando los operadores entre estas dos ciudades quieren capacidad. Se queda el 10 % de cada venta.",
|
"broker.lead":"El bróker mantiene tu oferta y la va vendiendo con el tiempo, cuando los operadores entre estas dos ciudades quieren capacidad. Se queda el 10 % de cada venta.",
|
||||||
"broker.list_all":"Ofrecer las {n}",
|
"broker.list_all":"Ofrecer las {n}",
|
||||||
|
|
@ -363,9 +383,14 @@
|
||||||
"broker.n_waves":{"one":"{n} onda más","other":"{n} ondas más"},
|
"broker.n_waves":{"one":"{n} onda más","other":"{n} ondas más"},
|
||||||
"broker.n_waves_left":{"one":"queda {n} onda por vender","other":"quedan {n} ondas por vender"},
|
"broker.n_waves_left":{"one":"queda {n} onda por vender","other":"quedan {n} ondas por vender"},
|
||||||
"broker.no_market":"Ahora mismo nadie quiere más capacidad entre estas dos ciudades. Una oferta espera hasta que la quieran.",
|
"broker.no_market":"Ahora mismo nadie quiere más capacidad entre estas dos ciudades. Una oferta espera hasta que la quieran.",
|
||||||
|
"broker.progress":"Tus propios cables llegan a {c} de {n} continentes · los operadores te pagan {mo} de {m} al mes.",
|
||||||
"broker.seat_regen_note":"En un cable de consorcio, tus sitios de regeneración están en las estaciones de amarre del camino.",
|
"broker.seat_regen_note":"En un cable de consorcio, tus sitios de regeneración están en las estaciones de amarre del camino.",
|
||||||
"broker.sold":"<b>Tu bróker vendió capacidad.</b><br>{name} alquila {what} por {price}/mes.",
|
"broker.sold":"<b>Tu bróker vendió capacidad.</b><br>{name} alquila {what} por {price}/mes.",
|
||||||
"broker.unlist":"Retirar del mercado",
|
"broker.unlist":"Retirar del mercado",
|
||||||
|
"broker.win_as_a_cable_broker":"Gana como bróker de cables.",
|
||||||
|
"broker.win_text":"{name} (AS{asn}) tendió sus propios cables hasta {n} continentes y vende {mo} al mes de capacidad a otros operadores, en {days} días. Los océanos son ahora tu zanja.",
|
||||||
|
"broker.won_on_date":"Ganado el {date}: tus propios cables cruzan los océanos y los operadores te pagan por usarlos.",
|
||||||
|
"broker.your_glass_gear_is_already_yours":"Como bróker de cables, toda la fibra, los sistemas de línea, los ópticos, los cables submarinos y los routers para iluminarlos ya son tuyos, diga lo que diga el nivel.",
|
||||||
"businesses.a_free_pni_with_voda_phony":"Un PNI gratis con Voda-Phony. Equipo: routers Absolute Unit 3.2T, puertos de 3.2T y ondas de 12.8T.",
|
"businesses.a_free_pni_with_voda_phony":"Un PNI gratis con Voda-Phony. Equipo: routers Absolute Unit 3.2T, puertos de 3.2T y ondas de 12.8T.",
|
||||||
"businesses.agi_lab_allegedly":"Laboratorio de AGI (supuestamente)",
|
"businesses.agi_lab_allegedly":"Laboratorio de AGI (supuestamente)",
|
||||||
"businesses.agi_labs_allegedly_wanting_ai_wans":"Laboratorios de AGI (supuestamente) que quieren WAN de IA de 12.8 a 25.6 Tbps, y PNIs gratis con Du-opoly y Ooh-redoo. Equipo: routers Mikrowtik CCR 3.2T.",
|
"businesses.agi_labs_allegedly_wanting_ai_wans":"Laboratorios de AGI (supuestamente) que quieren WAN de IA de 12.8 a 25.6 Tbps, y PNIs gratis con Du-opoly y Ooh-redoo. Equipo: routers Mikrowtik CCR 3.2T.",
|
||||||
|
|
@ -3007,7 +3032,7 @@
|
||||||
"modal_and_names.the_real_thing_by_thomas_kj":"Lo de verdad, de Thomas Kjær Aabo: un mapa interactivo con zoom de cómo viajan realmente tus paquetes, del Wi-Fi a la fibra submarina, hoy, en 2010 y en 1995. Este juego se lo inventa sobre la marcha. Ese lo hace bien.",
|
"modal_and_names.the_real_thing_by_thomas_kj":"Lo de verdad, de Thomas Kjær Aabo: un mapa interactivo con zoom de cómo viajan realmente tus paquetes, del Wi-Fi a la fibra submarina, hoy, en 2010 y en 1995. Este juego se lo inventa sobre la marcha. Ese lo hace bien.",
|
||||||
"modal_and_names.the_real_thing_follow_a_packet":"Lo de verdad: sigue un paquete del Wi-Fi a la fibra submarina.",
|
"modal_and_names.the_real_thing_follow_a_packet":"Lo de verdad: sigue un paquete del Wi-Fi a la fibra submarina.",
|
||||||
"modals.lay_your_own_subsea_cable":"Tender tu propio cable submarino…",
|
"modals.lay_your_own_subsea_cable":"Tender tu propio cable submarino…",
|
||||||
"modals.your_own_subsea_cable_tier_1":"Tu propio cable submarino <small>solo Tier 1</small>",
|
"modals.your_own_subsea_cable_level_n":"Tu propio cable submarino <small>nivel {n} o Tier 1</small>",
|
||||||
"networks.a_mobile_network_named_after_the":"Una red móvil con el nombre del sonido de un brindis. Salud por cada torre 5G.",
|
"networks.a_mobile_network_named_after_the":"Una red móvil con el nombre del sonido de un brindis. Salud por cada torre 5G.",
|
||||||
"networks.a_spanish_carrier_starring_in_every":"Un operador español protagonista en todos los mercados latinoamericanos, al menos hasta que vende el siguiente.",
|
"networks.a_spanish_carrier_starring_in_every":"Un operador español protagonista en todos los mercados latinoamericanos, al menos hasta que vende el siguiente.",
|
||||||
"networks.a_tiny_telco_in_a_country":"Una telco diminuta en un país donde llegan a tierra los cables del mundo. Precios a juego.",
|
"networks.a_tiny_telco_in_a_country":"Una telco diminuta en un país donde llegan a tierra los cables del mundo. Precios a juego.",
|
||||||
|
|
@ -3297,7 +3322,6 @@
|
||||||
"own_cable.km_km_is_too_far_for":"{km} km es demasiado lejos para tus ópticas solas. Añade {what} para iluminar este cable.",
|
"own_cable.km_km_is_too_far_for":"{km} km es demasiado lejos para tus ópticas solas. Añade {what} para iluminar este cable.",
|
||||||
"own_cable.km_km_of_seabed":"{km} km de lecho marino",
|
"own_cable.km_km_of_seabed":"{km} km de lecho marino",
|
||||||
"own_cable.lay_the_cable_price":"Tender el cable <small>{price}</small>",
|
"own_cable.lay_the_cable_price":"Tender el cable <small>{price}</small>",
|
||||||
"own_cable.laying_your_own_subsea_cable_is":"Tender tu propio cable submarino es cosa de Tier 1. Sé libre de tránsito primero.",
|
|
||||||
"own_cable.n_days":"+{n} días",
|
"own_cable.n_days":"+{n} días",
|
||||||
"own_cable.n_in_the_cable_the_first":"{n} en el cable, el primero iluminado",
|
"own_cable.n_in_the_cable_the_first":"{n} en el cable, el primero iluminado",
|
||||||
"own_cable.no_navigable_sea_route_connects":"Ninguna ruta marítima navegable conecta estas estaciones de aterrizaje.",
|
"own_cable.no_navigable_sea_route_connects":"Ninguna ruta marítima navegable conecta estas estaciones de aterrizaje.",
|
||||||
|
|
@ -3310,6 +3334,7 @@
|
||||||
"own_cable.the_seabed_survey_found_an_old":"El estudio del lecho marino encontró una vieja mina marina. Un pequeño desvío, muy cuidadoso.",
|
"own_cable.the_seabed_survey_found_an_old":"El estudio del lecho marino encontró una vieja mina marina. Un pequeño desvío, muy cuidadoso.",
|
||||||
"own_cable.this_design_s_route_is_km":"La ruta de este diseño es de {km} km: demasiado larga para cualquier óptica, incluso con ambas mejoras. Un diseño más corto puede lograrlo.",
|
"own_cable.this_design_s_route_is_km":"La ruta de este diseño es de {km} km: demasiado larga para cualquier óptica, incluso con ambas mejoras. Un diseño más corto puede lograrlo.",
|
||||||
"own_cable.this_route_is_on_land_build":"Esta ruta es terrestre. Construye mejor tu propia fibra.",
|
"own_cable.this_route_is_on_land_build":"Esta ruta es terrestre. Construye mejor tu propia fibra.",
|
||||||
|
"own_cable.your_own_subsea_cable_needs_level":"Tu propio cable submarino necesita nivel de clientes {n} o Tier 1. Un bróker de cables los tiende desde el primer día.",
|
||||||
"own_cable.your_very_own_subsea_cable_a":"Tu propio cable submarino. Un barco lo tiende por el lecho marino, eres dueño de cada par de fibra y las ondas de nadie más comparten tu vidrio. Cuesta una cantidad francamente grosera de dinero y lleva mucho tiempo.",
|
"own_cable.your_very_own_subsea_cable_a":"Tu propio cable submarino. Un barco lo tiende por el lecho marino, eres dueño de cada par de fibra y las ondas de nadie más comparten tu vidrio. Cuesta una cantidad francamente grosera de dinero y lleva mucho tiempo.",
|
||||||
"page.a_free_cartoon_browser_game_about":"Un juego de navegador de dibujos animados, gratuito, sobre cómo funciona internet. Empieza como una red diminuta en una ciudad, lanza banda ancha doméstica, compra tránsito IP a operadores Tier 1 y Tier 2, haz peering en puntos de intercambio, monta interconexiones privadas y cachés CDN integradas, y tiende fibra terrestre, ondas submarinas y tu propia fibra oscura con DWDM y ópticas ZR. Firma clientes empresariales, de hosting, de trading de alta frecuencia, de GPU para IA y de hiperescaladores, y mantenlos contentos mientras retroexcavadoras, tiburones, dedazos, fugas de rutas, ataques DDoS y la geopolítica lo rompen todo.",
|
"page.a_free_cartoon_browser_game_about":"Un juego de navegador de dibujos animados, gratuito, sobre cómo funciona internet. Empieza como una red diminuta en una ciudad, lanza banda ancha doméstica, compra tránsito IP a operadores Tier 1 y Tier 2, haz peering en puntos de intercambio, monta interconexiones privadas y cachés CDN integradas, y tiende fibra terrestre, ondas submarinas y tu propia fibra oscura con DWDM y ópticas ZR. Firma clientes empresariales, de hosting, de trading de alta frecuencia, de GPU para IA y de hiperescaladores, y mantenlos contentos mientras retroexcavadoras, tiburones, dedazos, fugas de rutas, ataques DDoS y la geopolítica lo rompen todo.",
|
||||||
"page.breaking_cve_2026_31337_in_php":"🐘 ÚLTIMA HORA: CVE-2026-31337 EN PHP TUMBA MEDIO INTERNET",
|
"page.breaking_cve_2026_31337_in_php":"🐘 ÚLTIMA HORA: CVE-2026-31337 EN PHP TUMBA MEDIO INTERNET",
|
||||||
|
|
@ -4155,6 +4180,8 @@
|
||||||
"specialist.a_b_km_km_ready_in":"{a} ⇄ {b} · {km} km · unos {ms} ms · lista en unos {n} días",
|
"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.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.ask_for_a_demo_unit_p_n":"Unidad demo: +{p}%, {n} días",
|
||||||
|
"specialist.cable_broker":"Bróker de cables",
|
||||||
|
"specialist.cable_broker_desc":"Tiende fibra en tierra y cables bajo el mar desde el primer día, ilumínalos y vende la capacidad a otros operadores. Objetivos propios; gana Barón del Vidrio: tus propios cables llegan a {n} continentes mientras los operadores te pagan {m} al mes. Todo lo demás se desbloquea por nivel, como siempre.",
|
||||||
"specialist.charter_signed_name":"Carta firmada: {name}.",
|
"specialist.charter_signed_name":"Carta firmada: {name}.",
|
||||||
"specialist.consortium_seat":"Plaza en el consorcio",
|
"specialist.consortium_seat":"Plaza en el consorcio",
|
||||||
"specialist.consortium_seat_name":"Plaza en el consorcio: {name}",
|
"specialist.consortium_seat_name":"Plaza en el consorcio: {name}",
|
||||||
|
|
@ -4162,12 +4189,9 @@
|
||||||
"specialist.dig_your_own_as_a_pioneer":"Excava la tuya como pionero (+{p}%) · {price} · {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.global_backbone":"Backbone global",
|
||||||
"specialist.includes_pops_at_the_landings_price":"Incluye POPs en los aterrizajes: {price}.",
|
"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.low_latency_boutique":"Boutique de baja latencia",
|
||||||
"specialist.n_fiber_pairs":{"one":"{n} par de fibra","other":"{n} pares de fibra"},
|
"specialist.n_fiber_pairs":{"one":"{n} par de fibra","other":"{n} pares de fibra"},
|
||||||
"specialist.part_owner_of_the_sea":"Copropietario del mar",
|
"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.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.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_broadband_in_a_one":"Vieron tu banda ancha en {a}, una de las grandes ciudades de usuarios.",
|
||||||
|
|
@ -4179,10 +4203,11 @@
|
||||||
"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_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.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.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.what_are_you_building":"¿Qué estás construyendo?",
|
||||||
"specialist.win_as_a_low_latency_boutique":"Gana como boutique de baja latencia",
|
"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.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.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_charter_sets_your_goals":"Tu carta fija tus objetivos y tu victoria. Eliges una vez, para toda la vida de esta red.",
|
||||||
"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_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!",
|
"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.as_when_you_started":"igual que cuando empezaste",
|
||||||
|
|
|
||||||
|
|
@ -350,6 +350,26 @@
|
||||||
"banks.your_ceo_plays_golf_with_our":"Ton PDG joue au golf avec notre PDG tous les jeudis.",
|
"banks.your_ceo_plays_golf_with_our":"Ton PDG joue au golf avec notre PDG tous les jeudis.",
|
||||||
"banks.your_rate_is_set_by_the":"Ton taux est fixé par les astres chaque mois. Mercure est souvent rétrograde.",
|
"banks.your_rate_is_set_by_the":"Ton taux est fixé par les astres chaque mois. Mercure est souvent rétrograde.",
|
||||||
"banks.your_rising_sign":"Ton ascendant",
|
"banks.your_rising_sign":"Ton ascendant",
|
||||||
|
"broker.a_carrier_calls":"<b>{name} veut de la capacité</b><br>{what} entre {a} et {b}. C’est dans tes offres.",
|
||||||
|
"broker.glass_baron":"Baron du Verre",
|
||||||
|
"broker.goal_10k":"10 000 km de verre à toi",
|
||||||
|
"broker.goal_10k_d":"La fibre que tu as creusée et les câbles que tu as posés, prêts et additionnés bout à bout.",
|
||||||
|
"broker.goal_10t":"Vends 10 Tbps",
|
||||||
|
"broker.goal_10t_d":"Les longueurs d’onde et la capacité sous-marine que les opérateurs te paient atteignent 10 Tbps.",
|
||||||
|
"broker.goal_16t":"1,6T sur deux sauts d’affilée",
|
||||||
|
"broker.goal_16t_d":"Allume deux de tes propres fibres ou câbles qui se rejoignent dans une ville à 1,6T ou plus chacun.",
|
||||||
|
"broker.goal_c4":"Des câbles sur quatre continents",
|
||||||
|
"broker.goal_c4_d":"Tes propres câbles sous-marins atterrissent sur quatre continents.",
|
||||||
|
"broker.goal_deal":"Livre un contrat de capacité",
|
||||||
|
"broker.goal_deal_d":"Signe un contrat à une conférence capacité, ou quand un opérateur appelle, et allume-le avant sa date.",
|
||||||
|
"broker.goal_df_d":"Loue ou creuse de la fibre noire et mets-y une optique. En courtier, tous les systèmes de ligne et toutes les optiques sont ouverts dès le premier jour.",
|
||||||
|
"broker.goal_pair":"Loue une paire de fibre noire",
|
||||||
|
"broker.goal_pair_d":"Creuse ta propre fibre, puis loue une paire libre à un opérateur ou à un hyperscaler.",
|
||||||
|
"broker.goal_sea":"Pose ton propre câble sous-marin",
|
||||||
|
"broker.goal_sea_d":"Choisis une route maritime dans la fenêtre fibre noire et envoie le navire. Chaque câble à toi compte pour Baron du Verre.",
|
||||||
|
"broker.goal_wave":"Vends une longueur d’onde sur ton verre",
|
||||||
|
"broker.goal_wave_d":"Les opérateurs louent des alien waves sur la fibre que tu as allumée. Accepte-en une dans tes offres.",
|
||||||
|
"broker.goal_win_d":"Tes propres câbles atterrissent sur cinq continents, et les opérateurs te paient 1 M$ par mois de capacité.",
|
||||||
"broker.how":"il vend selon la demande ; le courtier garde 10 %",
|
"broker.how":"il vend selon la demande ; le courtier garde 10 %",
|
||||||
"broker.lead":"Le courtier garde ton annonce et la vend au fil du temps, quand les opérateurs entre ces deux villes veulent de la capacité. Il garde 10 % de chaque vente.",
|
"broker.lead":"Le courtier garde ton annonce et la vend au fil du temps, quand les opérateurs entre ces deux villes veulent de la capacité. Il garde 10 % de chaque vente.",
|
||||||
"broker.list_all":"Proposer les {n}",
|
"broker.list_all":"Proposer les {n}",
|
||||||
|
|
@ -363,9 +383,14 @@
|
||||||
"broker.n_waves":{"one":"{n} longueur d’onde de plus","other":"{n} longueurs d’onde de plus"},
|
"broker.n_waves":{"one":"{n} longueur d’onde de plus","other":"{n} longueurs d’onde de plus"},
|
||||||
"broker.n_waves_left":{"one":"{n} longueur d’onde à vendre","other":"{n} longueurs d’onde à vendre"},
|
"broker.n_waves_left":{"one":"{n} longueur d’onde à vendre","other":"{n} longueurs d’onde à vendre"},
|
||||||
"broker.no_market":"Personne ne veut plus de capacité entre ces deux villes pour l’instant. Une annonce attend qu’ils en veuillent.",
|
"broker.no_market":"Personne ne veut plus de capacité entre ces deux villes pour l’instant. Une annonce attend qu’ils en veuillent.",
|
||||||
|
"broker.progress":"Tes propres câbles atterrissent sur {c} continents sur {n} · les opérateurs te paient {mo} sur {m} par mois.",
|
||||||
"broker.seat_regen_note":"Sur un câble de consortium, tes sites de régénération sont dans les stations d’atterrissement le long du trajet.",
|
"broker.seat_regen_note":"Sur un câble de consortium, tes sites de régénération sont dans les stations d’atterrissement le long du trajet.",
|
||||||
"broker.sold":"<b>Ton courtier a vendu de la capacité.</b><br>{name} loue {what} pour {price}/mois.",
|
"broker.sold":"<b>Ton courtier a vendu de la capacité.</b><br>{name} loue {what} pour {price}/mois.",
|
||||||
"broker.unlist":"Retirer du marché",
|
"broker.unlist":"Retirer du marché",
|
||||||
|
"broker.win_as_a_cable_broker":"Gagne en courtier en câbles.",
|
||||||
|
"broker.win_text":"{name} (AS{asn}) a posé ses propres câbles jusqu’à {n} continents et vend {mo} de capacité par mois à d’autres opérateurs, en {days} jours. Les océans sont ta tranchée maintenant.",
|
||||||
|
"broker.won_on_date":"Gagné le {date} : tes propres câbles traversent les océans, et les opérateurs te paient pour s’en servir.",
|
||||||
|
"broker.your_glass_gear_is_already_yours":"En courtier en câbles, toute la fibre, les systèmes de ligne, les optiques, les câbles sous-marins et les routeurs pour les allumer sont déjà à toi, quoi que dise le niveau.",
|
||||||
"businesses.a_free_pni_with_voda_phony":"Un PNI gratuit avec Voda-Phony. Matos : routeurs Absolute Unit 3.2T, ports 3.2T et longueurs d’onde 12.8T.",
|
"businesses.a_free_pni_with_voda_phony":"Un PNI gratuit avec Voda-Phony. Matos : routeurs Absolute Unit 3.2T, ports 3.2T et longueurs d’onde 12.8T.",
|
||||||
"businesses.agi_lab_allegedly":"Labo d’AGI (soi-disant)",
|
"businesses.agi_lab_allegedly":"Labo d’AGI (soi-disant)",
|
||||||
"businesses.agi_labs_allegedly_wanting_ai_wans":"Des labos d’AGI (soi-disant) qui veulent des WAN IA de 12,8 à 25,6 Tbps, et des PNI gratuits avec Du-opoly et Ooh-redoo. Matos : routeurs Mikrowtik CCR 3.2T.",
|
"businesses.agi_labs_allegedly_wanting_ai_wans":"Des labos d’AGI (soi-disant) qui veulent des WAN IA de 12,8 à 25,6 Tbps, et des PNI gratuits avec Du-opoly et Ooh-redoo. Matos : routeurs Mikrowtik CCR 3.2T.",
|
||||||
|
|
@ -3007,7 +3032,7 @@
|
||||||
"modal_and_names.the_real_thing_by_thomas_kj":"La version réelle, par Thomas Kjær Aabo : une carte interactive et zoomable du vrai trajet de tes paquets, du Wi-Fi à la fibre sous-marine, aujourd’hui, en 2010 et en 1995. Ce jeu invente au fur et à mesure. Celle-là, elle a tout bon.",
|
"modal_and_names.the_real_thing_by_thomas_kj":"La version réelle, par Thomas Kjær Aabo : une carte interactive et zoomable du vrai trajet de tes paquets, du Wi-Fi à la fibre sous-marine, aujourd’hui, en 2010 et en 1995. Ce jeu invente au fur et à mesure. Celle-là, elle a tout bon.",
|
||||||
"modal_and_names.the_real_thing_follow_a_packet":"La version réelle : suis un paquet du Wi-Fi à la fibre sous-marine.",
|
"modal_and_names.the_real_thing_follow_a_packet":"La version réelle : suis un paquet du Wi-Fi à la fibre sous-marine.",
|
||||||
"modals.lay_your_own_subsea_cable":"Pose ton propre câble sous-marin…",
|
"modals.lay_your_own_subsea_cable":"Pose ton propre câble sous-marin…",
|
||||||
"modals.your_own_subsea_cable_tier_1":"Ton propre câble sous-marin <small>Tier 1 uniquement</small>",
|
"modals.your_own_subsea_cable_level_n":"Ton propre câble sous-marin <small>niveau {n} ou Tier 1</small>",
|
||||||
"networks.a_mobile_network_named_after_the":"Un réseau mobile qui porte le nom du bruit d’un toast. Tchin-tchin à chaque antenne 5G.",
|
"networks.a_mobile_network_named_after_the":"Un réseau mobile qui porte le nom du bruit d’un toast. Tchin-tchin à chaque antenne 5G.",
|
||||||
"networks.a_spanish_carrier_starring_in_every":"Un opérateur espagnol en vedette sur chaque marché d’Amérique latine, au moins jusqu’à ce qu’il revende le suivant.",
|
"networks.a_spanish_carrier_starring_in_every":"Un opérateur espagnol en vedette sur chaque marché d’Amérique latine, au moins jusqu’à ce qu’il revende le suivant.",
|
||||||
"networks.a_tiny_telco_in_a_country":"Un tout petit opérateur dans un pays où les câbles du monde entier touchent terre. Tarifs à l’avenant.",
|
"networks.a_tiny_telco_in_a_country":"Un tout petit opérateur dans un pays où les câbles du monde entier touchent terre. Tarifs à l’avenant.",
|
||||||
|
|
@ -3297,7 +3322,6 @@
|
||||||
"own_cable.km_km_is_too_far_for":"{km} km, c’est trop loin pour tes optiques seules. Ajoute {what} pour allumer ce câble.",
|
"own_cable.km_km_is_too_far_for":"{km} km, c’est trop loin pour tes optiques seules. Ajoute {what} pour allumer ce câble.",
|
||||||
"own_cable.km_km_of_seabed":"{km} km de fond marin",
|
"own_cable.km_km_of_seabed":"{km} km de fond marin",
|
||||||
"own_cable.lay_the_cable_price":"Poser le câble <small>{price}</small>",
|
"own_cable.lay_the_cable_price":"Poser le câble <small>{price}</small>",
|
||||||
"own_cable.laying_your_own_subsea_cable_is":"Poser ton propre câble sous-marin, c’est un truc de Tier 1. Libère-toi d’abord du transit.",
|
|
||||||
"own_cable.n_days":"+{n} jours",
|
"own_cable.n_days":"+{n} jours",
|
||||||
"own_cable.n_in_the_cable_the_first":"{n} dans le câble, la première allumée",
|
"own_cable.n_in_the_cable_the_first":"{n} dans le câble, la première allumée",
|
||||||
"own_cable.no_navigable_sea_route_connects":"Aucun itinéraire maritime navigable ne relie ces stations d’atterrissement.",
|
"own_cable.no_navigable_sea_route_connects":"Aucun itinéraire maritime navigable ne relie ces stations d’atterrissement.",
|
||||||
|
|
@ -3310,6 +3334,7 @@
|
||||||
"own_cable.the_seabed_survey_found_an_old":"L’étude des fonds marins a trouvé une vieille mine. Un petit détour, très prudent.",
|
"own_cable.the_seabed_survey_found_an_old":"L’étude des fonds marins a trouvé une vieille mine. Un petit détour, très prudent.",
|
||||||
"own_cable.this_design_s_route_is_km":"Le tracé de cette conception fait {km} km : trop long pour toute optique, même avec les deux améliorations. Une conception plus courte peut y arriver.",
|
"own_cable.this_design_s_route_is_km":"Le tracé de cette conception fait {km} km : trop long pour toute optique, même avec les deux améliorations. Une conception plus courte peut y arriver.",
|
||||||
"own_cable.this_route_is_on_land_build":"Ce trajet est terrestre. Construis plutôt ta propre fibre.",
|
"own_cable.this_route_is_on_land_build":"Ce trajet est terrestre. Construis plutôt ta propre fibre.",
|
||||||
|
"own_cable.your_own_subsea_cable_needs_level":"Ton propre câble sous-marin demande le niveau clients {n}, ou Tier 1. Un courtier en câbles en pose dès le premier jour.",
|
||||||
"own_cable.your_very_own_subsea_cable_a":"Ton câble sous-marin rien qu’à toi. Un navire le pose sur le fond marin, tu possèdes chacune de ses paires de fibres, et les longueurs d’onde de personne d’autre ne partagent ton verre. Ça coûte une somme franchement indécente et ça prend longtemps.",
|
"own_cable.your_very_own_subsea_cable_a":"Ton câble sous-marin rien qu’à toi. Un navire le pose sur le fond marin, tu possèdes chacune de ses paires de fibres, et les longueurs d’onde de personne d’autre ne partagent ton verre. Ça coûte une somme franchement indécente et ça prend longtemps.",
|
||||||
"page.a_free_cartoon_browser_game_about":"Un jeu de navigateur gratuit et cartoon sur le fonctionnement d’Internet. Commence comme un minuscule réseau dans une seule ville, lance le haut débit grand public, achète du transit IP à des opérateurs Tier 1 et Tier 2, fais du peering sur des points d’échange, monte des interconnexions privées et des caches CDN embarqués, et pose de la fibre terrestre, des longueurs d’onde sous-marines et ta propre fibre noire avec du DWDM et des optiques ZR. Signe des clients entreprise, hébergement, trading haute fréquence, GPU pour l’IA et hyperscalers, et garde-les contents pendant que pelleteuses, requins, fat fingers, fuites de routes, attaques DDoS et géopolitique cassent tout.",
|
"page.a_free_cartoon_browser_game_about":"Un jeu de navigateur gratuit et cartoon sur le fonctionnement d’Internet. Commence comme un minuscule réseau dans une seule ville, lance le haut débit grand public, achète du transit IP à des opérateurs Tier 1 et Tier 2, fais du peering sur des points d’échange, monte des interconnexions privées et des caches CDN embarqués, et pose de la fibre terrestre, des longueurs d’onde sous-marines et ta propre fibre noire avec du DWDM et des optiques ZR. Signe des clients entreprise, hébergement, trading haute fréquence, GPU pour l’IA et hyperscalers, et garde-les contents pendant que pelleteuses, requins, fat fingers, fuites de routes, attaques DDoS et géopolitique cassent tout.",
|
||||||
"page.breaking_cve_2026_31337_in_php":"🐘 FLASH INFO : LA CVE-2026-31337 DE PHP MET LA MOITIÉ D’INTERNET À TERRE",
|
"page.breaking_cve_2026_31337_in_php":"🐘 FLASH INFO : LA CVE-2026-31337 DE PHP MET LA MOITIÉ D’INTERNET À TERRE",
|
||||||
|
|
@ -4155,6 +4180,8 @@
|
||||||
"specialist.a_b_km_km_ready_in":"{a} ⇄ {b} · {km} km · environ {ms} ms · prêt dans environ {n} jours",
|
"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.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.ask_for_a_demo_unit_p_n":"Unité de démo : +{p} %, {n} jours",
|
||||||
|
"specialist.cable_broker":"Courtier en câbles",
|
||||||
|
"specialist.cable_broker_desc":"Pose de la fibre sur terre et des câbles sous la mer dès le premier jour, allume-les et vends la capacité à d’autres opérateurs. Des objectifs à lui ; gagne Baron du Verre : tes propres câbles atterrissent sur {n} continents pendant que les opérateurs te paient {m} par mois. Tout le reste se débloque par niveau, comme toujours.",
|
||||||
"specialist.charter_signed_name":"Charte signée : {name}.",
|
"specialist.charter_signed_name":"Charte signée : {name}.",
|
||||||
"specialist.consortium_seat":"Place au consortium",
|
"specialist.consortium_seat":"Place au consortium",
|
||||||
"specialist.consortium_seat_name":"Place au consortium : {name}",
|
"specialist.consortium_seat_name":"Place au consortium : {name}",
|
||||||
|
|
@ -4162,12 +4189,9 @@
|
||||||
"specialist.dig_your_own_as_a_pioneer":"Creuse la tienne en pionnier (+{p} %) · {price} · {n} jours",
|
"specialist.dig_your_own_as_a_pioneer":"Creuse la tienne en pionnier (+{p} %) · {price} · {n} jours",
|
||||||
"specialist.global_backbone":"Backbone mondial",
|
"specialist.global_backbone":"Backbone mondial",
|
||||||
"specialist.includes_pops_at_the_landings_price":"POPs aux atterrissements compris : {price}.",
|
"specialist.includes_pops_at_the_landings_price":"POPs aux atterrissements compris : {price}.",
|
||||||
"specialist.keep_it":"Garder",
|
|
||||||
"specialist.low_latency_boutique":"Boutique basse latence",
|
"specialist.low_latency_boutique":"Boutique basse latence",
|
||||||
"specialist.n_fiber_pairs":{"one":"{n} paire de fibre","other":"{n} paires de fibre"},
|
"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.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.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.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_broadband_in_a_one":"Ils ont repéré ton haut débit à {a}, une des grandes villes d'abonnés.",
|
||||||
|
|
@ -4179,10 +4203,11 @@
|
||||||
"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_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.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.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.what_are_you_building":"Que construis-tu ?",
|
||||||
"specialist.win_as_a_low_latency_boutique":"Gagne en boutique basse latence",
|
"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.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.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_charter_sets_your_goals":"Ta charte fixe tes objectifs et ta victoire. Tu choisis une fois, pour toute la vie de ce réseau.",
|
||||||
"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_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é !",
|
"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.as_when_you_started":"comme à vos débuts",
|
||||||
|
|
|
||||||
|
|
@ -350,6 +350,26 @@
|
||||||
"banks.your_ceo_plays_golf_with_our":"Il tuo CEO gioca a golf con il nostro CEO ogni giovedì.",
|
"banks.your_ceo_plays_golf_with_our":"Il tuo CEO gioca a golf con il nostro CEO ogni giovedì.",
|
||||||
"banks.your_rate_is_set_by_the":"Il tuo tasso lo decidono le stelle ogni mese. Mercurio è retrogrado spesso.",
|
"banks.your_rate_is_set_by_the":"Il tuo tasso lo decidono le stelle ogni mese. Mercurio è retrogrado spesso.",
|
||||||
"banks.your_rising_sign":"Il tuo ascendente",
|
"banks.your_rising_sign":"Il tuo ascendente",
|
||||||
|
"broker.a_carrier_calls":"<b>{name} vuole capacità</b><br>{what} tra {a} e {b}. È tra le tue offerte.",
|
||||||
|
"broker.glass_baron":"Barone del Vetro",
|
||||||
|
"broker.goal_10k":"10.000 km di vetro tuo",
|
||||||
|
"broker.goal_10k_d":"La fibra che hai scavato e i cavi che hai posato, pronti e sommati da un capo all’altro.",
|
||||||
|
"broker.goal_10t":"Vendi 10 Tbps",
|
||||||
|
"broker.goal_10t_d":"Le wave e la capacità sottomarina che gli operatori ti pagano arrivano a 10 Tbps.",
|
||||||
|
"broker.goal_16t":"1,6T su due tratte di fila",
|
||||||
|
"broker.goal_16t_d":"Accendi due tue fibre o cavi che si incontrano in una città con 1,6T o più ciascuno.",
|
||||||
|
"broker.goal_c4":"Cavi su quattro continenti",
|
||||||
|
"broker.goal_c4_d":"I tuoi cavi sottomarini approdano su quattro continenti.",
|
||||||
|
"broker.goal_deal":"Consegna un accordo di capacità",
|
||||||
|
"broker.goal_deal_d":"Firma un accordo a una conferenza sulla capacità, o quando chiama un operatore, e accendilo prima della scadenza.",
|
||||||
|
"broker.goal_df_d":"Affitta o scava dark fiber e mettici un’ottica. Da broker, ogni sistema di linea e ogni ottica sono aperti dal primo giorno.",
|
||||||
|
"broker.goal_pair":"Affitta una coppia di dark fiber",
|
||||||
|
"broker.goal_pair_d":"Scava la tua fibra, poi affitta una coppia libera a un operatore o a un hyperscaler.",
|
||||||
|
"broker.goal_sea":"Posa il tuo cavo sottomarino",
|
||||||
|
"broker.goal_sea_d":"Scegli una rotta marina nella finestra dark fiber e manda la nave. Ogni cavo tuo conta per Barone del Vetro.",
|
||||||
|
"broker.goal_wave":"Vendi una wave sul tuo vetro",
|
||||||
|
"broker.goal_wave_d":"Gli operatori affittano alien wave sulla fibra che hai acceso. Accettane una dalle tue offerte.",
|
||||||
|
"broker.goal_win_d":"I tuoi cavi approdano su cinque continenti e gli operatori ti pagano 1 M$ al mese di capacità.",
|
||||||
"broker.how":"vende quando il mercato lo chiede; il broker tiene il 10%",
|
"broker.how":"vende quando il mercato lo chiede; il broker tiene il 10%",
|
||||||
"broker.lead":"Il broker tiene la tua offerta e la vende nel tempo, quando gli operatori tra queste due città vogliono capacità. Tiene il 10% di ogni vendita.",
|
"broker.lead":"Il broker tiene la tua offerta e la vende nel tempo, quando gli operatori tra queste due città vogliono capacità. Tiene il 10% di ogni vendita.",
|
||||||
"broker.list_all":"Offri tutte le {n}",
|
"broker.list_all":"Offri tutte le {n}",
|
||||||
|
|
@ -363,9 +383,14 @@
|
||||||
"broker.n_waves":{"one":"altre {n} onda","other":"altre {n} onde"},
|
"broker.n_waves":{"one":"altre {n} onda","other":"altre {n} onde"},
|
||||||
"broker.n_waves_left":{"one":"{n} onda ancora da vendere","other":"{n} onde ancora da vendere"},
|
"broker.n_waves_left":{"one":"{n} onda ancora da vendere","other":"{n} onde ancora da vendere"},
|
||||||
"broker.no_market":"Al momento nessuno vuole altra capacità tra queste due città. Un'offerta aspetta finché la vorranno.",
|
"broker.no_market":"Al momento nessuno vuole altra capacità tra queste due città. Un'offerta aspetta finché la vorranno.",
|
||||||
|
"broker.progress":"I tuoi cavi approdano su {c} di {n} continenti · gli operatori ti pagano {mo} di {m} al mese.",
|
||||||
"broker.seat_regen_note":"Su un cavo di consorzio, i tuoi siti di rigenerazione stanno nelle stazioni di approdo lungo il percorso.",
|
"broker.seat_regen_note":"Su un cavo di consorzio, i tuoi siti di rigenerazione stanno nelle stazioni di approdo lungo il percorso.",
|
||||||
"broker.sold":"<b>Il tuo broker ha venduto capacità.</b><br>{name} affitta {what} per {price}/mese.",
|
"broker.sold":"<b>Il tuo broker ha venduto capacità.</b><br>{name} affitta {what} per {price}/mese.",
|
||||||
"broker.unlist":"Togli dal mercato",
|
"broker.unlist":"Togli dal mercato",
|
||||||
|
"broker.win_as_a_cable_broker":"Vinci come broker di cavi.",
|
||||||
|
"broker.win_text":"{name} (AS{asn}) ha posato i propri cavi fino a {n} continenti e vende {mo} al mese di capacità ad altri operatori, in {days} giorni. Gli oceani ora sono la tua trincea.",
|
||||||
|
"broker.won_on_date":"Vinto il {date}: i tuoi cavi attraversano gli oceani e gli operatori ti pagano per usarli.",
|
||||||
|
"broker.your_glass_gear_is_already_yours":"Da broker di cavi, ogni fibra, sistema di linea, ottica, cavo sottomarino e i router per accenderli sono già tuoi, qualunque cosa dica il livello.",
|
||||||
"businesses.a_free_pni_with_voda_phony":"Un PNI gratuito con Voda-Phony. Gear: router Absolute Unit 3.2T, porte 3.2T e wave 12.8T.",
|
"businesses.a_free_pni_with_voda_phony":"Un PNI gratuito con Voda-Phony. Gear: router Absolute Unit 3.2T, porte 3.2T e wave 12.8T.",
|
||||||
"businesses.agi_lab_allegedly":"Laboratorio AGI (a sentir loro)",
|
"businesses.agi_lab_allegedly":"Laboratorio AGI (a sentir loro)",
|
||||||
"businesses.agi_labs_allegedly_wanting_ai_wans":"Laboratori AGI (a sentir loro) che vogliono AI WAN da 12.8 a 25.6 Tbps, e PNI gratuiti con Du-opoly e Ooh-redoo. Gear: router Mikrowtik CCR 3.2T.",
|
"businesses.agi_labs_allegedly_wanting_ai_wans":"Laboratori AGI (a sentir loro) che vogliono AI WAN da 12.8 a 25.6 Tbps, e PNI gratuiti con Du-opoly e Ooh-redoo. Gear: router Mikrowtik CCR 3.2T.",
|
||||||
|
|
@ -3007,7 +3032,7 @@
|
||||||
"modal_and_names.the_real_thing_by_thomas_kj":"La versione vera, di Thomas Kjær Aabo: una mappa interattiva e zoomabile di come viaggiano davvero i tuoi pacchetti, dal Wi-Fi alla fibra sottomarina, oggi, nel 2010 e nel 1995 (in inglese, danese e tedesco). Questo gioco se lo inventa strada facendo. Quello ci azzecca.",
|
"modal_and_names.the_real_thing_by_thomas_kj":"La versione vera, di Thomas Kjær Aabo: una mappa interattiva e zoomabile di come viaggiano davvero i tuoi pacchetti, dal Wi-Fi alla fibra sottomarina, oggi, nel 2010 e nel 1995 (in inglese, danese e tedesco). Questo gioco se lo inventa strada facendo. Quello ci azzecca.",
|
||||||
"modal_and_names.the_real_thing_follow_a_packet":"La versione vera: segui un pacchetto dal Wi-Fi alla fibra sottomarina.",
|
"modal_and_names.the_real_thing_follow_a_packet":"La versione vera: segui un pacchetto dal Wi-Fi alla fibra sottomarina.",
|
||||||
"modals.lay_your_own_subsea_cable":"Posa il tuo cavo sottomarino…",
|
"modals.lay_your_own_subsea_cable":"Posa il tuo cavo sottomarino…",
|
||||||
"modals.your_own_subsea_cable_tier_1":"Il tuo cavo sottomarino <small>solo Tier 1</small>",
|
"modals.your_own_subsea_cable_level_n":"Il tuo cavo sottomarino <small>livello {n} o Tier 1</small>",
|
||||||
"networks.a_mobile_network_named_after_the":"Una rete mobile che porta il nome del suono di un brindisi. Cin cin a ogni antenna 5G.",
|
"networks.a_mobile_network_named_after_the":"Una rete mobile che porta il nome del suono di un brindisi. Cin cin a ogni antenna 5G.",
|
||||||
"networks.a_spanish_carrier_starring_in_every":"Un carrier spagnolo protagonista in ogni mercato latinoamericano, almeno finché non vende il prossimo.",
|
"networks.a_spanish_carrier_starring_in_every":"Un carrier spagnolo protagonista in ogni mercato latinoamericano, almeno finché non vende il prossimo.",
|
||||||
"networks.a_tiny_telco_in_a_country":"Una piccola telco in un paese dove approdano i cavi di mezzo mondo. Prezzi in proporzione.",
|
"networks.a_tiny_telco_in_a_country":"Una piccola telco in un paese dove approdano i cavi di mezzo mondo. Prezzi in proporzione.",
|
||||||
|
|
@ -3297,7 +3322,6 @@
|
||||||
"own_cable.km_km_is_too_far_for":"{km} km sono troppi per le tue ottiche da sole. Aggiungi {what} per accendere questo cavo.",
|
"own_cable.km_km_is_too_far_for":"{km} km sono troppi per le tue ottiche da sole. Aggiungi {what} per accendere questo cavo.",
|
||||||
"own_cable.km_km_of_seabed":"{km} km di fondale",
|
"own_cable.km_km_of_seabed":"{km} km di fondale",
|
||||||
"own_cable.lay_the_cable_price":"Posa il cavo <small>{price}</small>",
|
"own_cable.lay_the_cable_price":"Posa il cavo <small>{price}</small>",
|
||||||
"own_cable.laying_your_own_subsea_cable_is":"Posare un proprio cavo sottomarino è roba da Tier 1. Prima liberati dal transit.",
|
|
||||||
"own_cable.n_days":"+{n} giorni",
|
"own_cable.n_days":"+{n} giorni",
|
||||||
"own_cable.n_in_the_cable_the_first":"{n} nel cavo, la prima accesa",
|
"own_cable.n_in_the_cable_the_first":"{n} nel cavo, la prima accesa",
|
||||||
"own_cable.no_navigable_sea_route_connects":"Nessuna rotta marittima navigabile collega queste stazioni di approdo.",
|
"own_cable.no_navigable_sea_route_connects":"Nessuna rotta marittima navigabile collega queste stazioni di approdo.",
|
||||||
|
|
@ -3310,6 +3334,7 @@
|
||||||
"own_cable.the_seabed_survey_found_an_old":"Il rilievo del fondale ha trovato una vecchia mina. Una piccola, attentissima deviazione.",
|
"own_cable.the_seabed_survey_found_an_old":"Il rilievo del fondale ha trovato una vecchia mina. Una piccola, attentissima deviazione.",
|
||||||
"own_cable.this_design_s_route_is_km":"Il percorso di questo progetto è di {km} km: troppo lungo per qualsiasi ottica, anche con entrambi i miglioramenti. Un progetto più corto ce la fa.",
|
"own_cable.this_design_s_route_is_km":"Il percorso di questo progetto è di {km} km: troppo lungo per qualsiasi ottica, anche con entrambi i miglioramenti. Un progetto più corto ce la fa.",
|
||||||
"own_cable.this_route_is_on_land_build":"Questo percorso è via terra. Costruisci la tua fibra invece.",
|
"own_cable.this_route_is_on_land_build":"Questo percorso è via terra. Costruisci la tua fibra invece.",
|
||||||
|
"own_cable.your_own_subsea_cable_needs_level":"Il tuo cavo sottomarino richiede il livello clienti {n} o Tier 1. Un broker di cavi li posa dal primo giorno.",
|
||||||
"own_cable.your_very_own_subsea_cable_a":"Il tuo cavo sottomarino personale. Una nave lo posa sul fondale, possiedi ogni coppia di fibre e le onde di nessun altro dividono il tuo vetro. Costa una cifra francamente maleducata e ci vuole parecchio.",
|
"own_cable.your_very_own_subsea_cable_a":"Il tuo cavo sottomarino personale. Una nave lo posa sul fondale, possiedi ogni coppia di fibre e le onde di nessun altro dividono il tuo vetro. Costa una cifra francamente maleducata e ci vuole parecchio.",
|
||||||
"page.a_free_cartoon_browser_game_about":"Un gioco gratuito per browser, in stile cartoon, su come funziona internet. Parti come una minuscola rete in una sola città, lancia la banda larga domestica, compra IP transit da carrier Tier 1 e Tier 2, fai peering agli internet exchange, attiva interconnessioni private e cache CDN embedded, e posa fibra terrestre, wave sottomarine e la tua dark fiber con DWDM e ottiche ZR. Firma clienti aziendali, hosting, trading ad alta frequenza, GPU per l’IA e hyperscaler, e tienili contenti mentre ruspe, squali, dita grosse, route leak, attacchi DDoS e geopolitica rompono tutto.",
|
"page.a_free_cartoon_browser_game_about":"Un gioco gratuito per browser, in stile cartoon, su come funziona internet. Parti come una minuscola rete in una sola città, lancia la banda larga domestica, compra IP transit da carrier Tier 1 e Tier 2, fai peering agli internet exchange, attiva interconnessioni private e cache CDN embedded, e posa fibra terrestre, wave sottomarine e la tua dark fiber con DWDM e ottiche ZR. Firma clienti aziendali, hosting, trading ad alta frequenza, GPU per l’IA e hyperscaler, e tienili contenti mentre ruspe, squali, dita grosse, route leak, attacchi DDoS e geopolitica rompono tutto.",
|
||||||
"page.breaking_cve_2026_31337_in_php":"🐘 ULTIM’ORA: LA CVE-2026-31337 DI PHP BUTTA GIÙ MEZZA INTERNET",
|
"page.breaking_cve_2026_31337_in_php":"🐘 ULTIM’ORA: LA CVE-2026-31337 DI PHP BUTTA GIÙ MEZZA INTERNET",
|
||||||
|
|
@ -4155,6 +4180,8 @@
|
||||||
"specialist.a_b_km_km_ready_in":"{a} ⇄ {b} · {km} km · circa {ms} ms · pronto tra circa {n} giorni",
|
"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.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.ask_for_a_demo_unit_p_n":"Unità demo: +{p}%, {n} giorni",
|
||||||
|
"specialist.cable_broker":"Broker di cavi",
|
||||||
|
"specialist.cable_broker_desc":"Posa fibra a terra e cavi sotto il mare dal primo giorno, accendili e vendi la capacità ad altri operatori. Obiettivi propri; vinci Barone del Vetro: i tuoi cavi approdano su {n} continenti mentre gli operatori ti pagano {m} al mese. Tutto il resto si sblocca con il livello, come sempre.",
|
||||||
"specialist.charter_signed_name":"Statuto firmato: {name}.",
|
"specialist.charter_signed_name":"Statuto firmato: {name}.",
|
||||||
"specialist.consortium_seat":"Posto nel consorzio",
|
"specialist.consortium_seat":"Posto nel consorzio",
|
||||||
"specialist.consortium_seat_name":"Posto nel consorzio: {name}",
|
"specialist.consortium_seat_name":"Posto nel consorzio: {name}",
|
||||||
|
|
@ -4162,12 +4189,9 @@
|
||||||
"specialist.dig_your_own_as_a_pioneer":"Scava la tua da pioniere (+{p}%) · {price} · {n} giorni",
|
"specialist.dig_your_own_as_a_pioneer":"Scava la tua da pioniere (+{p}%) · {price} · {n} giorni",
|
||||||
"specialist.global_backbone":"Backbone globale",
|
"specialist.global_backbone":"Backbone globale",
|
||||||
"specialist.includes_pops_at_the_landings_price":"POP agli approdi inclusi: {price}.",
|
"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.low_latency_boutique":"Boutique a bassa latenza",
|
||||||
"specialist.n_fiber_pairs":{"one":"{n} coppia di fibra","other":"{n} coppie di fibra"},
|
"specialist.n_fiber_pairs":{"one":"{n} coppia di fibra","other":"{n} coppie di fibra"},
|
||||||
"specialist.part_owner_of_the_sea":"Comproprietario del mare",
|
"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.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.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_broadband_in_a_one":"Hanno notato la tua banda larga a {a}, una delle grandi città di utenti.",
|
||||||
|
|
@ -4179,10 +4203,11 @@
|
||||||
"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_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.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.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.what_are_you_building":"Che cosa stai costruendo?",
|
||||||
"specialist.win_as_a_low_latency_boutique":"Vinci come boutique a bassa latenza",
|
"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.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.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_charter_sets_your_goals":"Il tuo statuto fissa i tuoi obiettivi e la tua vittoria. Scegli una volta, per tutta la vita di questa rete.",
|
||||||
"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_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!",
|
"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.as_when_you_started":"come quando hai iniziato",
|
||||||
|
|
|
||||||
|
|
@ -350,6 +350,26 @@
|
||||||
"banks.your_ceo_plays_golf_with_our":"Seu CEO joga golfe com o nosso CEO toda quinta.",
|
"banks.your_ceo_plays_golf_with_our":"Seu CEO joga golfe com o nosso CEO toda quinta.",
|
||||||
"banks.your_rate_is_set_by_the":"Sua taxa é definida pelos astros todo mês. Mercúrio fica retrógrado com frequência.",
|
"banks.your_rate_is_set_by_the":"Sua taxa é definida pelos astros todo mês. Mercúrio fica retrógrado com frequência.",
|
||||||
"banks.your_rising_sign":"Seu ascendente",
|
"banks.your_rising_sign":"Seu ascendente",
|
||||||
|
"broker.a_carrier_calls":"<b>{name} quer capacidade</b><br>{what} entre {a} e {b}. Está nas suas ofertas.",
|
||||||
|
"broker.glass_baron":"Barão do Vidro",
|
||||||
|
"broker.goal_10k":"10.000 km de vidro próprio",
|
||||||
|
"broker.goal_10k_d":"A fibra que você cavou e os cabos que lançou, prontos e somados de ponta a ponta.",
|
||||||
|
"broker.goal_10t":"Venda 10 Tbps",
|
||||||
|
"broker.goal_10t_d":"As waves e a capacidade submarina que as operadoras pagam somam 10 Tbps.",
|
||||||
|
"broker.goal_16t":"1,6T em dois saltos seguidos",
|
||||||
|
"broker.goal_16t_d":"Acenda duas fibras ou cabos seus que se encontram numa cidade com 1,6T ou mais cada.",
|
||||||
|
"broker.goal_c4":"Cabos em quatro continentes",
|
||||||
|
"broker.goal_c4_d":"Seus próprios cabos submarinos chegam a quatro continentes.",
|
||||||
|
"broker.goal_deal":"Entregue um acordo de capacidade",
|
||||||
|
"broker.goal_deal_d":"Assine um acordo numa conferência de capacidade, ou quando uma operadora ligar, e acenda-o antes do prazo.",
|
||||||
|
"broker.goal_df_d":"Alugue ou cave dark fiber e coloque um óptico nela. Como corretor, todo sistema de linha e todo óptico estão abertos desde o primeiro dia.",
|
||||||
|
"broker.goal_pair":"Alugue um par de dark fiber",
|
||||||
|
"broker.goal_pair_d":"Cave sua própria fibra e alugue um par livre a uma operadora ou a um hyperscaler.",
|
||||||
|
"broker.goal_sea":"Lance seu próprio cabo submarino",
|
||||||
|
"broker.goal_sea_d":"Escolha uma rota marítima na janela de dark fiber e mande o navio. Cada cabo seu conta para Barão do Vidro.",
|
||||||
|
"broker.goal_wave":"Venda uma wave no seu vidro",
|
||||||
|
"broker.goal_wave_d":"Operadoras alugam alien waves na fibra que você acendeu. Aceite uma das suas ofertas.",
|
||||||
|
"broker.goal_win_d":"Seus próprios cabos chegam a cinco continentes e as operadoras pagam US$ 1 mi por mês de capacidade.",
|
||||||
"broker.how":"vende conforme a demanda; o corretor fica com 10%",
|
"broker.how":"vende conforme a demanda; o corretor fica com 10%",
|
||||||
"broker.lead":"O corretor mantém seu anúncio e vende aos poucos, quando operadoras entre estas duas cidades querem capacidade. Ele fica com 10% de cada venda.",
|
"broker.lead":"O corretor mantém seu anúncio e vende aos poucos, quando operadoras entre estas duas cidades querem capacidade. Ele fica com 10% de cada venda.",
|
||||||
"broker.list_all":"Anunciar todas as {n}",
|
"broker.list_all":"Anunciar todas as {n}",
|
||||||
|
|
@ -363,9 +383,14 @@
|
||||||
"broker.n_waves":{"one":"mais {n} onda","other":"mais {n} ondas"},
|
"broker.n_waves":{"one":"mais {n} onda","other":"mais {n} ondas"},
|
||||||
"broker.n_waves_left":{"one":"{n} onda ainda à venda","other":"{n} ondas ainda à venda"},
|
"broker.n_waves_left":{"one":"{n} onda ainda à venda","other":"{n} ondas ainda à venda"},
|
||||||
"broker.no_market":"No momento ninguém quer mais capacidade entre estas duas cidades. O anúncio espera até que queiram.",
|
"broker.no_market":"No momento ninguém quer mais capacidade entre estas duas cidades. O anúncio espera até que queiram.",
|
||||||
|
"broker.progress":"Seus próprios cabos chegam a {c} de {n} continentes · as operadoras pagam {mo} de {m} por mês.",
|
||||||
"broker.seat_regen_note":"Num cabo de consórcio, seus sites de regeneração ficam nas estações de aterragem pelo caminho.",
|
"broker.seat_regen_note":"Num cabo de consórcio, seus sites de regeneração ficam nas estações de aterragem pelo caminho.",
|
||||||
"broker.sold":"<b>Seu corretor vendeu capacidade.</b><br>{name} aluga {what} por {price}/mês.",
|
"broker.sold":"<b>Seu corretor vendeu capacidade.</b><br>{name} aluga {what} por {price}/mês.",
|
||||||
"broker.unlist":"Tirar do mercado",
|
"broker.unlist":"Tirar do mercado",
|
||||||
|
"broker.win_as_a_cable_broker":"Vença como corretor de cabos.",
|
||||||
|
"broker.win_text":"{name} (AS{asn}) lançou os próprios cabos até {n} continentes e vende {mo} por mês de capacidade a outras operadoras, em {days} dias. Os oceanos agora são a sua vala.",
|
||||||
|
"broker.won_on_date":"Vencido em {date}: seus próprios cabos cruzam os oceanos e as operadoras pagam para usá-los.",
|
||||||
|
"broker.your_glass_gear_is_already_yours":"Como corretor de cabos, toda fibra, sistema de linha, óptico, cabo submarino e os roteadores para acendê-los já são seus, diga o nível o que disser.",
|
||||||
"businesses.a_free_pni_with_voda_phony":"Um PNI grátis com a Voda-Phony. Gear: routers Absolute Unit 3.2T, portas 3.2T e waves de 12.8T.",
|
"businesses.a_free_pni_with_voda_phony":"Um PNI grátis com a Voda-Phony. Gear: routers Absolute Unit 3.2T, portas 3.2T e waves de 12.8T.",
|
||||||
"businesses.agi_lab_allegedly":"Laboratório de AGI (supostamente)",
|
"businesses.agi_lab_allegedly":"Laboratório de AGI (supostamente)",
|
||||||
"businesses.agi_labs_allegedly_wanting_ai_wans":"Laboratórios de AGI (supostamente) querendo AI WANs de 12.8 a 25.6 Tbps, e PNIs grátis com a Du-opoly e a Ooh-redoo. Gear: routers Mikrowtik CCR 3.2T.",
|
"businesses.agi_labs_allegedly_wanting_ai_wans":"Laboratórios de AGI (supostamente) querendo AI WANs de 12.8 a 25.6 Tbps, e PNIs grátis com a Du-opoly e a Ooh-redoo. Gear: routers Mikrowtik CCR 3.2T.",
|
||||||
|
|
@ -3007,7 +3032,7 @@
|
||||||
"modal_and_names.the_real_thing_by_thomas_kj":"A coisa de verdade, por Thomas Kjær Aabo: um mapa interativo com zoom de como seus pacotes viajam de fato, do Wi-Fi à fibra submarina, hoje, em 2010 e em 1995. Este jogo inventa tudo pelo caminho. Aquele acerta.",
|
"modal_and_names.the_real_thing_by_thomas_kj":"A coisa de verdade, por Thomas Kjær Aabo: um mapa interativo com zoom de como seus pacotes viajam de fato, do Wi-Fi à fibra submarina, hoje, em 2010 e em 1995. Este jogo inventa tudo pelo caminho. Aquele acerta.",
|
||||||
"modal_and_names.the_real_thing_follow_a_packet":"A coisa de verdade: siga um pacote do Wi-Fi até a fibra submarina.",
|
"modal_and_names.the_real_thing_follow_a_packet":"A coisa de verdade: siga um pacote do Wi-Fi até a fibra submarina.",
|
||||||
"modals.lay_your_own_subsea_cable":"Lançar seu próprio cabo submarino…",
|
"modals.lay_your_own_subsea_cable":"Lançar seu próprio cabo submarino…",
|
||||||
"modals.your_own_subsea_cable_tier_1":"Seu próprio cabo submarino <small>só Tier 1</small>",
|
"modals.your_own_subsea_cable_level_n":"Seu próprio cabo submarino <small>nível {n} ou Tier 1</small>",
|
||||||
"networks.a_mobile_network_named_after_the":"Uma rede móvel com nome de brinde. Tim-tim para cada torre 5G.",
|
"networks.a_mobile_network_named_after_the":"Uma rede móvel com nome de brinde. Tim-tim para cada torre 5G.",
|
||||||
"networks.a_spanish_carrier_starring_in_every":"Uma operadora espanhola estrelando em todo mercado latino-americano, pelo menos até vender o próximo.",
|
"networks.a_spanish_carrier_starring_in_every":"Uma operadora espanhola estrelando em todo mercado latino-americano, pelo menos até vender o próximo.",
|
||||||
"networks.a_tiny_telco_in_a_country":"Uma operadora minúscula num país onde os cabos do mundo chegam à terra. Os preços acompanham.",
|
"networks.a_tiny_telco_in_a_country":"Uma operadora minúscula num país onde os cabos do mundo chegam à terra. Os preços acompanham.",
|
||||||
|
|
@ -3297,7 +3322,6 @@
|
||||||
"own_cable.km_km_is_too_far_for":"{km} km é longe demais para as suas ópticas sozinhas. Adicione {what} para acender este cabo.",
|
"own_cable.km_km_is_too_far_for":"{km} km é longe demais para as suas ópticas sozinhas. Adicione {what} para acender este cabo.",
|
||||||
"own_cable.km_km_of_seabed":"{km} km de leito marinho",
|
"own_cable.km_km_of_seabed":"{km} km de leito marinho",
|
||||||
"own_cable.lay_the_cable_price":"Lançar o cabo <small>{price}</small>",
|
"own_cable.lay_the_cable_price":"Lançar o cabo <small>{price}</small>",
|
||||||
"own_cable.laying_your_own_subsea_cable_is":"Lançar seu próprio cabo submarino é coisa de Tier 1. Primeiro fique livre de transit.",
|
|
||||||
"own_cable.n_days":"+{n} dias",
|
"own_cable.n_days":"+{n} dias",
|
||||||
"own_cable.n_in_the_cable_the_first":"{n} no cabo, o primeiro aceso",
|
"own_cable.n_in_the_cable_the_first":"{n} no cabo, o primeiro aceso",
|
||||||
"own_cable.no_navigable_sea_route_connects":"Nenhuma rota marítima navegável conecta estas estações de aterragem.",
|
"own_cable.no_navigable_sea_route_connects":"Nenhuma rota marítima navegável conecta estas estações de aterragem.",
|
||||||
|
|
@ -3310,6 +3334,7 @@
|
||||||
"own_cable.the_seabed_survey_found_an_old":"O levantamento do leito marinho achou uma mina antiga. Um desvio pequeno e muito cuidadoso.",
|
"own_cable.the_seabed_survey_found_an_old":"O levantamento do leito marinho achou uma mina antiga. Um desvio pequeno e muito cuidadoso.",
|
||||||
"own_cable.this_design_s_route_is_km":"A rota deste projeto tem {km} km: longa demais para qualquer óptica, mesmo com as duas melhorias. Um projeto mais curto consegue.",
|
"own_cable.this_design_s_route_is_km":"A rota deste projeto tem {km} km: longa demais para qualquer óptica, mesmo com as duas melhorias. Um projeto mais curto consegue.",
|
||||||
"own_cable.this_route_is_on_land_build":"Esta rota é por terra. Construa sua própria fibra.",
|
"own_cable.this_route_is_on_land_build":"Esta rota é por terra. Construa sua própria fibra.",
|
||||||
|
"own_cable.your_own_subsea_cable_needs_level":"Seu próprio cabo submarino exige nível de clientes {n} ou Tier 1. Um corretor de cabos os lança desde o primeiro dia.",
|
||||||
"own_cable.your_very_own_subsea_cable_a":"Seu cabo submarino só seu. Um navio o lança no leito do mar, você é dono de cada par de fibras e as waves de mais ninguém dividem o seu vidro. Custa uma grana francamente ofensiva e demora bastante.",
|
"own_cable.your_very_own_subsea_cable_a":"Seu cabo submarino só seu. Um navio o lança no leito do mar, você é dono de cada par de fibras e as waves de mais ninguém dividem o seu vidro. Custa uma grana francamente ofensiva e demora bastante.",
|
||||||
"page.a_free_cartoon_browser_game_about":"Um jogo de navegador gratuito, em desenho animado, sobre como a internet funciona. Comece como uma redezinha numa cidade, lance banda larga residencial, compre IP transit de operadoras Tier 1 e Tier 2, faça peering em pontos de troca de tráfego, monte interconexões privadas e caches de CDN embarcados, e lance fibra terrestre, waves submarinas e sua própria dark fiber com DWDM e óptica ZR. Feche contratos com clientes corporativos, de hospedagem, de trading de alta frequência, de GPU para IA e hyperscalers, e mantenha todos felizes enquanto retroescavadeiras, tubarões, dedos gordos, route leaks, ataques DDoS e a geopolítica quebram tudo.",
|
"page.a_free_cartoon_browser_game_about":"Um jogo de navegador gratuito, em desenho animado, sobre como a internet funciona. Comece como uma redezinha numa cidade, lance banda larga residencial, compre IP transit de operadoras Tier 1 e Tier 2, faça peering em pontos de troca de tráfego, monte interconexões privadas e caches de CDN embarcados, e lance fibra terrestre, waves submarinas e sua própria dark fiber com DWDM e óptica ZR. Feche contratos com clientes corporativos, de hospedagem, de trading de alta frequência, de GPU para IA e hyperscalers, e mantenha todos felizes enquanto retroescavadeiras, tubarões, dedos gordos, route leaks, ataques DDoS e a geopolítica quebram tudo.",
|
||||||
"page.breaking_cve_2026_31337_in_php":"🐘 URGENTE: CVE-2026-31337 NO PHP DERRUBA METADE DA INTERNET",
|
"page.breaking_cve_2026_31337_in_php":"🐘 URGENTE: CVE-2026-31337 NO PHP DERRUBA METADE DA INTERNET",
|
||||||
|
|
@ -4155,6 +4180,8 @@
|
||||||
"specialist.a_b_km_km_ready_in":"{a} ⇄ {b} · {km} km · cerca de {ms} ms · pronto em cerca de {n} dias",
|
"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.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.ask_for_a_demo_unit_p_n":"Unidade demo: +{p}%, {n} dias",
|
||||||
|
"specialist.cable_broker":"Corretor de cabos",
|
||||||
|
"specialist.cable_broker_desc":"Lance fibra em terra e cabos sob o mar desde o primeiro dia, acenda-os e venda a capacidade a outras operadoras. Metas próprias; vença como Barão do Vidro: seus próprios cabos chegam a {n} continentes enquanto as operadoras pagam {m} por mês. Todo o resto desbloqueia por nível, como sempre.",
|
||||||
"specialist.charter_signed_name":"Carta assinada: {name}.",
|
"specialist.charter_signed_name":"Carta assinada: {name}.",
|
||||||
"specialist.consortium_seat":"Lugar no consórcio",
|
"specialist.consortium_seat":"Lugar no consórcio",
|
||||||
"specialist.consortium_seat_name":"Lugar no consórcio: {name}",
|
"specialist.consortium_seat_name":"Lugar no consórcio: {name}",
|
||||||
|
|
@ -4162,12 +4189,9 @@
|
||||||
"specialist.dig_your_own_as_a_pioneer":"Cave a sua como pioneiro (+{p}%) · {price} · {n} dias",
|
"specialist.dig_your_own_as_a_pioneer":"Cave a sua como pioneiro (+{p}%) · {price} · {n} dias",
|
||||||
"specialist.global_backbone":"Backbone global",
|
"specialist.global_backbone":"Backbone global",
|
||||||
"specialist.includes_pops_at_the_landings_price":"Inclui POPs nas estações de ancoragem: {price}.",
|
"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.low_latency_boutique":"Boutique de baixa latência",
|
||||||
"specialist.n_fiber_pairs":{"one":"{n} par de fibra","other":"{n} pares de fibra"},
|
"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.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.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.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_broadband_in_a_one":"Eles viram sua banda larga em {a}, uma das grandes cidades de usuários.",
|
||||||
|
|
@ -4179,10 +4203,11 @@
|
||||||
"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_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.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.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.what_are_you_building":"O que você está construindo?",
|
||||||
"specialist.win_as_a_low_latency_boutique":"Vença como boutique de baixa latência",
|
"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.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.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_charter_sets_your_goals":"Sua carta define suas metas e sua vitória. Você escolhe uma vez, para toda a vida desta rede.",
|
||||||
"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_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!",
|
"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.as_when_you_started":"como no começo",
|
||||||
|
|
|
||||||
|
|
@ -157,14 +157,14 @@ const API_CMD={
|
||||||
orderDf:{args:[['a','cityId'],['b','cityId'],['source','dfSource'],['system','systemId']],
|
orderDf:{args:[['a','cityId'],['b','cityId'],['source','dfSource'],['system','systemId']],
|
||||||
bindsUI:['pending','dfSrc','dfSys'],bind:a=>{UI.pending={a:a.a,b:a.b};UI.dfSrc=a.source;UI.dfSys=a.system;},
|
bindsUI:['pending','dfSrc','dfSys'],bind:a=>{UI.pending={a:a.a,b:a.b};UI.dfSrc=a.source;UI.dfSys=a.system;},
|
||||||
quote:a=>{const A=a.a,B=a.b,sc=isSub(A,B)?subDfCable(A,B):null,km=sc?sc.km:kmBetween(A,B);
|
quote:a=>{const A=a.a,B=a.b,sc=isSub(A,B)?subDfCable(A,B):null,km=sc?sc.km:kmBetween(A,B);
|
||||||
const building=a.source==='build'&&lvl()>=3&&!sc,sys=DF_SYS[a.system]&&DF_SYS[a.system].lvl<=lvl()?a.system:'lite';
|
const building=a.source==='build'&&glassLvl()>=3&&!sc,sys=DF_SYS[a.system]&&DF_SYS[a.system].lvl<=glassLvl()?a.system:'lite';
|
||||||
const amps=ampCount(km),blocked=[];
|
const amps=ampCount(km),blocked=[];
|
||||||
if(!S.pops[A])blocked.push(linkFromWhy(A));
|
if(!S.pops[A])blocked.push(linkFromWhy(A));
|
||||||
if(isSub(A,B)&&!sc)blocked.push(tr('fiber_modals.nobody_sells_dark_fiber_on_a'));
|
if(isSub(A,B)&&!sc)blocked.push(tr('fiber_modals.nobody_sells_dark_fiber_on_a'));
|
||||||
else if(uaePair(A,B))blocked.push(tr('fiber_modals.no_dark_fiber_inside_the_uae'));
|
else if(uaePair(A,B))blocked.push(tr('fiber_modals.no_dark_fiber_inside_the_uae'));
|
||||||
else if(landX(A,B)&&cnCity(A)===cnCity(B))blocked.push(tr('fiber_modals.nobody_sells_one_fiber_pair_across'));
|
else if(landX(A,B)&&cnCity(A)===cnCity(B))blocked.push(tr('fiber_modals.nobody_sells_one_fiber_pair_across'));
|
||||||
else if(!dfAllowed(A,B))blocked.push(tr('fiber_modals.dark_fiber_across_the_chinese_border'));
|
else if(!dfAllowed(A,B))blocked.push(tr('fiber_modals.dark_fiber_across_the_chinese_border'));
|
||||||
if(lvl()<2)blocked.push(tr('fiber_modals.dark_fiber_unlocks_at_customer_level'));
|
if(glassLvl()<2)blocked.push(tr('fiber_modals.dark_fiber_unlocks_at_customer_level'));
|
||||||
return {setup:(building?dfBuildCost(km):0)+DF_SYS[sys].cost+amps*AMP_COST+(S.pops[B]?0:popCost(B)),
|
return {setup:(building?dfBuildCost(km):0)+DF_SYS[sys].cost+amps*AMP_COST+(S.pops[B]?0:popCost(B)),
|
||||||
monthly:(building?Math.round(km*0.15):dfLeaseMo(km))+amps*AMP_MO,days:building?dfBuildDays(km):30,blocked};},
|
monthly:(building?Math.round(km*0.15):dfLeaseMo(km))+amps*AMP_MO,days:building?dfBuildDays(km):30,blocked};},
|
||||||
doc:'Get dark fiber from one of your POPs (a): lease an IRU, dig your own (level 3+), or take a pair on a subsea cable; opens a POP in b if there is none. Then light it with a line system.'},
|
doc:'Get dark fiber from one of your POPs (a): lease an IRU, dig your own (level 3+), or take a pair on a subsea cable; opens a POP in b if there is none. Then light it with a line system.'},
|
||||||
|
|
@ -204,7 +204,7 @@ const API_CMD={
|
||||||
hwLock:{args:[],quote:a=>({setup:hwLockCost()}),
|
hwLock:{args:[],quote:a=>({setup:hwLockCost()}),
|
||||||
doc:'Lock router, optic and build prices for a year, shortages included. Costs twice as much while a shortage runs.'},
|
doc:'Lock router, optic and build prices for a year, shortages included. Costs twice as much while a shortage runs.'},
|
||||||
buySpare:{args:[['o','opticId']],
|
buySpare:{args:[['o','opticId']],
|
||||||
quote:a=>({setup:optCost(a.o),blocked:[OPT[a.o]&&OPT[a.o].lvl>lvl()?tr('action_helpers.unlocks_at_customer_level_n',{n:OPT[a.o].lvl}):''].filter(Boolean)}),
|
quote:a=>({setup:optCost(a.o),blocked:[OPT[a.o]&&OPT[a.o].lvl>glassLvl()?tr('action_helpers.unlocks_at_customer_level_n',{n:OPT[a.o].lvl}):''].filter(Boolean)}),
|
||||||
doc:'Buy a spare optic for the shelf, up to 64 of a kind. The next channel of that type is then free of optic cost.'},
|
doc:'Buy a spare optic for the shelf, up to 64 of a kind. The next channel of that type is then free of optic cost.'},
|
||||||
sellSpare:{args:[['o','opticId']],quote:a=>({setup:-spareValue(a.o)}),
|
sellSpare:{args:[['o','opticId']],quote:a=>({setup:-spareValue(a.o)}),
|
||||||
doc:'Sell a spare on eBuy for 40% of list.'},
|
doc:'Sell a spare on eBuy for 40% of list.'},
|
||||||
|
|
@ -342,7 +342,7 @@ const API_CMD={
|
||||||
seatNo:{args:[],watch:['seatOff'],
|
seatNo:{args:[],watch:['seatOff'],
|
||||||
doc:'Decline the consortium cable offer.'},
|
doc:'Decline the consortium cable offer.'},
|
||||||
charter:{args:[['k','charterKey']],watch:['charter'],
|
charter:{args:[['k','charterKey']],watch:['charter'],
|
||||||
doc:'Sign your first-month charter: global backbone (the classic game) or low-latency boutique (trading firms pay 40% more, and it has its own win). One choice per network, normal games only.'},
|
doc:'Sign the charter a new normal game asks for before anything else (the player sees a popup until it is signed): global backbone (the classic game), low-latency boutique (trading firms pay 40% more, and it has its own win) or broker (dark fiber, line systems, optics and own subsea cables from day one at the usual prices, its own goals and its own win, Glass Baron). One choice per network, normal games only.'},
|
||||||
mkBanana:{args:[],watch:['monkey'],
|
mkBanana:{args:[],watch:['monkey'],
|
||||||
quote:a=>({setup:mkBananaCost()}),
|
quote:a=>({setup:mkBananaCost()}),
|
||||||
doc:'Throw the chaos monkey a banana and it leaves early. Only while it is in your network; the price scales with your revenue.'},
|
doc:'Throw the chaos monkey a banana and it leaves early. Only while it is in your network; the price scales with your revenue.'},
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,8 @@ const API_STATE_DOC={
|
||||||
priceMul:{type:'number',doc:'Multiplier on transit prices (weekly modifier).'},
|
priceMul:{type:'number',doc:'Multiplier on transit prices (weekly modifier).'},
|
||||||
mode:{type:'string',doc:'normal | sandbox | scenario | puzzle.'},
|
mode:{type:'string',doc:'normal | sandbox | scenario | puzzle.'},
|
||||||
rules:{type:'map',doc:'The rules this network locked in at its door: preset (soft, freeze, oncall, bgp, sandbox or puzzle), the chaos dial, lead times, the market, and the Best Effort extras (sea, confs, broke, moods, pnis), which are only written where they differ from the classic game. They stay for the network\'s whole life.'},
|
rules:{type:'map',doc:'The rules this network locked in at its door: preset (soft, freeze, oncall, bgp, sandbox or puzzle), the chaos dial, lead times, the market, and the Best Effort extras (sea, confs, broke, moods, pnis), which are only written where they differ from the classic game. They stay for the network\'s whole life.'},
|
||||||
charter:{type:'string',doc:'The charter picked in the first month of a normal game: global | boutique.'},
|
charter:{type:'string',doc:'The charter a normal game signed when it started: global | boutique | broker. chartSet is false until one is signed.'},
|
||||||
|
baronWon:{type:'number',doc:'The day a broker won Glass Baron, or 0.'},
|
||||||
chartSet:{type:'boolean',doc:'The charter has been picked; false while the choice is still open.'},
|
chartSet:{type:'boolean',doc:'The charter has been picked; false while the choice is still open.'},
|
||||||
solWon:{type:'integer',doc:'The day the Speed of Light win landed (boutique charter), or 0.'},
|
solWon:{type:'integer',doc:'The day the Speed of Light win landed (boutique charter), or 0.'},
|
||||||
lvl:{type:'integer',doc:'Customer level (unlocks customer types).'},
|
lvl:{type:'integer',doc:'Customer level (unlocks customer types).'},
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ function apiJson(v){
|
||||||
carries the keys confGo/confSponsor need, which exist in no field of S; TE_RECIPES renders
|
carries the keys confGo/confSponsor need, which exist in no field of S; TE_RECIPES renders
|
||||||
each recipe's script, because the source is a function and some read the live network. The
|
each recipe's script, because the source is a function and some read the live network. The
|
||||||
recipes' relevance score is not exposed: judging which one fits is the agent's job. */
|
recipes' relevance score is not exposed: judging which one fits is the agent's job. */
|
||||||
const API_TABLES={SALES,CITIES,NETS,CABLES,XIX,PORT,LT,NNI,VXC,RG,OPT,DF_SYS,FAB,SCRUB_TIERS,BIZ_T,LEVELS,GOALS,SCN,BANKS,REQS,NSH,MET,PREF,RT,PPOL,CONFS,LAG_MAX,RMAX,REGEN_MAX,START_CASH,CONF_COST,CONF_SP,CAP_COST,CAP_LV,CONF_DAYS,SUB_UPGRADES,SEA_DESIGNS,TE_COST,TE_MO,MYIX_COST,CN_LIC,SITE2_COST,MYIX_FAB,INTERNS,OPSK,CHARTERS,SEAT_N,CORE_LV,CORE_COST,CORE_REQ,CORE_LAB,INTERN_MO,PZ_TIERS,AR_TIERS,PZ_RG};
|
const API_TABLES={SALES,CITIES,NETS,CABLES,XIX,PORT,LT,NNI,VXC,RG,OPT,DF_SYS,FAB,SCRUB_TIERS,BIZ_T,LEVELS,GOALS,BROKER_GOALS,SCN,BANKS,REQS,NSH,MET,PREF,RT,PPOL,CONFS,LAG_MAX,RMAX,REGEN_MAX,START_CASH,CONF_COST,CONF_SP,CAP_COST,CAP_LV,CONF_DAYS,SUB_UPGRADES,SEA_DESIGNS,TE_COST,TE_MO,MYIX_COST,CN_LIC,SITE2_COST,MYIX_FAB,INTERNS,OPSK,CHARTERS,SEAT_N,CORE_LV,CORE_COST,CORE_REQ,CORE_LAB,INTERN_MO,PZ_TIERS,AR_TIERS,PZ_RG};
|
||||||
const API_MADE={
|
const API_MADE={
|
||||||
BADGES:()=>!S?[]:BADGES.map(b=>{const on=S.ach&&S.ach[b.id]!==undefined,ever=!!hof()[b.id];
|
BADGES:()=>!S?[]:BADGES.map(b=>{const on=S.ach&&S.ach[b.id]!==undefined,ever=!!hof()[b.id];
|
||||||
return b.secret&&!on&&!ever?{id:b.id,i:'❔',t:'???',d:tr('badges.a_secret_badge'),r:b.r,secret:true}:{...b,ever};}),
|
return b.secret&&!on&&!ever?{id:b.id,i:'❔',t:'???',d:tr('badges.a_secret_badge'),r:b.r,secret:true}:{...b,ever};}),
|
||||||
|
|
@ -78,7 +78,7 @@ const apiMyPops=()=>Object.keys(S.pops).map(apiCityName).join(', ');
|
||||||
|
|
||||||
/* ---------- the network at a glance, and the world ---------- */
|
/* ---------- the network at a glance, and the world ---------- */
|
||||||
function apiStatus(){
|
function apiStatus(){
|
||||||
const goal=GOALS.find(g=>S.done[g.id]===undefined),t1=isTier1(),k=o=>Object.fromEntries(Object.entries(o||{}).map(([a,v])=>[a,Math.round(v)]).filter(([,v])=>v));
|
const goal=goals().find(g=>S.done[g.id]===undefined),t1=isTier1(),k=o=>Object.fromEntries(Object.entries(o||{}).map(([a,v])=>[a,Math.round(v)]).filter(([,v])=>v));
|
||||||
return {
|
return {
|
||||||
name:S.name,asn:S.asn,home:apiCityName(S.home),mode:S.mode,rules:S.rules&&S.rules.preset,
|
name:S.name,asn:S.asn,home:apiCityName(S.home),mode:S.mode,rules:S.rules&&S.rules.preset,
|
||||||
day:S.day,date:dateStr(S.day),cash:Math.round(S.cash),level:S.lvl||0,
|
day:S.day,date:dateStr(S.day),cash:Math.round(S.cash),level:S.lvl||0,
|
||||||
|
|
|
||||||
|
|
@ -31,4 +31,4 @@ const RMAX=16;
|
||||||
// The plain, badge-less model of each class is the default upgrade path; the others are side-grades.
|
// 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);
|
const mainRG=k=>RG.findIndex(r=>r.cls===k&&!r.badge);
|
||||||
// Ports and waves beyond 1.6T / 6.4T only show once a router that takes them is unlocked.
|
// Ports and waves beyond 1.6T / 6.4T only show once a router that takes them is unlocked.
|
||||||
const portShown=i=>i<=4||RG.some(r=>r.lvl<=lvl()&&r.maxP>=i),waveShown=i=>i<=5||RG.some(r=>r.lvl<=lvl()&&r.maxLT>=i);
|
const portShown=i=>i<=4||RG.some((r,g)=>rgOpen(g)&&r.maxP>=i),waveShown=i=>i<=5||RG.some((r,g)=>rgOpen(g)&&r.maxLT>=i);
|
||||||
|
|
|
||||||
|
|
@ -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:
|
/* 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. */
|
another ROADMaster and another chain of amplifiers, 64 more channels. Regen huts are shared. */
|
||||||
const isRdm=y=>y==='roadm'||y==='cl';
|
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.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),
|
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:glassLvl()>=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);
|
pairCost=l=>DF_SYS[isRdm(l.sys)?l.sys:'roadm'].cost+(l.sub?SUB_PAIR_UP:ampCount(l.km)*AMP_COST);
|
||||||
const OPT={
|
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')},
|
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')},
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,7 @@ const SUBR=[],subReach=(t,e)=>SUBR[(t?1:0)+(e?2:0)]??(SUBR[(t?1:0)+(e?2:0)]=Math
|
||||||
subNeed=km=>km<=subReach(0,0)?[]:km<=subReach(1,0)?['terminal']:km<=subReach(0,1)?['engineering']:km<=subReach(1,1)?['terminal','engineering']:null;
|
subNeed=km=>km<=subReach(0,0)?[]:km<=subReach(1,0)?['terminal']:km<=subReach(0,1)?['engineering']:km<=subReach(1,1)?['terminal','engineering']:null;
|
||||||
// Upgrades a cable of this length still needs on top of the chosen ones; ['design'] when nothing can light it.
|
// Upgrades a cable of this length still needs on top of the chosen ones; ['design'] when nothing can light it.
|
||||||
const seaLack=(km,up)=>{const n=subNeed(km);return n?n.filter(k=>!up[k]):['design'];};
|
const seaLack=(km,up)=>{const n=subNeed(km);return n?n.filter(k=>!up[k]):['design'];};
|
||||||
const submarineRate=l=>Math.max(0,...Object.keys(OPT).filter(o=>OPT[o].lvl<=lvl()&&(OPT[o].sys!=='roadm'||isRdm(l.sys||'roadm'))).map(o=>optG(o,l)));
|
const submarineRate=l=>Math.max(0,...Object.keys(OPT).filter(o=>OPT[o].lvl<=glassLvl()&&(OPT[o].sys!=='roadm'||isRdm(l.sys||'roadm'))).map(o=>optG(o,l)));
|
||||||
// The fastest single carrier any optic can run over this much subsea cable.
|
// The fastest single carrier any optic can run over this much subsea cable.
|
||||||
const subCarrier=km=>Math.max(0,...Object.values(OPT).map(O=>{const m=(O.modes||[[O.g,O.reach]]).find(([,r])=>km<=reachOn(r,true));return m?m[0]:0;}));
|
const subCarrier=km=>Math.max(0,...Object.values(OPT).map(O=>{const m=(O.modes||[[O.g,O.reach]]).find(([,r])=>km<=reachOn(r,true));return m?m[0]:0;}));
|
||||||
// A big leased wave is several carriers (6.4T = 4×1.6T), so each carrier has to make it across on its own.
|
// A big leased wave is several carriers (6.4T = 4×1.6T), so each carrier has to make it across on its own.
|
||||||
|
|
|
||||||
|
|
@ -20,4 +20,19 @@ const GOALS=[
|
||||||
{id:'t10',t:tr('goals.serve_10_tbps'),d:tr('goals.ten_terabits_per_second_of_happy'),r:250000,ok:()=>R.served>=10000},
|
{id:'t10',t:tr('goals.serve_10_tbps'),d:tr('goals.ten_terabits_per_second_of_happy'),r:250000,ok:()=>R.served>=10000},
|
||||||
{id:'t1',t:tr('common.go_transit_free_tier_1'),d:tr('goals.peer_with_every_tier_1_their_customers'),r:0,win:true,ok:()=>isTier1()},
|
{id:'t1',t:tr('common.go_transit_free_tier_1'),d:tr('goals.peer_with_every_tier_1_their_customers'),r:0,win:true,ok:()=>isTier1()},
|
||||||
];
|
];
|
||||||
|
// The Cable broker's goals (#300): light glass, sell it, lay cables across the oceans, and end as a Glass Baron
|
||||||
|
// (37-cable-broker.js). Ids of their own, so a save keeps the ladder it ran. Rewards are larger: glass costs more.
|
||||||
|
const BROKER_GOALS=[
|
||||||
|
{id:'bk_df',t:tr('goals.light_your_own_dark_fiber'),d:tr('broker.goal_df_d'),r:25000,ok:()=>S.links.some(l=>l.kind==='df'&&dfCap(l)>0)},
|
||||||
|
{id:'bk_wave',t:tr('broker.goal_wave'),d:tr('broker.goal_wave_d'),r:40000,ok:()=>S.biz.some(b=>b.type==='wwave'||b.type==='capw'&&!capPend(b))},
|
||||||
|
{id:'bk_pair',t:tr('broker.goal_pair'),d:tr('broker.goal_pair_d'),r:50000,ok:()=>S.biz.some(b=>(b.type==='dfpair'||b.type==='pairs'||b.type==='capfib')&&!capPend(b))},
|
||||||
|
{id:'bk_sea',t:tr('broker.goal_sea'),d:tr('broker.goal_sea_d'),r:150000,ok:()=>S.links.some(l=>ownGlassL(l)&&l.sub)},
|
||||||
|
{id:'bk_deal',t:tr('broker.goal_deal'),d:tr('broker.goal_deal_d'),r:100000,ok:()=>(S.stats.capDone||0)>0},
|
||||||
|
{id:'bk_10k',t:tr('broker.goal_10k'),d:tr('broker.goal_10k_d'),r:200000,ok:()=>glassKm()>=10000},
|
||||||
|
{id:'bk_16t',t:tr('broker.goal_16t'),d:tr('broker.goal_16t_d'),r:250000,ok:()=>glassChain(1600)},
|
||||||
|
{id:'bk_c4',t:tr('broker.goal_c4'),d:tr('broker.goal_c4_d'),r:400000,ok:()=>cableConts()>=4},
|
||||||
|
{id:'bk_10t',t:tr('broker.goal_10t'),d:tr('broker.goal_10t_d'),r:600000,ok:()=>capSoldG()>=10000},
|
||||||
|
{id:'bk_win',t:tr('broker.glass_baron'),d:tr('broker.goal_win_d'),r:0,win:true,baron:true,ok:()=>baronOk()},
|
||||||
|
];
|
||||||
|
// The ladder this network runs: the broker's, or the classic one every other charter and mode plays.
|
||||||
|
const goals=()=>broker()?BROKER_GOALS:GOALS;
|
||||||
|
|
|
||||||
|
|
@ -54,4 +54,5 @@ function beginGame(nm,city,o={}){if(needPitch()&&!UI.pitched){UI.pendGame=[nm,ci
|
||||||
UI.lastSpeed=rule('clock')?0.5:0;setSpeed(UI.lastSpeed);UI.resumeSpeed=null;
|
UI.lastSpeed=rule('clock')?0.5:0;setSpeed(UI.lastSpeed);UI.resumeSpeed=null;
|
||||||
track('game_new');UI.started=true;closeModal();compute();cam.x=CITY[city].x;cam.y=CITY[city].y;cam.z=innerWidth<760?1.1:1.4;selectCity(city);
|
track('game_new');UI.started=true;closeModal();compute();cam.x=CITY[city].x;cam.y=CITY[city].y;cam.z=innerWidth<760?1.1:1.4;selectCity(city);
|
||||||
toast(S.scn?`<b>${esc(S.scn.name)}</b><br>${o.scn.goal?esc(o.scn.goal)+'.':tr('common.serve_as_much_traffic_as_you')} ${tr('scenarios.you_have_n_days',{n:S.scn.days})}`:S.mode==='sandbox'?(chaosMul()?tr('scenarios.sandbox_mode_a_billion_dollars_chaos',{chaos:CHAOS[rule('chaos')].n}):tr('scenarios.sandbox_mode_a_billion_dollars_every')):tr('scenarios.welcome_name_the_ripe_ncc_assigned',{name:esc(nm),asn:S.asn,city:CITY[city].name}),'goal');
|
toast(S.scn?`<b>${esc(S.scn.name)}</b><br>${o.scn.goal?esc(o.scn.goal)+'.':tr('common.serve_as_much_traffic_as_you')} ${tr('scenarios.you_have_n_days',{n:S.scn.days})}`:S.mode==='sandbox'?(chaosMul()?tr('scenarios.sandbox_mode_a_billion_dollars_chaos',{chaos:CHAOS[rule('chaos')].n}):tr('scenarios.sandbox_mode_a_billion_dollars_every')):tr('scenarios.welcome_name_the_ripe_ncc_assigned',{name:esc(nm),asn:S.asn,city:CITY[city].name}),'goal');
|
||||||
renderAll();save();if(!S.scn&&S.mode!=='sandbox'&&S.mode!=='puzzle')tutorialStart();}
|
// A Normal game asks for its charter first; the tutorial starts once it is signed.
|
||||||
|
renderAll();save();if(!S.scn&&S.mode!=='sandbox'&&S.mode!=='puzzle'){if(charterDue()){UI.tutLater=true;charterAsk();}else tutorialStart();}}
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ function confTick(d){S.confReg=S.confReg||{};
|
||||||
capDealTick(d);}
|
capDealTick(d);}
|
||||||
function confSection(){const up=upcomingConfs(75).slice(0,3),cb=S.conf&&S.conf.until>S.day?S.conf:null;if(!up.length&&!cb)return '';
|
function confSection(){const up=upcomingConfs(75).slice(0,3),cb=S.conf&&S.conf.until>S.day?S.conf:null;if(!up.length&&!cb)return '';
|
||||||
return `<h3 style="font-size:15px;margin:10px 0 4px">${tr('common.conferences')}</h3>${cb?`<div class="inc" style="background:#EAF7EE"><div class="nm">${tr('conferences.name_glow_n_days_left',{name:esc(cb.name),n:cb.until-S.day})}</div><div class="meta">${tr('conferences.selective_networks_in_region_need',{region:esc(REG[cb.reg])})}${cb.sp?' '+tr('conferences.as_a_sponsor_you_also_get',{region:esc(REG[cb.reg])}):''}</div></div>`:''}${up.map(confRow).join('')}`;}
|
return `<h3 style="font-size:15px;margin:10px 0 4px">${tr('common.conferences')}</h3>${cb?`<div class="inc" style="background:#EAF7EE"><div class="nm">${tr('conferences.name_glow_n_days_left',{name:esc(cb.name),n:cb.until-S.day})}</div><div class="meta">${tr('conferences.selective_networks_in_region_need',{region:esc(REG[cb.reg])})}${cb.sp?' '+tr('conferences.as_a_sponsor_you_also_get',{region:esc(REG[cb.reg])}):''}</div></div>`:''}${up.map(confRow).join('')}`;}
|
||||||
function confRow(cf){const reg=S.confReg&&S.confReg[cf.key],open=cf.day>S.day,sp=confSp(cf),cost=confCost(cf),lk=cf.cap&&lvl()<CAP_LV;
|
function confRow(cf){const reg=S.confReg&&S.confReg[cf.key],open=cf.day>S.day,sp=confSp(cf),cost=confCost(cf),lk=cf.cap&&glassLvl()<CAP_LV;
|
||||||
const tags=(reg==='sp'?'<span class="tag st on">'+tr('conferences.sponsor')+'</span>':reg?'<span class="tag st on">'+tr('common.registered')+'</span>':open?'':'<span class="tag st">'+tr('common.registration_closed')+'</span>');
|
const tags=(reg==='sp'?'<span class="tag st on">'+tr('conferences.sponsor')+'</span>':reg?'<span class="tag st on">'+tr('common.registered')+'</span>':open?'':'<span class="tag st">'+tr('common.registration_closed')+'</span>');
|
||||||
const btns=!open||reg==='sp'?'':(reg?'':lk?btn(tr('sites_and_service.level_n',{n:CAP_LV}),'confGo',{key:cf.key},'sm',true):btn(tr('conferences.attend_cost',{cost:fmt$(cost)}),'confGo',{key:cf.key},'sm',S.cash<cost))+(sp?btn(tr('conferences.sponsor_cost',{cost:fmt$(CONF_SP-(reg?CONF_COST:0))}),'confSponsor',{key:cf.key},'pink sm',S.cash<CONF_SP-(reg?CONF_COST:0)):'');
|
const btns=!open||reg==='sp'?'':(reg?'':lk?btn(tr('sites_and_service.level_n',{n:CAP_LV}),'confGo',{key:cf.key},'sm',true):btn(tr('conferences.attend_cost',{cost:fmt$(cost)}),'confGo',{key:cf.key},'sm',S.cash<cost))+(sp?btn(tr('conferences.sponsor_cost',{cost:fmt$(CONF_SP-(reg?CONF_COST:0))}),'confSponsor',{key:cf.key},'pink sm',S.cash<CONF_SP-(reg?CONF_COST:0)):'');
|
||||||
return `<div class="row"><div class="grow"><div class="nm">${esc(cf.n)} · ${esc(CITY[cf.c].name)}</div><div class="meta">${cf.day===S.day?tr('common.today'):tr('conferences.in_n_days',{n:cf.day-S.day})} · ${esc(REG[CITY[cf.c].reg])}${cf.cap?' · '+tr('conferences.capacity_conference_carriers_buy_in'):sp&&open&®!=='sp'?' · '+tr('conferences.sponsorships_available'):''}</div></div>${tags}${btns?`<div class="btns">${btns}</div>`:''}</div>`;}
|
return `<div class="row"><div class="grow"><div class="nm">${esc(cf.n)} · ${esc(CITY[cf.c].name)}</div><div class="meta">${cf.day===S.day?tr('common.today'):tr('conferences.in_n_days',{n:cf.day-S.day})} · ${esc(REG[CITY[cf.c].reg])}${cf.cap?' · '+tr('conferences.capacity_conference_carriers_buy_in'):sp&&open&®!=='sp'?' · '+tr('conferences.sponsorships_available'):''}</div></div>${tags}${btns?`<div class="btns">${btns}</div>`:''}</div>`;}
|
||||||
|
|
|
||||||
|
|
@ -34,15 +34,15 @@ 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;}
|
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 demoAt=(k,id)=>{const d=S&&S.demo&&S.demo[k+':'+id];return d===undefined?null:d;};
|
||||||
const demoCan=L=>!gatesOpen()&&L===lvl()+1;
|
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;}
|
function techOk(k,id,L){if(L<=(k==='rg'?(rgGlass(+id)?LEVELS.length:lvl()):k==='sys'||k==='opt'?glassLvl():lvl()))return true;const d=demoAt(k,id);return demoCan(L)&&d!==null&&d<=S.day;}
|
||||||
const techMul=L=>L>lvl()?DEMO_MUL:1;
|
const techMul=L=>L>glassLvl()?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);
|
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);
|
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);}
|
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));
|
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.
|
// Digging your own fiber before level 3: the pioneer pays for the permits nobody has asked for yet.
|
||||||
const PIONEER=1.6;
|
const PIONEER=1.6;
|
||||||
const digMul=()=>lvl()>=3?1:PIONEER,digCost=km=>Math.round(dfBuildCost(km)*digMul());
|
const digMul=()=>glassLvl()>=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,
|
/* 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. */
|
lit with your own optics like your own cable. Capacity conferences offer them, and now and then a consortium calls. */
|
||||||
|
|
@ -64,11 +64,18 @@ function seatSection(){const o=S.seatOff;if(!o||o.exp<=S.day)return '';const pop
|
||||||
<div class="btns">${SEAT_N.map(n=>{const c=seatCost(o.km,n)+pop;return btn(`${trn('specialist.n_fiber_pairs',n)} <small>${fmt$(c)} · ${tr('common.price_mo',{price:fmt$(seatMo(o.km,n))})}</small>`,'seatBuy',{n},'sm',S.cash<c);}).join('')}${btn(tr('common.decline'),'seatNo',{},'ghost sm')}</div></div>`;}
|
<div class="btns">${SEAT_N.map(n=>{const c=seatCost(o.km,n)+pop;return btn(`${trn('specialist.n_fiber_pairs',n)} <small>${fmt$(c)} · ${tr('common.price_mo',{price:fmt$(seatMo(o.km,n))})}</small>`,'seatBuy',{n},'sm',S.cash<c);}).join('')}${btn(tr('common.decline'),'seatNo',{},'ghost sm')}</div></div>`;}
|
||||||
function seatPanel(l){if(!l.seat)return '';return `<div class="kv"><span>${tr('specialist.consortium_seat')}</span><b>${esc(l.cname||'')} · ${trn('specialist.n_fiber_pairs',Math.max(1,l.pairs|0))}</b></div><p class="note">${tr('specialist.the_consortium_runs_the_cable_your')}</p>`;}
|
function seatPanel(l){if(!l.seat)return '';return `<div class="kv"><span>${tr('specialist.consortium_seat')}</span><b>${esc(l.cname||'')} · ${trn('specialist.n_fiber_pairs',Math.max(1,l.pairs|0))}</b></div><p class="note">${tr('specialist.the_consortium_runs_the_cable_your')}</p>`;}
|
||||||
|
|
||||||
/* Charters: what the network sets out to be, picked once at the start of a Normal game. Global backbone is the game as
|
/* Charters: what the network sets out to be, picked once when a Normal game starts, in a popup that waits for an
|
||||||
it always was; the Low-latency boutique sells speed to traders and has its own win, Speed of Light. */
|
answer. Global backbone is the game as it always was; the Low-latency boutique sells speed to traders and has its own
|
||||||
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')}};
|
win, Speed of Light; the Cable broker (#300) lays and lights glass on land and under the sea from day one, at the
|
||||||
|
usual prices, sells it, and has its own goals and win, Glass Baron (37-cable-broker.js). */
|
||||||
|
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')},broker:{i:'🚢',n:N_('specialist.cable_broker'),d:N_('specialist.cable_broker_desc')}};
|
||||||
const CHARTER_DAYS=30,LAT_PAY=1.4,SOL_ROUTES=3,SOL_CUST=2;
|
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 charter=()=>S&&!S.scn&&S.mode==='normal'&&(S.charter==='boutique'||S.charter==='broker')?S.charter:'global';
|
||||||
|
const broker=()=>charter()==='broker';
|
||||||
|
// The level glass is judged at: fiber, line systems, optics, pairs and subsea gear. A broker has all of it from day one.
|
||||||
|
const glassLvl=()=>broker()?LEVELS.length:lvl();
|
||||||
|
// The router class the fastest optics need: a broker may buy every router up to it, so all its optics can be lit.
|
||||||
|
const RG_GLASS=Math.max(...Object.values(OPT).map(o=>o.rg)),rgGlass=g=>broker()&&!!RG[g]&&RG[g].cls<=RG_GLASS,rgOpen=g=>!!RG[g]&&(RG[g].lvl<=lvl()||rgGlass(g));
|
||||||
const latPay=()=>charter()==='boutique'?LAT_PAY:1;
|
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.
|
// 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;}
|
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;}
|
||||||
|
|
@ -78,19 +85,29 @@ function solRoutes(){const k=S.day+'|'+S.links.length+'|'+S.links.reduce((n,l)=>
|
||||||
const f=FIN.filter(c=>S.pops[c]),v=[];if(S.links.some(ownGlass))for(let i=0;i<f.length;i++)for(let j=i+1;j<f.length;j++){const a=f[i],b=f[j],o=bestLat(a,b,ownGlass),l=leasedLat(a,b);if(isFinite(o)&&isFinite(l)&&o<l)v.push({a,b,o,l});}
|
const f=FIN.filter(c=>S.pops[c]),v=[];if(S.links.some(ownGlass))for(let i=0;i<f.length;i++)for(let j=i+1;j<f.length;j++){const a=f[i],b=f[j],o=bestLat(a,b,ownGlass),l=leasedLat(a,b);if(isFinite(o)&&isFinite(l)&&o<l)v.push({a,b,o,l});}
|
||||||
SOLC={s:S,k,v};return v;}
|
SOLC={s:S,k,v};return v;}
|
||||||
const solCust=()=>S.biz.filter(b=>BIZ_T[b.type]&&BIZ_T[b.type].lat&&b.mood>=50&&reqOk(b)).length;
|
const solCust=()=>S.biz.filter(b=>BIZ_T[b.type]&&BIZ_T[b.type].lat&&b.mood>=50&&reqOk(b)).length;
|
||||||
|
// What each charter promises, as the picker and the agent's docs say it.
|
||||||
|
const charterDesc=C=>tr(C.d,{p:Math.round((LAT_PAY-1)*100),r:SOL_ROUTES,c:SOL_CUST,n:BARON_CONT,m:fmt$(BARON_MO)});
|
||||||
|
/* The picker: when a Normal game starts (and when a save that never picked loads), before anything else. It pauses the
|
||||||
|
clock like any open window and cannot be closed without a choice; the tutorial waits for it. Seeded tests skip it unless
|
||||||
|
they ask (window.__TUBES_CHARTER__), as they skip the tutorial: they sign a charter with ACT.charter when they need one. */
|
||||||
|
const charterDue=()=>!!(S&&UI.started&&!S.lost&&!S.scn&&S.mode==='normal'&&!S.chartSet&&!pzOn());
|
||||||
|
function charterPickHtml(){return `<div class="chpick"><div class="eyebrow">${esc(S.name)} · AS${S.asn}</div><h2 style="font-size:26px">${tr('specialist.what_are_you_building')}</h2><p class="tagline">${tr('specialist.your_charter_sets_your_goals')}</p><div class="chopts">`
|
||||||
|
+Object.entries(CHARTERS).map(([k,C])=>`<button class="chopt" data-act="charter" data-args='${JSON.stringify({k})}'><span class="chi" aria-hidden="true">${C.i}</span><span class="cht"><b>${tr(C.n)}</b><span>${charterDesc(C)}</span></span></button>`).join('')+`</div></div>`;}
|
||||||
|
function charterAsk(){if(!charterDue()||!$('modal').hidden||window.__TUBES_TEST__&&!window.__TUBES_CHARTER__)return;openModal(charterPickHtml(),'charter');}
|
||||||
function charterCard(){if(S.scn||S.mode!=='normal')return '';
|
function charterCard(){if(S.scn||S.mode!=='normal')return '';
|
||||||
if(!S.chartSet&&S.day<=CHARTER_DAYS)return `<div class="inc" style="background:#EEF0FF"><div class="nm">${tr('specialist.pick_a_charter')}</div><div class="meta">${tr('specialist.what_kind_of_network_are_you',{n:CHARTER_DAYS-S.day})}</div>${Object.entries(CHARTERS).map(([k,C])=>`<div class="row"><div class="grow"><div class="nm">${C.i} ${tr(C.n)}</div><div class="meta">${tr(C.d,{p:Math.round((LAT_PAY-1)*100),r:SOL_ROUTES,c:SOL_CUST})}</div></div>${btn(charter()===k?tr('specialist.keep_it'):tr('specialist.pick'),'charter',{k},k==='global'?'ghost sm':'pink sm')}</div>`).join('')}</div>`;
|
if(broker())return baronCard();
|
||||||
if(charter()!=='boutique')return '';
|
if(charter()!=='boutique')return '';
|
||||||
if(S.solWon)return `<div class="inc" style="background:#EAF7EE"><div class="nm">⚡ ${tr('specialist.speed_of_light')}</div><div class="meta">${tr('specialist.won_on_date_your_own_glass',{date:dateStr(S.solWon)})}</div></div>`;
|
if(S.solWon)return `<div class="inc" style="background:#EAF7EE"><div class="nm">⚡ ${tr('specialist.speed_of_light')}</div><div class="meta">${tr('specialist.won_on_date_your_own_glass',{date:dateStr(S.solWon)})}</div></div>`;
|
||||||
const r=solRoutes();return `<div class="inc" style="background:#EEF0FF"><div class="nm">⚡ ${tr('specialist.speed_of_light')}</div><div class="meta">${tr('specialist.routes_r_of_n_beat_the',{r:Math.min(r.length,SOL_ROUTES),n:SOL_ROUTES,c:Math.min(solCust(),SOL_CUST),m:SOL_CUST})}</div>${r.slice(0,SOL_ROUTES).map(x=>`<div class="meta">✓ ${CITY[x.a].name} ⇄ ${CITY[x.b].name}: ${tr('common.ms_ms_one_way',{ms:x.o.toFixed(1)})} < ${x.l.toFixed(1)}</div>`).join('')}</div>`;}
|
const r=solRoutes();return `<div class="inc" style="background:#EEF0FF"><div class="nm">⚡ ${tr('specialist.speed_of_light')}</div><div class="meta">${tr('specialist.routes_r_of_n_beat_the',{r:Math.min(r.length,SOL_ROUTES),n:SOL_ROUTES,c:Math.min(solCust(),SOL_CUST),m:SOL_CUST})}</div>${r.slice(0,SOL_ROUTES).map(x=>`<div class="meta">✓ ${CITY[x.a].name} ⇄ ${CITY[x.b].name}: ${tr('common.ms_ms_one_way',{ms:x.o.toFixed(1)})} < ${x.l.toFixed(1)}</div>`).join('')}</div>`;}
|
||||||
// Once a day: seats expire or call, and the boutique checks its win.
|
// Once a day: seats expire or call, the boutique checks its win and carriers call the broker.
|
||||||
function specDay(d){if(S.seatOff&&S.seatOff.exp<=d)S.seatOff=null;
|
function specDay(d){if(broker())brokerDay(d);if(S.seatOff&&S.seatOff.exp<=d)S.seatOff=null;
|
||||||
if(!S.seatOff&&!S.scn&&S.mode!=='puzzle'&&lvl()>=SEAT_LV&&hstr(S.asn+'|seatcall|'+d)%SEAT_ODDS===0)seatConf(null);
|
if(!S.seatOff&&!S.scn&&S.mode!=='puzzle'&&lvl()>=SEAT_LV&&hstr(S.asn+'|seatcall|'+d)%SEAT_ODDS===0)seatConf(null);
|
||||||
if(charter()==='boutique'&&!S.solWon&&solRoutes().length>=SOL_ROUTES&&solCust()>=SOL_CUST){S.solWon=Math.max(1,d);track('win_sol');toast(`<b>⚡ ${tr('specialist.speed_of_light')}</b><br>${tr('specialist.your_own_glass_beats_every_leased')}`,'goal');sfx('coin');checkBadges();}}
|
if(charter()==='boutique'&&!S.solWon&&solRoutes().length>=SOL_ROUTES&&solCust()>=SOL_CUST){S.solWon=Math.max(1,d);track('win_sol');toast(`<b>⚡ ${tr('specialist.speed_of_light')}</b><br>${tr('specialist.your_own_glass_beats_every_leased')}`,'goal');sfx('coin');checkBadges();}}
|
||||||
// Saves: the charter, demo orders, a seat on offer and the boutique's win. Old saves are Global backbone, picked.
|
// Saves: the charter, demo orders, a seat on offer and the boutique's and the broker's wins. Old saves are Global
|
||||||
function specSanitize(s){s.charter=s.charter==='boutique'&&s.mode==='normal'&&!s.scn?'boutique':'global';s.chartSet=s.chartSet===false&&s.day<=CHARTER_DAYS?false:true;
|
// backbone, picked; one still in its first month that never picked is asked again.
|
||||||
|
function specSanitize(s){s.charter=(s.charter==='boutique'||s.charter==='broker')&&s.mode==='normal'&&!s.scn?s.charter:'global';s.chartSet=s.chartSet===false&&s.day<=CHARTER_DAYS?false:true;
|
||||||
const dm={};if(s.demo&&typeof s.demo==='object'&&!Array.isArray(s.demo))for(const key of Object.keys(s.demo).slice(0,64)){const [k,id]=key.split(':');if(demoItem(k,id)&&Number.isFinite(+s.demo[key]))dm[key]=Math.round(+s.demo[key]);}s.demo=dm;
|
const dm={};if(s.demo&&typeof s.demo==='object'&&!Array.isArray(s.demo))for(const key of Object.keys(s.demo).slice(0,64)){const [k,id]=key.split(':');if(demoItem(k,id)&&Number.isFinite(+s.demo[key]))dm[key]=Math.round(+s.demo[key]);}s.demo=dm;
|
||||||
const o=s.seatOff;s.seatOff=o&&typeof o==='object'&&typeof o.name==='string'&&seatRoute(o.name)&&seatRoute(o.name)[0]===o.a&&seatRoute(o.name)[1]===o.b?{a:o.a,b:o.b,name:o.name,km:seatKm(o.a,o.b),exp:num(o.exp,0)}:null;
|
const o=s.seatOff;s.seatOff=o&&typeof o==='object'&&typeof o.name==='string'&&seatRoute(o.name)&&seatRoute(o.name)[0]===o.a&&seatRoute(o.name)[1]===o.b?{a:o.a,b:o.b,name:o.name,km:seatKm(o.a,o.b),exp:num(o.exp,0)}:null;
|
||||||
s.solWon=Number.isFinite(+s.solWon)&&+s.solWon>0?Math.round(+s.solWon):0;
|
s.solWon=Number.isFinite(+s.solWon)&&+s.solWon>0?Math.round(+s.solWon):0;s.baronWon=Number.isFinite(+s.baronWon)&&+s.baronWon>0?Math.round(+s.baronWon):0;
|
||||||
for(const l of s.links)if(l.seat!==undefined){if(l.seat===true&&l.kind==='df'&&l.own&&l.sub)l.pairs=Math.max(1,Math.min(Math.max(...SEAT_N),l.pairs|0));else delete l.seat;}
|
for(const l of s.links)if(l.seat!==undefined){if(l.seat===true&&l.kind==='df'&&l.own&&l.sub)l.pairs=Math.max(1,Math.min(Math.max(...SEAT_N),l.pairs|0));else delete l.seat;}
|
||||||
for(const b of [...s.biz,...s.offers])if(b.spot!==undefined){const x=b.spot;if(x&&typeof x==='object'&&own(SPOT_W,x.k))b.spot={k:x.k,n:num(x.n,0)};else delete b.spot;}}
|
for(const b of [...s.biz,...s.offers])if(b.spot!==undefined){const x=b.spot;if(x&&typeof x==='object'&&own(SPOT_W,x.k))b.spot={k:x.k,n:num(x.n,0)};else delete b.spot;}}
|
||||||
|
|
|
||||||
34
src/game/60-features/37-cable-broker.js
Normal file
34
src/game/60-features/37-cable-broker.js
Normal file
|
|
@ -0,0 +1,34 @@
|
||||||
|
/* ---------- The Cable broker (#300) ----------
|
||||||
|
A charter for building glass and selling it. Dark fiber, every line system and optic, digging, own subsea cables,
|
||||||
|
their upgrades and more pairs are open from day one at the usual prices (glassLvl, rgGlass in 36-specialist.js); the
|
||||||
|
rest of the game unlocks by level as always. Carriers call for capacity, the goals are about glass (BROKER_GOALS), and
|
||||||
|
the win is Glass Baron: your own cables land on five continents while carriers pay you $1M a month for capacity. */
|
||||||
|
const BARON_CONT=5,BARON_MO=1000000,BROKER_CALL=120,BROKER_CALL_FROM=60;
|
||||||
|
// Your own glass: fiber you dug and cables you laid, once ready. A leased IRU is someone else's; so is a consortium seat.
|
||||||
|
const ownGlassL=l=>l.kind==='df'&&l.own&&!l.seat&&l.ready<=S.day;
|
||||||
|
const glassKm=()=>S.links.reduce((a,l)=>a+(ownGlassL(l)?l.km:0),0);
|
||||||
|
// The continents your own subsea cables land on.
|
||||||
|
function cableConts(){const r=new Set();for(const l of S.links)if(ownGlassL(l)&&l.sub)for(const c of [l.a,l.b])r.add(CITY[c].reg);return r.size;}
|
||||||
|
// Capacity other carriers buy from you: alien waves, fiber pairs and capacity deals (once delivered).
|
||||||
|
const CAP_TYPES=['wwave','dfpair','pairs','capw','capsub','capfib'];
|
||||||
|
const capSold=b=>CAP_TYPES.includes(b.type)&&!capPend(b);
|
||||||
|
const capSalesMo=()=>S.biz.reduce((a,b)=>a+(capSold(b)?bizMo(b):0),0);
|
||||||
|
// Lit capacity sold, in Gbps: waves (400G each) and subsea capacity. A dark pair is the buyer's to light.
|
||||||
|
const capSoldG=()=>S.biz.reduce((a,b)=>a+(!capSold(b)?0:b.type==='wwave'?(b.slots||1)*400:b.type==='capw'||b.type==='capsub'?b.bw:0),0);
|
||||||
|
// Two hops of your own glass through one city, each lit to at least g.
|
||||||
|
function glassChain(g){const by={};for(const l of S.links)if(ownGlassL(l)&&dfCap(l)>=g)for(const [c,o] of [[l.a,l.b],[l.b,l.a]])(by[c]=by[c]||new Set()).add(o);
|
||||||
|
return Object.values(by).some(s=>s.size>=2);}
|
||||||
|
const baronOk=()=>cableConts()>=BARON_CONT&&capSalesMo()>=BARON_MO;
|
||||||
|
// On the goals tab, under the charter: how far Glass Baron is.
|
||||||
|
function baronCard(){if(S.baronWon)return `<div class="inc" style="background:#EAF7EE"><div class="nm">🌊 ${tr('broker.glass_baron')}</div><div class="meta">${tr('broker.won_on_date',{date:dateStr(S.baronWon)})}</div></div>`;
|
||||||
|
return `<div class="inc" style="background:#E6F4FF"><div class="nm">🌊 ${tr('broker.glass_baron')}</div><div class="meta">${tr('broker.progress',{c:Math.min(cableConts(),BARON_CONT),n:BARON_CONT,mo:fmt$(capSalesMo()),m:fmt$(BARON_MO)})}</div></div>`;}
|
||||||
|
function showBaronWin(){openModal(`<h1 style="font-family:var(--display);font-size:40px;margin:0">🌊 ${tr('broker.glass_baron')}</h1><p class="tagline">${tr('broker.win_text',{name:esc(S.name),asn:S.asn,days:S.day,n:BARON_CONT,mo:fmt$(capSalesMo())})}</p><div class="btns">${btn(tr('help.share_my_network'),'share',{},'pink')}${btn(tr('common.keep_playing'),'closeModal',{},'ghost')}</div>`);}
|
||||||
|
/* Carriers call the broker now and then (about three times a year, from day 60) with a capacity deal on a route the
|
||||||
|
capacity conferences trade: the same deals at the same terms, without the trip. Picked by a hash of the day, so a
|
||||||
|
broker's other dice roll as they would. */
|
||||||
|
function brokerDay(d){if(d<BROKER_CALL_FROM||S.scn||hstr(S.asn+'|capcall|'+d)%BROKER_CALL!==0)return;
|
||||||
|
const pool=Object.values(CAP_ROUTES).flat().filter(r=>isCity(r[0])&&isCity(r[1])&&!S.offers.some(o=>o.city===r[0]&&o.city2===r[1]&&o.type===r[2]));if(!pool.length)return;
|
||||||
|
const [a,b,t]=pool[hstr(S.asn+'|caproute|'+d)%pool.length],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;};
|
||||||
|
const o=capOffer(a,b,t,nm);S.offers.push(o);
|
||||||
|
toast(tr('broker.a_carrier_calls',{name:esc(o.name),what:capWhat(o),a:CITY[a].name,b:CITY[b].name}),'goal',[{l:tr('common.show_me'),act:'leftTab',args:{t:'deals'}}]);sfx('coin');}
|
||||||
|
|
@ -133,7 +133,7 @@ const OPS_RUN={
|
||||||
const ld=Math.max((R.nodeLoad[c]||0)/(R.nodeCap[c]||nodeCap(c)||1),portsUsed(c)/Math.max(1,portsMax(c)));if(ld<at)continue;
|
const ld=Math.max((R.nodeLoad[c]||0)/(R.nodeCap[c]||nodeCap(c)||1),portsUsed(c)/Math.max(1,portsMax(c)));if(ld<at)continue;
|
||||||
const rt=p.routers||1,g=p.rgen||0,nx=mainRG(RG[g].cls+1);
|
const rt=p.routers||1,g=p.rgen||0,nx=mainRG(RG[g].cls+1);
|
||||||
// A swap with one router is a maintenance window: the intern only swaps where a second router carries the traffic.
|
// A swap with one router is a maintenance window: the intern only swaps where a second router carries the traffic.
|
||||||
const swap=nx>=0&&RG[nx].lvl<=lvl()&&!modelFits(c,nx)&&(rt>1||popIdle(c)),add=rt<RMAX;
|
const swap=nx>=0&&rgOpen(nx)&&!modelFits(c,nx)&&(rt>1||popIdle(c)),add=rt<RMAX;
|
||||||
const doSwap=how==='swap'?swap:how==='add'?false:swap&&(rt>=4||!add);if(!doSwap&&(how==='swap'||!add))continue;
|
const doSwap=how==='swap'?swap:how==='add'?false:swap&&(rt>=4||!add);if(!doSwap&&(how==='swap'||!add))continue;
|
||||||
const cost=doSwap?swapCost(c,nx):routerCost(g,rt);if(!X.can('routers',cost))continue;
|
const cost=doSwap?swapCost(c,nx):routerCost(g,rt);if(!X.can('routers',cost))continue;
|
||||||
if(X.pay('routers',()=>doSwap?ACT.upRouter({city:c,g:nx}):ACT.addRouter({city:c})))X.did('routers',c+(doSwap?' ⇧'+RG[nx].pn:' +1'));}},
|
if(X.pay('routers',()=>doSwap?ACT.upRouter({city:c,g:nx}):ACT.addRouter({city:c})))X.did('routers',c+(doSwap?' ⇧'+RG[nx].pn:' +1'));}},
|
||||||
|
|
|
||||||
|
|
@ -100,8 +100,10 @@ function spawnOffer(){
|
||||||
const mine=spMine(Object.keys(S.pops).filter(bizCity)),lv=lvl();
|
const mine=spMine(Object.keys(S.pops).filter(bizCity)),lv=lvl();
|
||||||
const types=['dia','dia','game','host'];if(mine.length>=2)types.push('l2vpn','l2vpn');if(S.day>60)types.push('scrub');
|
const types=['dia','dia','game','host'];if(mine.length>=2)types.push('l2vpn','l2vpn');if(S.day>60)types.push('scrub');
|
||||||
if(lv>=2)types.push('isp','stream','edu','host','hft','bulk','event','event');if(mine.length>=3&&lv>=2)types.push('sdwan','sdwan');
|
if(lv>=2)types.push('isp','stream','edu','host','hft','bulk','event','event');if(mine.length>=3&&lv>=2)types.push('sdwan','sdwan');
|
||||||
if(S.links.some(l=>l.kind==='df'&&l.ready<=S.day))types.push('wwave','wwave');if(S.links.some(l=>l.kind==='df'&&l.own&&l.ready<=S.day))types.push('dfpair');if(lv>=3)types.push('gpu','gpu','onramp','onramp');if(lv>=4)types.push('ai','ai','hyper','hyper');
|
// A broker's callers are mostly carriers who want capacity on its glass (#300).
|
||||||
if(lv>=3&&MEGA.some(m=>mine.includes(m.c)))types.push('ingest');if(lv>=4&&MEGA.some(m=>mine.includes(m.c)))types.push('aiwan','aiwan','mtrain');if(lv>=4&&S.links.some(l=>l.kind==='df'&&l.own&&l.ready<=S.day))types.push('pairs');
|
const bk=broker(),dfR=S.links.some(l=>l.kind==='df'&&l.ready<=S.day),dfO=S.links.some(l=>l.kind==='df'&&l.own&&l.ready<=S.day);
|
||||||
|
if(dfR)types.push('wwave','wwave');if(dfO)types.push('dfpair');if(bk){if(dfR)types.push('wwave','wwave','wwave','wwave');if(dfO)types.push('dfpair','dfpair','dfpair');}if(lv>=3)types.push('gpu','gpu','onramp','onramp');if(lv>=4)types.push('ai','ai','hyper','hyper');
|
||||||
|
if(lv>=3&&MEGA.some(m=>mine.includes(m.c)))types.push('ingest');if(lv>=4&&MEGA.some(m=>mine.includes(m.c)))types.push('aiwan','aiwan','mtrain');if((lv>=4||bk)&&dfO)types.push('pairs');
|
||||||
if(lv>=5)types.push('esport');if(lv>=6&&mine.length>=2)types.push('sov','sov');if(lv>=8)types.push('cgame','cgame');if(lv>=9)types.push('metav','metav');if(lv>=11&&MEGA.some(m=>mine.includes(m.c)))types.push('agi');if(lv>=13&&mine.length>=2)types.push('mars');
|
if(lv>=5)types.push('esport');if(lv>=6&&mine.length>=2)types.push('sov','sov');if(lv>=8)types.push('cgame','cgame');if(lv>=9)types.push('metav','metav');if(lv>=11&&MEGA.some(m=>mine.includes(m.c)))types.push('agi');if(lv>=13&&mine.length>=2)types.push('mars');
|
||||||
const br=mine.filter(c=>CITY[c].br);if(br.length)types.push('provedor','provedor','provedor');
|
const br=mine.filter(c=>CITY[c].br);if(br.length)types.push('provedor','provedor','provedor');
|
||||||
// Countries with thousands of ASNs (Brazil's provedores, US regionals) are full of small ISPs shopping for transit.
|
// Countries with thousands of ASNs (Brazil's provedores, US regionals) are full of small ISPs shopping for transit.
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,7 @@ const BADGES=[
|
||||||
{id:'landlord',i:'🧵',t:tr('common.trench_landlord'),d:tr('badges.lease_hundreds_of_fiber_pairs_to'),r:'e',ok:()=>S.biz.some(b=>b.type==='pairs')},
|
{id:'landlord',i:'🧵',t:tr('common.trench_landlord'),d:tr('badges.lease_hundreds_of_fiber_pairs_to'),r:'e',ok:()=>S.biz.some(b=>b.type==='pairs')},
|
||||||
{id:'t1',i:'👑',t:tr('common.tier_1'),d:tr('badges.go_transit_free'),r:'e',ok:()=>!!S.won},
|
{id:'t1',i:'👑',t:tr('common.tier_1'),d:tr('badges.go_transit_free'),r:'e',ok:()=>!!S.won},
|
||||||
{id:'sol',i:'⚡',t:tr('specialist.speed_of_light'),d:tr('specialist.win_as_a_low_latency_boutique'),r:'e',ok:()=>!!S.solWon},
|
{id:'sol',i:'⚡',t:tr('specialist.speed_of_light'),d:tr('specialist.win_as_a_low_latency_boutique'),r:'e',ok:()=>!!S.solWon},
|
||||||
|
{id:'baron',i:'🌊',t:tr('broker.glass_baron'),d:tr('broker.win_as_a_cable_broker'),r:'e',ok:()=>!!S.baronWon},
|
||||||
{id:'seat',i:'🚢',t:tr('specialist.part_owner_of_the_sea'),d:tr('specialist.take_a_seat_on_a_consortium'),r:'r',ok:()=>S.links.some(l=>l.seat)},
|
{id:'seat',i:'🚢',t:tr('specialist.part_owner_of_the_sea'),d:tr('specialist.take_a_seat_on_a_consortium'),r:'r',ok:()=>S.links.some(l=>l.seat)},
|
||||||
{id:'bait',i:'🎣',t:tr('common.shark_bait'),d:tr('badges.get_bitten_by_sharks_3_times'),r:'l',ok:()=>(st().sharks||0)>=3},
|
{id:'bait',i:'🎣',t:tr('common.shark_bait'),d:tr('badges.get_bitten_by_sharks_3_times'),r:'l',ok:()=>(st().sharks||0)>=3},
|
||||||
{id:'nines',i:'💎',t:tr('common.five_nines'),d:tr('badges.serve_99_5_of_demand_every'),r:'l',ok:()=>(st().clean||0)>=365},
|
{id:'nines',i:'💎',t:tr('common.five_nines'),d:tr('badges.serve_99_5_of_demand_every'),r:'l',ok:()=>(st().clean||0)>=365},
|
||||||
|
|
@ -110,9 +111,10 @@ function badgeGrid(){const h=hof(),got=BADGES.filter(b=>S.ach&&S.ach[b.id]!==und
|
||||||
<div class="badges">${BADGES.map(b=>{const on=S.ach&&S.ach[b.id]!==undefined,ever=!!h[b.id],R0=RARITY[b.r],hide=b.secret&&!on&&!ever,vk=on?bvar(S.achP&&S.achP[b.id]).k:ever?h[b.id].v:'',vn=vk&&vk!=='oncall'?' · '+BVAR[vk].i+' '+tr(BVAR[vk].n):'';
|
<div class="badges">${BADGES.map(b=>{const on=S.ach&&S.ach[b.id]!==undefined,ever=!!h[b.id],R0=RARITY[b.r],hide=b.secret&&!on&&!ever,vk=on?bvar(S.achP&&S.achP[b.id]).k:ever?h[b.id].v:'',vn=vk&&vk!=='oncall'?' · '+BVAR[vk].i+' '+tr(BVAR[vk].n):'';
|
||||||
return `<div class="bdg ${on?'on':ever?'ever':''}${vk?' v-'+vk:''}" style="--rc:${R0.col}" title="${esc(hide?tr('badges.a_secret_badge'):b.t+': '+b.d+vn)}"><span class="bi">${hide?'❔':b.i}</span><span class="bt">${esc(hide?'???':b.t)}</span><span class="br">${R0.n}${ever&&!on?' · '+tr('common.earned_before'):''}</span>${vk&&vk!=='oncall'?`<span class="bv">${BVAR[vk].i} ${esc(tr(BVAR[vk].n))}</span>`:''}${hide?'':`<span class="bd">${esc(b.d)}</span>`}</div>`;}).join('')}</div>`;}
|
return `<div class="bdg ${on?'on':ever?'ever':''}${vk?' v-'+vk:''}" style="--rc:${R0.col}" title="${esc(hide?tr('badges.a_secret_badge'):b.t+': '+b.d+vn)}"><span class="bi">${hide?'❔':b.i}</span><span class="bt">${esc(hide?'???':b.t)}</span><span class="br">${R0.n}${ever&&!on?' · '+tr('common.earned_before'):''}</span>${vk&&vk!=='oncall'?`<span class="bv">${BVAR[vk].i} ${esc(tr(BVAR[vk].n))}</span>`:''}${hide?'':`<span class="bd">${esc(b.d)}</span>`}</div>`;}).join('')}</div>`;}
|
||||||
function checkGoals(){checkBadges();
|
function checkGoals(){checkBadges();
|
||||||
for(const g of GOALS){if(S.done[g.id]!==undefined)continue;let ok=false;try{ok=g.ok();}catch(e){}
|
for(const g of goals()){if(S.done[g.id]!==undefined)continue;let ok=false;try{ok=g.ok();}catch(e){}
|
||||||
if(ok){S.done[g.id]=S.day;if(g.r&&S.mode!=='sandbox'){S.cash+=g.r;}
|
if(ok){S.done[g.id]=S.day;if(g.r&&S.mode!=='sandbox'){S.cash+=g.r;}
|
||||||
toast(`<b>${tr('badges.goal_complete_name',{name:esc(g.t)})}</b>${g.r?`<br>${tr('badges.reward_amt',{amt:fmt$(g.r)})}`:''}`,'goal',[],{a:'tab',v:'goals'});sfx('coin');
|
toast(`<b>${tr('badges.goal_complete_name',{name:esc(g.t)})}</b>${g.r?`<br>${tr('badges.reward_amt',{amt:fmt$(g.r)})}`:''}`,'goal',[],{a:'tab',v:'goals'});sfx('coin');
|
||||||
track('goal_'+g.id);if(g.win&&!S.won){S.won=true;track('win_tier1');checkBadges();showWin();}}}
|
// Glass Baron is the broker's win; S.won stays Tier 1, which a broker can still become.
|
||||||
|
track('goal_'+g.id);if(g.baron){if(!S.baronWon){S.baronWon=S.day||1;track('win_baron');checkBadges();showBaronWin();}}else if(g.win&&!S.won){S.won=true;track('win_tier1');checkBadges();showWin();}}}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ const ACT={
|
||||||
repayLoan:({id})=>{const l=S.loans.find(x=>x.id===id);if(!l)return;const B=BANKS[l.bank];const cost=repayCost(l,B);
|
repayLoan:({id})=>{const l=S.loans.find(x=>x.id===id);if(!l)return;const B=BANKS[l.bank];const cost=repayCost(l,B);
|
||||||
if(UI.confirm!==id){UI.confirm=id;renderBank();return;}UI.confirm=null;if(!spend(cost)){renderBank();return;}S.loans=S.loans.filter(x=>x!==l);track('loan_repaid');
|
if(UI.confirm!==id){UI.confirm=id;renderBank();return;}UI.confirm=null;if(!spend(cost)){renderBank();return;}S.loans=S.loans.filter(x=>x!==l);track('loan_repaid');
|
||||||
toast(B.equity?tr('interface.you_bought_out_bank_they_flew',{bank:esc(B.name)}):tr('interface.loan_from_bank_repaid_early',{bank:esc(B.name)}),'good');after();renderBank();},
|
toast(B.equity?tr('interface.you_bought_out_bank_they_flew',{bank:esc(B.name)}):tr('interface.loan_from_bank_repaid_early',{bank:esc(B.name)}),'good');after();renderBank();},
|
||||||
leaseSwap:({a,b,src})=>{if(!S.pops[a]||!S.pops[b]||a===b)return;$('dash').hidden=true;UI.lmode='df';UI.dfSrc=['lease','build','cable'].includes(src)?src:isSub(a,b)?'cable':'build';UI.dfSys=lvl()>=3?'roadm':'lite';openLinkModal(a,b);},
|
leaseSwap:({a,b,src})=>{if(!S.pops[a]||!S.pops[b]||a===b)return;$('dash').hidden=true;UI.lmode='df';UI.dfSrc=['lease','build','cable'].includes(src)?src:isSub(a,b)?'cable':'build';UI.dfSys=glassLvl()>=3?'roadm':'lite';openLinkModal(a,b);},
|
||||||
dashLink:({id})=>{$('dash').hidden=true;selectLink(id);focusLink(id);},
|
dashLink:({id})=>{$('dash').hidden=true;selectLink(id);focusLink(id);},
|
||||||
mapSet:({v})=>{if(!['auto','2d'].includes(v))return;mapGl(v==='auto');refreshSettings();},
|
mapSet:({v})=>{if(!['auto','2d'].includes(v))return;mapGl(v==='auto');refreshSettings();},
|
||||||
animSet:({v})=>{if(!['auto','on','off'].includes(v))return;UI.anim=v;try{localStorage.setItem('sot-anim',v);}catch(e){}applyAnim();refreshSettings();},
|
animSet:({v})=>{if(!['auto','on','off'].includes(v))return;UI.anim=v;try{localStorage.setItem('sot-anim',v);}catch(e){}applyAnim();refreshSettings();},
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ Object.assign(ACT,{
|
||||||
share:()=>shareModal(),
|
share:()=>shareModal(),
|
||||||
shareDl:()=>shareFile(f=>{if(!f)return;const a=document.createElement('a');a.href=URL.createObjectURL(f);a.download=f.name;document.body.appendChild(a);a.click();setTimeout(()=>{URL.revokeObjectURL(a.href);a.remove();},1000);track('share_download');}),
|
shareDl:()=>shareFile(f=>{if(!f)return;const a=document.createElement('a');a.href=URL.createObjectURL(f);a.download=f.name;document.body.appendChild(a);a.click();setTimeout(()=>{URL.revokeObjectURL(a.href);a.remove();},1000);track('share_download');}),
|
||||||
shareGo:()=>shareFile(f=>{const d={title:'Series of Tubes',text:tr('route_script_and_tools.name_as_asn_tier_peak_peak',{name:S.name,asn:S.asn,tier:tierLabel(),peak:fmtG(S.stats.peak||0)}),url:'https://seriesoftub.es/'};try{if(f&&navigator.canShare&&navigator.canShare({files:[f]}))d.files=[f];navigator.share(d).then(()=>track('share_done')).catch(()=>{});}catch(e){}}),
|
shareGo:()=>shareFile(f=>{const d={title:'Series of Tubes',text:tr('route_script_and_tools.name_as_asn_tier_peak_peak',{name:S.name,asn:S.asn,tier:tierLabel(),peak:fmtG(S.stats.peak||0)}),url:'https://seriesoftub.es/'};try{if(f&&navigator.canShare&&navigator.canShare({files:[f]}))d.files=[f];navigator.share(d).then(()=>track('share_done')).catch(()=>{});}catch(e){}}),
|
||||||
confGo:({key})=>{S.confReg=S.confReg||{};if(S.confReg[key])return;const cf=upcomingConfs(75).find(x=>x.key===key);if(!cf||cf.day<=S.day||(cf.cap&&lvl()<CAP_LV))return;if(!spend(confCost(cf)))return;S.confReg[key]=true;toast(tr('route_script_and_tools.registered_flights_booked_badge'),'good');after();},
|
confGo:({key})=>{S.confReg=S.confReg||{};if(S.confReg[key])return;const cf=upcomingConfs(75).find(x=>x.key===key);if(!cf||cf.day<=S.day||(cf.cap&&glassLvl()<CAP_LV))return;if(!spend(confCost(cf)))return;S.confReg[key]=true;toast(tr('route_script_and_tools.registered_flights_booked_badge'),'good');after();},
|
||||||
confSponsor:({key})=>{S.confReg=S.confReg||{};const was=S.confReg[key];if(was==='sp')return;const cf=upcomingConfs(75).find(x=>x.key===key);if(!cf||cf.day<=S.day||!confSp(cf))return;if(!spend(CONF_SP-(was?CONF_COST:0)))return;S.confReg[key]='sp';toast(tr('conferences.you_are_sponsoring_conf_your_logo',{conf:esc(cf.n),region:esc(REG[CITY[cf.c].reg])}),'good');sfx('coin');after();},
|
confSponsor:({key})=>{S.confReg=S.confReg||{};const was=S.confReg[key];if(was==='sp')return;const cf=upcomingConfs(75).find(x=>x.key===key);if(!cf||cf.day<=S.day||!confSp(cf))return;if(!spend(CONF_SP-(was?CONF_COST:0)))return;S.confReg[key]='sp';toast(tr('conferences.you_are_sponsoring_conf_your_logo',{conf:esc(cf.n),region:esc(REG[CITY[cf.c].reg])}),'good');sfx('coin');after();},
|
||||||
tutSkip:()=>{S.tut=null;try{localStorage.setItem('sot-tut','1');}catch(e){}renderCoach();},
|
tutSkip:()=>{S.tut=null;try{localStorage.setItem('sot-tut','1');}catch(e){}renderCoach();},
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -7,5 +7,6 @@ Object.assign(ACT,{
|
||||||
S.seatOff=null;S.stats.seats=(S.stats.seats||0)+1;UI.sel={type:'link',id};
|
S.seatOff=null;S.stats.seats=(S.stats.seats||0)+1;UI.sel={type:'link',id};
|
||||||
toast(tr('specialist.you_own_n_fiber_pairs_on',{n,name:esc(o.name),a:CITY[o.a].name,b:CITY[o.b].name,d:days}),'goal');sfx('build');after();},
|
toast(tr('specialist.you_own_n_fiber_pairs_on',{n,name:esc(o.name),a:CITY[o.a].name,b:CITY[o.b].name,d:days}),'goal');sfx('build');after();},
|
||||||
seatNo:()=>{S.seatOff=null;after();},
|
seatNo:()=>{S.seatOff=null;after();},
|
||||||
charter:({k})=>{if(!own(CHARTERS,k)||S.chartSet||S.scn||S.mode!=='normal')return;S.charter=k;S.chartSet=true;toast(tr('specialist.charter_signed_name',{name:tr(CHARTERS[k].n)}),'good');after();},
|
charter:({k})=>{if(!own(CHARTERS,k)||S.chartSet||S.scn||S.mode!=='normal')return;S.charter=k;S.chartSet=true;if($('modal').className==='charter')closeModal();
|
||||||
|
toast(tr('specialist.charter_signed_name',{name:tr(CHARTERS[k].n)}),'good');if(UI.tutLater){UI.tutLater=false;tutorialStart();}after();},
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ Object.assign(ACT,{
|
||||||
dfMode:({m})=>{UI.lmode=m;if(UI.pending)openLinkModal(UI.pending.a,UI.pending.b);},
|
dfMode:({m})=>{UI.lmode=m;if(UI.pending)openLinkModal(UI.pending.a,UI.pending.b);},
|
||||||
seaPackage:({k})=>{const p=UI.pending;if(!own(SUB_UPGRADES,k)||!p)return;const km=seaQuote(p.a,p.b,own(SEA_DESIGNS,UI.seaDesign)?UI.seaDesign:'standard').km,up=seaUps(km);
|
seaPackage:({k})=>{const p=UI.pending;if(!own(SUB_UPGRADES,k)||!p)return;const km=seaQuote(p.a,p.b,own(SEA_DESIGNS,UI.seaDesign)?UI.seaDesign:'standard').km,up=seaUps(km);
|
||||||
if(!up[k]&&!subHelps(km,k,up[subOther(k)]))return;UI.seaterminal=up.terminal;UI.seaengineering=up.engineering;UI['sea'+k]=!up[k];openLinkModal(p.a,p.b);},
|
if(!up[k]&&!subHelps(km,k,up[subOther(k)]))return;UI.seaterminal=up.terminal;UI.seaengineering=up.engineering;UI['sea'+k]=!up[k];openLinkModal(p.a,p.b);},
|
||||||
subUpgrade:({id,k})=>{const l=S.links.find(l=>l.id===id);if(!l||l.kind!=='df'||!l.own||!l.sub||l.seat||!own(SUB_UPGRADES,k)||lvl()<4||l['sub'+k]!==undefined||!subHelps(l.km,k,l['sub'+subOther(k)]!==undefined))return;if(!spend(subUpgradeCost(l,k)))return;l.paid=(l.paid>0?l.paid:ownCabCost(l.km))+subUpgradeCost(l,k);l['sub'+k]=Math.max(S.day,l.ready||0)+leadDays(SUB_UPGRADES[k].days);after();},
|
subUpgrade:({id,k})=>{const l=S.links.find(l=>l.id===id);if(!l||l.kind!=='df'||!l.own||!l.sub||l.seat||!own(SUB_UPGRADES,k)||glassLvl()<4||l['sub'+k]!==undefined||!subHelps(l.km,k,l['sub'+subOther(k)]!==undefined))return;if(!spend(subUpgradeCost(l,k)))return;l.paid=(l.paid>0?l.paid:ownCabCost(l.km))+subUpgradeCost(l,k);l['sub'+k]=Math.max(S.day,l.ready||0)+leadDays(SUB_UPGRADES[k].days);after();},
|
||||||
seaDesign:({v})=>{if(!own(SEA_DESIGNS,v))return;UI.seaDesign=v;if(UI.pending)openLinkModal(UI.pending.a,UI.pending.b);},
|
seaDesign:({v})=>{if(!own(SEA_DESIGNS,v))return;UI.seaDesign=v;if(UI.pending)openLinkModal(UI.pending.a,UI.pending.b);},
|
||||||
ownCab:()=>{UI.lmode='df';UI.dfSrc='cable';UI.seaDesign='standard';UI.seaterminal=UI.seaengineering=false;if(UI.pending)openLinkModal(UI.pending.a,UI.pending.b);},
|
ownCab:()=>{UI.lmode='df';UI.dfSrc='cable';UI.seaDesign='standard';UI.seaterminal=UI.seaengineering=false;if(UI.pending)openLinkModal(UI.pending.a,UI.pending.b);},
|
||||||
dfSrc:({v})=>{UI.dfSrc=v;if(UI.pending)openLinkModal(UI.pending.a,UI.pending.b);},
|
dfSrc:({v})=>{UI.dfSrc=v;if(UI.pending)openLinkModal(UI.pending.a,UI.pending.b);},
|
||||||
|
|
@ -15,7 +15,7 @@ Object.assign(ACT,{
|
||||||
S.stats.ownCab=(S.stats.ownCab||0)+1;UI.dfSrc='lease';closeModal();UI.sel={type:'link',id};
|
S.stats.ownCab=(S.stats.ownCab||0)+1;UI.dfSrc='lease';closeModal();UI.sel={type:'link',id};
|
||||||
toast(tr('fiber_and_hardware.the_ship_sets_sail_name_your',{ship,name:cname,km:km.toLocaleString(),a:CITY[a].name,b:CITY[b].name,n:days}),'goal');sfx('build');after();},
|
toast(tr('fiber_and_hardware.the_ship_sets_sail_name_your',{ship,name:cname,km:km.toLocaleString(),a:CITY[a].name,b:CITY[b].name,n:days}),'goal');sfx('build');after();},
|
||||||
orderDf:()=>{const p=UI.pending;if(!p||noTalk(p.a,p.b))return;const {a,b}=p;if(!dfAllowed(a,b)||!linkFromOk(a)||!linkToOk(b))return;const sc=isSub(a,b)?subDfCable(a,b):null,km=sc?sc.km:kmBetween(a,b);
|
orderDf:()=>{const p=UI.pending;if(!p||noTalk(p.a,p.b))return;const {a,b}=p;if(!dfAllowed(a,b)||!linkFromOk(a)||!linkToOk(b))return;const sc=isSub(a,b)?subDfCable(a,b):null,km=sc?sc.km:kmBetween(a,b);
|
||||||
const own=UI.dfSrc==='build'&&!sc,sys=DF_SYS[UI.dfSys]&&techOk('sys',UI.dfSys,DF_SYS[UI.dfSys].lvl)?UI.dfSys:'lite';if(lvl()<2)return;
|
const own=UI.dfSrc==='build'&&!sc,sys=DF_SYS[UI.dfSys]&&techOk('sys',UI.dfSys,DF_SYS[UI.dfSys].lvl)?UI.dfSys:'lite';if(glassLvl()<2)return;
|
||||||
const up=(own?digCost(km):0)+sysCost(sys)+ampCount(km)*AMP_COST+(S.pops[b]?0:popCost(b));if(!spend(up))return;
|
const up=(own?digCost(km):0)+sysCost(sys)+ampCount(km)*AMP_COST+(S.pops[b]?0:popCost(b));if(!spend(up))return;
|
||||||
if(!S.pops[b]){S.pops[b]={day:S.day,bb:null,boost:0,down:0,routers:1,gen:false,rgen:0};popStdApply(b);}
|
if(!S.pops[b]){S.pops[b]={day:S.day,bb:null,boost:0,down:0,routers:1,gen:false,rgen:0};popStdApply(b);}
|
||||||
const sib=pairLinks(a,b).filter(l=>l.kind!=='vxc'),id=uid();
|
const sib=pairLinks(a,b).filter(l=>l.kind!=='vxc'),id=uid();
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,6 @@ function morphKids(a,b){let x=a.firstChild,y=b.firstChild;
|
||||||
else if(x.nodeValue!==y.nodeValue)x.nodeValue=y.nodeValue;
|
else if(x.nodeValue!==y.nodeValue)x.nodeValue=y.nodeValue;
|
||||||
x=x&&x.nextSibling;y=ny;}
|
x=x&&x.nextSibling;y=ny;}
|
||||||
while(x){const nx=x.nextSibling;a.removeChild(x);x=nx;}}
|
while(x){const nx=x.nextSibling;a.removeChild(x);x=nx;}}
|
||||||
function renderAll(){if(isTablet()&&!UI.sel)UI.leftOpen=false;renderHUD();renderLeft();renderPanel();renderHint();renderMega();renderCoach();pzRender();routingRefresh();}
|
function renderAll(){if(isTablet()&&!UI.sel)UI.leftOpen=false;renderHUD();renderLeft();renderPanel();renderHint();renderMega();renderCoach();pzRender();routingRefresh();if(S)charterAsk();}
|
||||||
function renderMega(){const el=$('mega');if(!el)return;const on=!!(S&&S.ev&&S.ev.php>S.day);if(el.hidden===!on)return;el.hidden=!on;}
|
function renderMega(){const el=$('mega');if(!el)return;const on=!!(S&&S.ev&&S.ev.php>S.day);if(el.hidden===!on)return;el.hidden=!on;}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,12 +2,12 @@
|
||||||
const isPhone=()=>innerWidth<=760||(innerHeight<=500&&matchMedia('(pointer:coarse)').matches);
|
const isPhone=()=>innerWidth<=760||(innerHeight<=500&&matchMedia('(pointer:coarse)').matches);
|
||||||
const SPEEDS=[0.5,1,2,4,8];
|
const SPEEDS=[0.5,1,2,4,8];
|
||||||
function renderTabbar(){const tb=$('tabbar');if(!tb||(pressing&&UI.ticking))return;if(!isPhone()||!S||!UI.started||pzOn()){tb.hidden=true;document.body.classList.toggle('sheet-open',pzOn()&&isPhone()&&!!UI.sel);return;}tb.hidden=false;
|
function renderTabbar(){const tb=$('tabbar');if(!tb||(pressing&&UI.ticking))return;if(!isPhone()||!S||!UI.started||pzOn()){tb.hidden=true;document.body.classList.toggle('sheet-open',pzOn()&&isPhone()&&!!UI.sel);return;}tb.hidden=false;
|
||||||
const open=UI.leftOpen&&!UI.sel,cur=UI.left||'goals',ndone=GOALS.filter(g=>S.done[g.id]!==undefined).length;
|
const open=UI.leftOpen&&!UI.sel,cur=UI.left||'goals',G=goals(),ndone=G.filter(g=>S.done[g.id]!==undefined).length;
|
||||||
const tab=(k,ic,l,cnt,red)=>`<button class="${open&&cur===k?'on':''}" data-act="phoneTab" data-args='{"t":"${k}"}' aria-label="${esc(l)}"><span class="ic" aria-hidden="true">${ic}</span>${esc(l)}${cnt?(cnt===' '?`<span class="cnt red dot"></span>`:`<span class="cnt${red?' red':''}">${cnt}</span>`):''}</button>`;
|
const tab=(k,ic,l,cnt,red)=>`<button class="${open&&cur===k?'on':''}" data-act="phoneTab" data-args='{"t":"${k}"}' aria-label="${esc(l)}"><span class="ic" aria-hidden="true">${ic}</span>${esc(l)}${cnt?(cnt===' '?`<span class="cnt red dot"></span>`:`<span class="cnt${red?' red':''}">${cnt}</span>`):''}</button>`;
|
||||||
// A locked clock's two buttons come from whatever locked it (HOOKS.tabbar), in the same two slots, so the tabs stay put.
|
// A locked clock's two buttons come from whatever locked it (HOOKS.tabbar), in the same two slots, so the tabs stay put.
|
||||||
const h=(rule('clock')?UI.clockLocked&&HOOKS.tabbar?HOOKS.tabbar():`<button class="play${UI.speed?'':' paused'}" data-act="phonePlay" aria-label="${UI.speed?tr('common.pause'):tr('common.play')}"><span class="ic" aria-hidden="true">${UI.speed?'❚❚':'▶'}</span>${UI.speed?tr('common.pause'):tr('common.play')}</button>`+
|
const h=(rule('clock')?UI.clockLocked&&HOOKS.tabbar?HOOKS.tabbar():`<button class="play${UI.speed?'':' paused'}" data-act="phonePlay" aria-label="${UI.speed?tr('common.pause'):tr('common.play')}"><span class="ic" aria-hidden="true">${UI.speed?'❚❚':'▶'}</span>${UI.speed?tr('common.pause'):tr('common.play')}</button>`+
|
||||||
`<button data-act="phoneSpeed" aria-label="${tr('common.game_speed')}"><span class="ic" aria-hidden="true">${UI.speed===0.5?'½':(UI.lastSpeed||UI.speed||1)}×</span>${tr('common.speed')}</button>`:'')+
|
`<button data-act="phoneSpeed" aria-label="${tr('common.game_speed')}"><span class="ic" aria-hidden="true">${UI.speed===0.5?'½':(UI.lastSpeed||UI.speed||1)}×</span>${tr('common.speed')}</button>`:'')+
|
||||||
(()=>{const P=scnProg();return tab('goals','🎯',tr('common.goals'),P&&!S.scn.done&&!S.scn.failed?`${Math.round(P.f*100)}%`:`${ndone}/${GOALS.length}`);})()+(()=>{const u=custStats().unhappy;return u?tab('deals','💼',tr('common.deals'),u,true):tab('deals','💼',tr('common.deals'),S.offers.length||'');})()+tab('noc','🚨','NOC',S.inc.length?' ':'',true)+tab('nets','🌐',tr('common.networks'),'');
|
(()=>{const P=scnProg();return tab('goals','🎯',tr('common.goals'),P&&!S.scn.done&&!S.scn.failed?`${Math.round(P.f*100)}%`:`${ndone}/${G.length}`);})()+(()=>{const u=custStats().unhappy;return u?tab('deals','💼',tr('common.deals'),u,true):tab('deals','💼',tr('common.deals'),S.offers.length||'');})()+tab('noc','🚨','NOC',S.inc.length?' ':'',true)+tab('nets','🌐',tr('common.networks'),'');
|
||||||
if(h!==UI._tb){UI._tb=h;tb.innerHTML=h;}
|
if(h!==UI._tb){UI._tb=h;tb.innerHTML=h;}
|
||||||
document.body.classList.toggle('sheet-open',!!(UI.sel||UI.leftOpen));}
|
document.body.classList.toggle('sheet-open',!!(UI.sel||UI.leftOpen));}
|
||||||
function haptic(ms){if(UI.muted)return;try{navigator.vibrate&&navigator.vibrate(ms||12);}catch(e){}}
|
function haptic(ms){if(UI.muted)return;try{navigator.vibrate&&navigator.vibrate(ms||12);}catch(e){}}
|
||||||
|
|
|
||||||
|
|
@ -31,14 +31,14 @@ function renderLeft(){checkLayer();
|
||||||
const tab=isTablet(),L=$('left');L.classList.toggle('closed',tab?(!!UI.sel&&!UI.leftOpen):!UI.leftOpen);const tg=$('leftToggle');if(tg&&innerWidth>760)tg.hidden=!(tab&&L.classList.contains('closed'));
|
const tab=isTablet(),L=$('left');L.classList.toggle('closed',tab?(!!UI.sel&&!UI.leftOpen):!UI.leftOpen);const tg=$('leftToggle');if(tg&&innerWidth>760)tg.hidden=!(tab&&L.classList.contains('closed'));
|
||||||
renderTabbar();
|
renderTabbar();
|
||||||
if(!S||pzOn()){L.hidden=true;return;}L.hidden=false;
|
if(!S||pzOn()){L.hidden=true;return;}L.hidden=false;
|
||||||
const ndone=GOALS.filter(g=>S.done[g.id]!==undefined).length;
|
const G=goals(),ndone=G.filter(g=>S.done[g.id]!==undefined).length;
|
||||||
const tabs=[['goals',`<span class="tl">${tr('common.goals')}</span><span class="cnt">${ndone}/${GOALS.length}</span>`],['deals',`<span class="tl">${tr('common.deals')}</span>${S.offers.length+clHags()?`<span class="cnt">${S.offers.length+clHags()}</span>`:''}`],['noc',`<span class="tl">NOC</span>${S.inc.length?`<span class="cnt red dot" aria-hidden="true"></span>`:''}`],['nets',`<span class="tl">${tr('common.networks')}</span>`]];
|
const tabs=[['goals',`<span class="tl">${tr('common.goals')}</span><span class="cnt">${ndone}/${G.length}</span>`],['deals',`<span class="tl">${tr('common.deals')}</span>${S.offers.length+clHags()?`<span class="cnt">${S.offers.length+clHags()}</span>`:''}`],['noc',`<span class="tl">NOC</span>${S.inc.length?`<span class="cnt red dot" aria-hidden="true"></span>`:''}`],['nets',`<span class="tl">${tr('common.networks')}</span>`]];
|
||||||
$('leftTabs').innerHTML=tabs.map(([k,l])=>`<button class="${UI.left===k?'on':''}" data-act="leftTab" data-args='{"t":"${k}"}'>${l}</button>`).join('')+(innerWidth<760?`<button data-act="toggleLeft" style="margin-left:auto" aria-label="${tr('common.close')}">×</button>`:'');
|
$('leftTabs').innerHTML=tabs.map(([k,l])=>`<button class="${UI.left===k?'on':''}" data-act="leftTab" data-args='{"t":"${k}"}'>${l}</button>`).join('')+(innerWidth<760?`<button data-act="toggleLeft" style="margin-left:auto" aria-label="${tr('common.close')}">×</button>`:'');
|
||||||
let h='';
|
let h='';
|
||||||
if(UI.left==='goals'){
|
if(UI.left==='goals'){
|
||||||
h+=charterCard()+scnCard()+lvlCard()+t1Card();
|
h+=charterCard()+scnCard()+lvlCard()+t1Card();
|
||||||
const cur=GOALS.find(g=>S.done[g.id]===undefined);
|
const cur=G.find(g=>S.done[g.id]===undefined);
|
||||||
h+=GOALS.map(g=>{const d=S.done[g.id]!==undefined,c=g===cur;return `<div class="goal ${d?'done':''} ${c?'cur':''}"><div class="ck">${d?'✓':''}</div><div><div class="gt">${esc(g.t)}</div>${c||!d?`<div class="gd">${esc(g.d)}</div>`:''}${!d&&g.r?`<div class="gr">${tr('hud_and_panels.reward_cash',{cash:fmt$(g.r)})}</div>`:''}</div></div>`;}).join('');
|
h+=G.map(g=>{const d=S.done[g.id]!==undefined,c=g===cur;return `<div class="goal ${d?'done':''} ${c?'cur':''}"><div class="ck">${d?'✓':''}</div><div><div class="gt">${esc(g.t)}</div>${c||!d?`<div class="gd">${esc(g.d)}</div>`:''}${!d&&g.r?`<div class="gr">${tr('hud_and_panels.reward_cash',{cash:fmt$(g.r)})}</div>`:''}</div></div>`;}).join('');
|
||||||
h+=badgeGrid();
|
h+=badgeGrid();
|
||||||
}else if(UI.left==='deals'){
|
}else if(UI.left==='deals'){
|
||||||
{const st=custStats();if(st.n)h+=`<div class="row" style="margin-bottom:8px"><div class="grow"><div class="nm">${tr('common.your_customers')} <span class="meta">${st.n} · ${tr('hud_and_panels.happiness_p',{p:Math.round(st.avg)})}</span></div><div class="bar ${moodCls(st.avg)}"><i style="width:${st.avg}%"></i></div>${st.unhappy?`<div class="why">${trn('hud_and_panels.n_unhappy_customer_price_mo_at',st.unhappy,{price:fmt$(st.risk)})}</div>`:''}</div>${btn(st.unhappy?tr('common.see_who'):tr('common.all_customers'),'custOpen',{sad:st.unhappy?1:0},st.unhappy?'pink sm':'ghost sm')}</div>`;}
|
{const st=custStats();if(st.n)h+=`<div class="row" style="margin-bottom:8px"><div class="grow"><div class="nm">${tr('common.your_customers')} <span class="meta">${st.n} · ${tr('hud_and_panels.happiness_p',{p:Math.round(st.avg)})}</span></div><div class="bar ${moodCls(st.avg)}"><i style="width:${st.avg}%"></i></div>${st.unhappy?`<div class="why">${trn('hud_and_panels.n_unhappy_customer_price_mo_at',st.unhappy,{price:fmt$(st.risk)})}</div>`:''}</div>${btn(st.unhappy?tr('common.see_who'):tr('common.all_customers'),'custOpen',{sad:st.unhappy?1:0},st.unhappy?'pink sm':'ghost sm')}</div>`;}
|
||||||
|
|
|
||||||
|
|
@ -130,7 +130,7 @@ function dfPanel(l){
|
||||||
const md=optMode(k,l),cc=chCost(l,k),sp=spareN(k);
|
const md=optMode(k,l),cc=chCost(l,k),sp=spareN(k);
|
||||||
h+=`<div class="row"><div class="grow"><div class="nm">${O.n} <span class="meta">${optModes(k,l).map(([g,r])=>tr('link_panels.g_to_km_km',{g:fmtG(g),km:r.toLocaleString()})).join(' · ')}</span></div><div class="meta">${esc(O.blurb)}${n?` · <b>${tr('link_panels.n_lit',{n})}</b>`:''}${sp?` · ${trn('link_panels.n_spare_on_the_shelf',sp)}`:''}${(np=>np>1?` · ${trn('link_panels.takes_n_router_ports_per_end',np)}`:'')(Math.max(chPorts(k,l.a),chPorts(k,l.b)))}</div>${md&&!md.full?`<div class="meta">⚠️ ${tr('link_panels.runs_at_g_per_channel_on',{g:fmtG(md.g)})} ${(!l.sub||l.seat)&®enNeed(k,l)>(l.regen|0)?trn('link_panels.n_regen_site_would_bring_it',regenNeed(k,l),{g:fmtG(O.g)}):''}</div>`:''}${why?`<div class="why">${esc(why)}</div>`:''}${!techOk('opt',k,O.lvl)&&demoCan(O.lvl)?`<div class="btns">${demoBtn('opt',k,O.lvl,'','ghost sm')}</div>`:''}${opticCountControl(l,k,n)}</div>${n?btn('−','rmCh',{id:l.id,o:k},'ghost sm'):''}${btn(sp?`+ <small>${cc?tr('link_panels.spare_price',{price:fmt$(cc)}):tr('common.spare')}</small>`:`+ <small>${fmt$(cc)}</small>`,'addCh',{id:l.id,o:k},'sm',!!why||S.cash<cc)}</div>`;}
|
h+=`<div class="row"><div class="grow"><div class="nm">${O.n} <span class="meta">${optModes(k,l).map(([g,r])=>tr('link_panels.g_to_km_km',{g:fmtG(g),km:r.toLocaleString()})).join(' · ')}</span></div><div class="meta">${esc(O.blurb)}${n?` · <b>${tr('link_panels.n_lit',{n})}</b>`:''}${sp?` · ${trn('link_panels.n_spare_on_the_shelf',sp)}`:''}${(np=>np>1?` · ${trn('link_panels.takes_n_router_ports_per_end',np)}`:'')(Math.max(chPorts(k,l.a),chPorts(k,l.b)))}</div>${md&&!md.full?`<div class="meta">⚠️ ${tr('link_panels.runs_at_g_per_channel_on',{g:fmtG(md.g)})} ${(!l.sub||l.seat)&®enNeed(k,l)>(l.regen|0)?trn('link_panels.n_regen_site_would_bring_it',regenNeed(k,l),{g:fmtG(O.g)}):''}</div>`:''}${why?`<div class="why">${esc(why)}</div>`:''}${!techOk('opt',k,O.lvl)&&demoCan(O.lvl)?`<div class="btns">${demoBtn('opt',k,O.lvl,'','ghost sm')}</div>`:''}${opticCountControl(l,k,n)}</div>${n?btn('−','rmCh',{id:l.id,o:k},'ghost sm'):''}${btn(sp?`+ <small>${cc?tr('link_panels.spare_price',{price:fmt$(cc)}):tr('common.spare')}</small>`:`+ <small>${fmt$(cc)}</small>`,'addCh',{id:l.id,o:k},'sm',!!why||S.cash<cc)}</div>`;}
|
||||||
{const st=Object.keys(OPT).filter(k=>spareN(k)>0);h+=`<p class="note">${tr('link_panels.unplugged_optics_go_on_the_spares')}</p>`;
|
{const st=Object.keys(OPT).filter(k=>spareN(k)>0);h+=`<p class="note">${tr('link_panels.unplugged_optics_go_on_the_spares')}</p>`;
|
||||||
{const used=[...new Set(l.ch||[])].filter(k=>OPT[k]&&OPT[k].lvl<=lvl());if(used.length)h+=`<div class="btns">${used.map(k=>btn(tr('link_panels.stock_a_spare_optic_price',{optic:OPT[k].n,price:fmt$(optCost(k))}),'buySpare',{o:k},'ghost sm',S.cash<optCost(k)||spareN(k)>=64)).join('')}</div><p class="meta">${tr('link_panels.spares_bought_now_are_already_paid')}</p>`;}if(st.length)h+=`<h4 class="sub4">${tr('common.spares_shelf')}</h4>`+st.map(k=>`<div class="row"><div class="grow"><div class="nm">${spareN(k)} × ${OPT[k].n}</div></div>${btn(tr('link_panels.sell_one_price',{price:fmt$(spareValue(k))}),'sellSpare',{o:k},'ghost sm')}</div>`).join('');}
|
{const used=[...new Set(l.ch||[])].filter(k=>OPT[k]&&OPT[k].lvl<=glassLvl());if(used.length)h+=`<div class="btns">${used.map(k=>btn(tr('link_panels.stock_a_spare_optic_price',{optic:OPT[k].n,price:fmt$(optCost(k))}),'buySpare',{o:k},'ghost sm',S.cash<optCost(k)||spareN(k)>=64)).join('')}</div><p class="meta">${tr('link_panels.spares_bought_now_are_already_paid')}</p>`;}if(st.length)h+=`<h4 class="sub4">${tr('common.spares_shelf')}</h4>`+st.map(k=>`<div class="row"><div class="grow"><div class="nm">${spareN(k)} × ${OPT[k].n}</div></div>${btn(tr('link_panels.sell_one_price',{price:fmt$(spareValue(k))}),'sellSpare',{o:k},'ghost sm')}</div>`).join('');}
|
||||||
const rg=l.regen|0,rgAdd=REGEN_COST+Math.round((l.ch||[]).reduce((a,c)=>a+optCost(c),0)*REGEN_CH);
|
const rg=l.regen|0,rgAdd=REGEN_COST+Math.round((l.ch||[]).reduce((a,c)=>a+optCost(c),0)*REGEN_CH);
|
||||||
h+=`</section><section><h3>${tr('common.line_system')}</h3><div class="kv"><span>${esc(sysD.n)}</span><b>${tr('link_panels.n_amplifiers',{n:amps})}</b></div>
|
h+=`</section><section><h3>${tr('common.line_system')}</h3><div class="kv"><span>${esc(sysD.n)}</span><b>${tr('link_panels.n_amplifiers',{n:amps})}</b></div>
|
||||||
<div class="kv"><span>${tr('common.regen_sites')}</span><b>${rg?tr('link_panels.n_optical_spans_of_km_km',{n:rg,km:spanKm(l).toLocaleString()}):tr('common.none')}</b></div><p class="note">${tr('link_panels.a_regen_site_turns_the_light',{price:fmt$(REGEN_MO)})}</p>${l.seat?`<p class="note">${tr('broker.seat_regen_note')}</p>`:''}${l.sub&&l.own&&!l.seat?`<p class="note">${tr('link_panels.no_regen_sites_in_the_middle')}</p>`:`<div class="btns">${rg<REGEN_MAX?btn(tr('link_panels.regen_site_price',{price:fmt$(rgAdd)}),'regen',{id:l.id,d:1},'sm',S.cash<rgAdd):''}${rg?btn(tr('common.regen_site'),'regen',{id:l.id,d:-1},'ghost sm'):''}</div>`}<p class="note">${esc(sysD.blurb)}</p><div class="btns">${(()=>{const t=sysNext(l);if(!t)return '';const T=DF_SYS[t],c=sysUpCost(l);return !techOk('sys',t,T.lvl)?demoBtn('sys',t,T.lvl,tr('link_panels.sys_level_n',{sys:T.n,n:T.lvl}),'sm'):btn(tr('link_panels.upgrade_to_sys_price',{sys:T.n,price:fmt$(c)}),'upSys',{id:l.id},'sm',S.cash<c);})()}${pairBtn(l)}${btn(l.spares?tr('link_panels.spares_kit_on'):tr('link_panels.keep_a_spares_kit_price_mo',{price:fmt$(Math.round(150+(l.ch||[]).length*80))}),'spares',{id:l.id},l.spares?'green sm':'sm')}</div><p class="note">${tr('link_panels.spare_optics_and_amplifier_cards_on')}</p></section>`;
|
<div class="kv"><span>${tr('common.regen_sites')}</span><b>${rg?tr('link_panels.n_optical_spans_of_km_km',{n:rg,km:spanKm(l).toLocaleString()}):tr('common.none')}</b></div><p class="note">${tr('link_panels.a_regen_site_turns_the_light',{price:fmt$(REGEN_MO)})}</p>${l.seat?`<p class="note">${tr('broker.seat_regen_note')}</p>`:''}${l.sub&&l.own&&!l.seat?`<p class="note">${tr('link_panels.no_regen_sites_in_the_middle')}</p>`:`<div class="btns">${rg<REGEN_MAX?btn(tr('link_panels.regen_site_price',{price:fmt$(rgAdd)}),'regen',{id:l.id,d:1},'sm',S.cash<rgAdd):''}${rg?btn(tr('common.regen_site'),'regen',{id:l.id,d:-1},'ghost sm'):''}</div>`}<p class="note">${esc(sysD.blurb)}</p><div class="btns">${(()=>{const t=sysNext(l);if(!t)return '';const T=DF_SYS[t],c=sysUpCost(l);return !techOk('sys',t,T.lvl)?demoBtn('sys',t,T.lvl,tr('link_panels.sys_level_n',{sys:T.n,n:T.lvl}),'sm'):btn(tr('link_panels.upgrade_to_sys_price',{sys:T.n,price:fmt$(c)}),'upSys',{id:l.id},'sm',S.cash<c);})()}${pairBtn(l)}${btn(l.spares?tr('link_panels.spares_kit_on'):tr('link_panels.keep_a_spares_kit_price_mo',{price:fmt$(Math.round(150+(l.ch||[]).length*80))}),'spares',{id:l.id},l.spares?'green sm':'sm')}</div><p class="note">${tr('link_panels.spare_optics_and_amplifier_cards_on')}</p></section>`;
|
||||||
|
|
|
||||||
|
|
@ -28,4 +28,4 @@ function lvlItems(){const lv=S.lvl||1,pk=S.stats.peak||0,pops=Object.keys(S.pops
|
||||||
// Lost Tier 1 status explains itself where you look for it, not only in a toast you may have missed (#73).
|
// Lost Tier 1 status explains itself where you look for it, not only in a toast you may have missed (#73).
|
||||||
const t1Note=()=>S.won&&!isTier1()?`<p class="why">${tr('progress.not_tier_1_right_now_why',{why:esc(t1Why())})}</p>`:'';
|
const t1Note=()=>S.won&&!isTier1()?`<p class="why">${tr('progress.not_tier_1_right_now_why',{why:esc(t1Why())})}</p>`:'';
|
||||||
function lvlCard(){const lv=S.lvl||1,nx=LEVELS[lv];
|
function lvlCard(){const lv=S.lvl||1,nx=LEVELS[lv];
|
||||||
return `<div class="pcard lv"><div class="eyebrow">${tr('progress.customer_level_lv_of_max',{lv,max:LEVELS.length})}</div><div class="pt">${esc(LEVELS[lv-1].n)}</div><div class="meta"><i>${esc(LEVELS[lv-1].q)}</i></div>${t1Note()}${nx?`<div class="meta">${tr('progress.next_name_unlocks_what',{name:esc(nx.n),what:esc(lc1(nx.unlock))})}</div>${lvlItems().map(pRow).join('')}`:`<div class="meta">${tr('common.every_customer_type_is_unlocked_go')}</div>`}</div>`;}
|
return `<div class="pcard lv"><div class="eyebrow">${tr('progress.customer_level_lv_of_max',{lv,max:LEVELS.length})}</div><div class="pt">${esc(LEVELS[lv-1].n)}</div><div class="meta"><i>${esc(LEVELS[lv-1].q)}</i></div>${t1Note()}${nx?`<div class="meta">${tr('progress.next_name_unlocks_what',{name:esc(nx.n),what:esc(lc1(nx.unlock))})}</div>${broker()?`<div class="meta">🚢 ${tr('broker.your_glass_gear_is_already_yours')}</div>`:''}${lvlItems().map(pRow).join('')}`:`<div class="meta">${tr('common.every_customer_type_is_unlocked_go')}</div>`}</div>`;}
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,13 @@
|
||||||
/* Leased lines you could swap for your own glass: waves, fabric circuits and IRUs between two of your POPs,
|
/* Leased lines you could swap for your own glass: waves, fabric circuits and IRUs between two of your POPs,
|
||||||
priced against digging (land) or laying a cable (subsea), with enough optics to match what you lease today. */
|
priced against digging (land) or laying a cable (subsea), with enough optics to match what you lease today. */
|
||||||
function swapOptics(km,cap,sub,sys){for(let r=0;r<=(sub?0:REGEN_MAX);r++){const l={km,regen:r,sub};let b=null;
|
function swapOptics(km,cap,sub,sys){for(let r=0;r<=(sub?0:REGEN_MAX);r++){const l={km,regen:r,sub};let b=null;
|
||||||
for(const o in OPT){if(OPT[o].lvl>lvl()||sys==='lite'&&OPT[o].sys==='roadm')continue;const g=optG(o,l),c=optCost(o);if(g&&(!b||c/g<b.c/b.g))b={g,c};}
|
for(const o in OPT){if(OPT[o].lvl>glassLvl()||sys==='lite'&&OPT[o].sys==='roadm')continue;const g=optG(o,l),c=optCost(o);if(g&&(!b||c/g<b.c/b.g))b={g,c};}
|
||||||
if(b){const n=Math.ceil(cap/b.g);return {n,r,up:Math.round(n*b.c*(1+REGEN_CH*r))+r*REGEN_COST,mo:r*REGEN_MO};}}return null;}
|
if(b){const n=Math.ceil(cap/b.g);return {n,r,up:Math.round(n*b.c*(1+REGEN_CH*r))+r*REGEN_COST,mo:r*REGEN_MO};}}return null;}
|
||||||
const leaseCap=ls=>ls.reduce((s,l)=>s+(l.kind==='vxc'?VXC[l.vt].g:l.kind==='df'?(l.ch||[]).reduce((t,o)=>t+optG(o,l),0):LT[l.tier].g),0);
|
const leaseCap=ls=>ls.reduce((s,l)=>s+(l.kind==='vxc'?VXC[l.vt].g:l.kind==='df'?(l.ch||[]).reduce((t,o)=>t+optG(o,l),0):LT[l.tier].g),0);
|
||||||
const swapOpt=(k,up,omo,days,mo)=>{const save=mo-omo;return {k,up,omo,days,save,pay:save>0?Math.ceil(up/save):0};};
|
const swapOpt=(k,up,omo,days,mo)=>{const save=mo-omo;return {k,up,omo,days,save,pay:save>0?Math.ceil(up/save):0};};
|
||||||
// Lighting leased capacity on a fiber you already have (#72 review): needs free channels, and optics cost money.
|
// Lighting leased capacity on a fiber you already have (#72 review): needs free channels, and optics cost money.
|
||||||
function litOn(L,cap){const free=chMax(L)-(L.ch||[]).length-soldSlots(L);let b=null;
|
function litOn(L,cap){const free=chMax(L)-(L.ch||[]).length-soldSlots(L);let b=null;
|
||||||
for(const o in OPT){const O=OPT[o];if(O.lvl>lvl()||(O.sys==='roadm'&&!isRdm(L.sys))||[L.a,L.b].some(c=>S.pops[c]&&RG[S.pops[c].rgen||0].cls<O.rg))continue;const g=optG(o,L),c=chCost(L,o);if(g&&(!b||c/g<b.c/b.g))b={o,g,c};}
|
for(const o in OPT){const O=OPT[o];if(O.lvl>glassLvl()||(O.sys==='roadm'&&!isRdm(L.sys))||[L.a,L.b].some(c=>S.pops[c]&&RG[S.pops[c].rgen||0].cls<O.rg))continue;const g=optG(o,L),c=chCost(L,o);if(g&&(!b||c/g<b.c/b.g))b={o,g,c};}
|
||||||
if(!b)return {free,n:0,fits:false};const n=Math.ceil(cap/b.g);return {free,n,up:n*b.c,fits:n<=free};}
|
if(!b)return {free,n:0,fits:false};const n=Math.ceil(cap/b.g);return {free,n,up:n*b.c,fits:n<=free};}
|
||||||
function leaseSwaps(){const by={};
|
function leaseSwaps(){const by={};
|
||||||
for(const l of S.links){if(l.kind==='df'&&l.own||!S.pops[l.a]||!S.pops[l.b])continue;const k=[l.a,l.b].sort().join('|');(by[k]=by[k]||[]).push(l);}
|
for(const l of S.links){if(l.kind==='df'&&l.own||!S.pops[l.a]||!S.pops[l.b])continue;const k=[l.a,l.b].sort().join('|');(by[k]=by[k]||[]).push(l);}
|
||||||
|
|
@ -16,11 +16,11 @@ function leaseSwaps(){const by={};
|
||||||
// Waves and fabric circuits can also move onto a leased fiber pair: cheaper glass, but you buy the gear.
|
// Waves and fabric circuits can also move onto a leased fiber pair: cheaper glass, but you buy the gear.
|
||||||
const ws=ls.filter(l=>l.kind!=='df'),wmo=ws.reduce((s,l)=>s+(l.mo||0),0),sc=sub?subDfCable(a,b):null;x.iru=ls.find(l=>l.kind==='df');
|
const ws=ls.filter(l=>l.kind!=='df'),wmo=ws.reduce((s,l)=>s+(l.mo||0),0),sc=sub?subDfCable(a,b):null;x.iru=ls.find(l=>l.kind==='df');
|
||||||
if(ws.length&&x.iru){x.fit=litOn(x.iru,leaseCap(ws));if(x.fit.fits)x.lit=wmo;}
|
if(ws.length&&x.iru){x.fit=litOn(x.iru,leaseCap(ws));if(x.fit.fits)x.lit=wmo;}
|
||||||
else if(ws.length&&lvl()>=2&&(sub?sc:dfAllowed(a,b))){const km=sc?sc.km:kmBetween(a,b),sys=lvl()>=3?'roadm':'lite',wc=leaseCap(ws),op=swapOptics(km,wc,sub,sys);
|
else if(ws.length&&glassLvl()>=2&&(sub?sc:dfAllowed(a,b))){const km=sc?sc.km:kmBetween(a,b),sys=glassLvl()>=3?'roadm':'lite',wc=leaseCap(ws),op=swapOptics(km,wc,sub,sys);
|
||||||
if(op&&op.n<=DF_SYS[sys].max)x.opts.push(swapOpt('iru',DF_SYS[sys].cost+ampCount(km)*AMP_COST+op.up,dfLeaseMo(km)+ampCount(km)*AMP_MO+op.mo,leadDays(IRU_DAYS),wmo));}
|
if(op&&op.n<=DF_SYS[sys].max)x.opts.push(swapOpt('iru',DF_SYS[sys].cost+ampCount(km)*AMP_COST+op.up,dfLeaseMo(km)+ampCount(km)*AMP_MO+op.mo,leadDays(IRU_DAYS),wmo));}
|
||||||
// Dig on land, lay a cable between landing stations (even ones that share a landmass), or both.
|
// Dig on land, lay a cable between landing stations (even ones that share a landmass), or both.
|
||||||
const whys=[];for(const cab of [false,true]){if(cab?!seaCab(a,b):sub)continue;
|
const whys=[];for(const cab of [false,true]){if(cab?!seaCab(a,b):sub)continue;
|
||||||
const why=cab?ownCabWhy(a,b):!dfAllowed(a,b)?tr('lease_swaps.nobody_lets_you_dig_on_this'):lvl()<2?tr('lease_swaps.digging_your_own_fiber_unlocks_at'):'';
|
const why=cab?ownCabWhy(a,b):!dfAllowed(a,b)?tr('lease_swaps.nobody_lets_you_dig_on_this'):glassLvl()<2?tr('lease_swaps.digging_your_own_fiber_unlocks_at'):'';
|
||||||
if(why){whys.push(why);continue;}const km=cab?ownCabKm(a,b):kmBetween(a,b),op=swapOptics(km,cap,cab,'roadm');
|
if(why){whys.push(why);continue;}const km=cab?ownCabKm(a,b):kmBetween(a,b),op=swapOptics(km,cap,cab,'roadm');
|
||||||
if(!op){whys.push(tr('lease_swaps.no_optic_you_can_buy_reaches',{km:km.toLocaleString()}));continue;}
|
if(!op){whys.push(tr('lease_swaps.no_optic_you_can_buy_reaches',{km:km.toLocaleString()}));continue;}
|
||||||
x.opts.push(swapOpt(cab?'cab':'own',(cab?ownCabCost(km):digCost(km)+DF_SYS.roadm.cost+ampCount(km)*AMP_COST)+op.up,(cab?ownCabMo(km):Math.round(km*0.15)+ampCount(km)*AMP_MO)+op.mo,cab?ownCabDays(km):dfBuildDays(km),mo));}
|
x.opts.push(swapOpt(cab?'cab':'own',(cab?ownCabCost(km):digCost(km)+DF_SYS.roadm.cost+ampCount(km)*AMP_COST)+op.up,(cab?ownCabMo(km):Math.round(km*0.15)+ampCount(km)*AMP_MO)+op.mo,cab?ownCabDays(km):dfBuildDays(km),mo));}
|
||||||
|
|
|
||||||
|
|
@ -196,16 +196,18 @@ const seaCab=(a,b)=>isSub(a,b)||(landing(a)&&landing(b)&&cablesFor(a,b).length>0
|
||||||
const cabBack=l=>{if(!l||l.kind!=='df'||!l.own||!l.sub)return 0;const c=l.paid>0?l.paid:ownCabCost(l.km);if(!subNeed(l.km))return c;
|
const cabBack=l=>{if(!l||l.kind!=='df'||!l.own||!l.sub)return 0;const c=l.paid>0?l.paid:ownCabCost(l.km);if(!subNeed(l.km))return c;
|
||||||
if(l.ready>S.day){const tot=Math.max(1,l.ready-(l.day||0));return Math.round(c*0.75*Math.min(1,(l.ready-S.day)/tot));}return 0;};
|
if(l.ready>S.day){const tot=Math.max(1,l.ready-(l.day||0));return Math.round(c*0.75*Math.min(1,(l.ready-S.day)/tot));}return 0;};
|
||||||
// Your own subsea cable is a Tier 1 privilege, or a sandbox toy (open gates).
|
// Your own subsea cable is a Tier 1 privilege, or a sandbox toy (open gates).
|
||||||
const cabOpen=()=>!!S.won||gatesOpen();
|
// Your own subsea cable: after the Tier 1 win, from customer level CAB_LV (a big Tier 2 lays cables too, #300), or from
|
||||||
|
// day one as a Cable broker.
|
||||||
|
const CAB_LV=9,cabOpen=()=>!!S.won||gatesOpen()||broker()||lvl()>=CAB_LV;
|
||||||
function ownCabWhy(a,b){if(!seaCab(a,b))return tr('own_cable.this_route_is_on_land_build');
|
function ownCabWhy(a,b){if(!seaCab(a,b))return tr('own_cable.this_route_is_on_land_build');
|
||||||
if(!cabOpen())return tr('own_cable.laying_your_own_subsea_cable_is');
|
if(!cabOpen())return tr('own_cable.your_own_subsea_cable_needs_level',{n:CAB_LV});
|
||||||
for(const c of [a,b])if(!landing(c))return tr('own_cable.city_has_no_cable_landing_station',{city:CITY[c].name});
|
for(const c of [a,b])if(!landing(c))return tr('own_cable.city_has_no_cable_landing_station',{city:CITY[c].name});
|
||||||
if(cnCity(a)||cnCity(b))return tr('own_cable.nobody_gives_a_foreign_network_a');
|
if(cnCity(a)||cnCity(b))return tr('own_cable.nobody_gives_a_foreign_network_a');
|
||||||
if(!seaReady(a,b))return tr('own_cable.surveying_a_sea_route');
|
if(!seaReady(a,b))return tr('own_cable.surveying_a_sea_route');
|
||||||
const routes=seaRoutes(a,b);if(!routes.length)return tr('own_cable.no_navigable_sea_route_connects');
|
const routes=seaRoutes(a,b);if(!routes.length)return tr('own_cable.no_navigable_sea_route_connects');
|
||||||
const km=Math.min(...routes.map(r=>r.km));if(!subNeed(km))return tr('own_cable.km_km_is_more_than_any',{km:km.toLocaleString(),max:Math.round(SUB_MAXKM()).toLocaleString()});
|
const km=Math.min(...routes.map(r=>r.km));if(!subNeed(km))return tr('own_cable.km_km_is_more_than_any',{km:km.toLocaleString(),max:Math.round(SUB_MAXKM()).toLocaleString()});
|
||||||
return '';}
|
return '';}
|
||||||
function ownCabTeaser(a,b){const why=ownCabWhy(a,b);return `<div class="btns" style="margin-top:8px">${btn(cabOpen()?tr('modals.lay_your_own_subsea_cable'):tr('modals.your_own_subsea_cable_tier_1'),'ownCab',{},cabOpen()&&!why?'pink':'ghost',!!why)}</div>${why&&cabOpen()?`<p class="note" ${seaSurveyAttr(a,b)}>${esc(why)}</p>`:''}`;}
|
function ownCabTeaser(a,b){const why=ownCabWhy(a,b);return `<div class="btns" style="margin-top:8px">${btn(cabOpen()?tr('modals.lay_your_own_subsea_cable'):tr('modals.your_own_subsea_cable_level_n',{n:CAB_LV}),'ownCab',{},cabOpen()&&!why?'pink':'ghost',!!why)}</div>${why&&cabOpen()?`<p class="note" ${seaSurveyAttr(a,b)}>${esc(why)}</p>`:''}`;}
|
||||||
function ownCabBody(a,b,pop){const why=ownCabWhy(a,b);if(why)return `<p class="lead" style="margin-top:10px" ${seaSurveyAttr(a,b)}>${esc(why)}</p>${btn(tr('common.back'),'dfSrc',{v:'lease'},'ghost sm')}`;
|
function ownCabBody(a,b,pop){const why=ownCabWhy(a,b);if(why)return `<p class="lead" style="margin-top:10px" ${seaSurveyAttr(a,b)}>${esc(why)}</p>${btn(tr('common.back'),'dfSrc',{v:'lease'},'ghost sm')}`;
|
||||||
const design=own(SEA_DESIGNS,UI.seaDesign)?UI.seaDesign:'standard',upgrades=seaUps(seaQuote(a,b,design).km),q=seaQuote(a,b,design,upgrades),{km,cost,days}=q,lack=seaLack(km,upgrades),mo=ownCabMo(km),wt=subMaxTier(km),w=Math.round(waveMo(km,true,wt)*waveMarket(a,b,true).m),save=10*w*LT[4].g/LT[wt].g-mo,pay=save>0?Math.ceil(cost/save):0;
|
const design=own(SEA_DESIGNS,UI.seaDesign)?UI.seaDesign:'standard',upgrades=seaUps(seaQuote(a,b,design).km),q=seaQuote(a,b,design,upgrades),{km,cost,days}=q,lack=seaLack(km,upgrades),mo=ownCabMo(km),wt=subMaxTier(km),w=Math.round(waveMo(km,true,wt)*waveMarket(a,b,true).m),save=10*w*LT[4].g/LT[wt].g-mo,pay=save>0?Math.ceil(cost/save):0;
|
||||||
return `<p class="lead" style="margin-top:8px">${tr('own_cable.your_very_own_subsea_cable_a')}</p>
|
return `<p class="lead" style="margin-top:8px">${tr('own_cable.your_very_own_subsea_cable_a')}</p>
|
||||||
|
|
|
||||||
|
|
@ -6,12 +6,12 @@ function dfModalBody(a,b,km,pop){
|
||||||
if(uaePair(a,b))return `<p class="lead" style="margin-top:10px">${tr('fiber_modals.no_dark_fiber_inside_the_uae')}</p>`+sea;
|
if(uaePair(a,b))return `<p class="lead" style="margin-top:10px">${tr('fiber_modals.no_dark_fiber_inside_the_uae')}</p>`+sea;
|
||||||
if(landX(a,b)&&cnCity(a)===cnCity(b))return `<p class="lead" style="margin-top:10px">${tr('fiber_modals.nobody_sells_one_fiber_pair_across')}</p>`+sea;
|
if(landX(a,b)&&cnCity(a)===cnCity(b))return `<p class="lead" style="margin-top:10px">${tr('fiber_modals.nobody_sells_one_fiber_pair_across')}</p>`+sea;
|
||||||
if(!dfAllowed(a,b))return `<p class="lead" style="margin-top:10px">${tr('fiber_modals.dark_fiber_across_the_chinese_border')}</p>`+sea;
|
if(!dfAllowed(a,b))return `<p class="lead" style="margin-top:10px">${tr('fiber_modals.dark_fiber_across_the_chinese_border')}</p>`+sea;
|
||||||
if(lvl()<2)return `<p class="lead" style="margin-top:10px">${tr('fiber_modals.dark_fiber_unlocks_at_customer_level')}</p>`+sea;
|
if(glassLvl()<2)return `<p class="lead" style="margin-top:10px">${tr('fiber_modals.dark_fiber_unlocks_at_customer_level')}</p>`+sea;
|
||||||
const src=UI.dfSrc==='build'&&!sc?'build':'lease',sys=DF_SYS[UI.dfSys]&&techOk('sys',UI.dfSys,DF_SYS[UI.dfSys].lvl)?UI.dfSys:'lite',amps=ampCount(km);
|
const src=UI.dfSrc==='build'&&!sc?'build':'lease',sys=DF_SYS[UI.dfSys]&&techOk('sys',UI.dfSys,DF_SYS[UI.dfSys].lvl)?UI.dfSys:'lite',amps=ampCount(km);
|
||||||
const up=(src==='build'?digCost(km):0)+sysCost(sys)+amps*AMP_COST+pop,mo=(src==='build'?Math.round(km*0.15):dfLeaseMo(km))+amps*AMP_MO;
|
const up=(src==='build'?digCost(km):0)+sysCost(sys)+amps*AMP_COST+pop,mo=(src==='build'?Math.round(km*0.15):dfLeaseMo(km))+amps*AMP_MO;
|
||||||
const w=Math.round(waveMo(km,false,4));
|
const w=Math.round(waveMo(km,false,4));
|
||||||
return `<p class="lead" style="margin-top:8px">${tr('fiber_modals.a_fiber_pair_of_your_own',{km:AMP_EVERY})}</p>
|
return `<p class="lead" style="margin-top:8px">${tr('fiber_modals.a_fiber_pair_of_your_own',{km:AMP_EVERY})}</p>
|
||||||
<h4 class="sub4">${tr('common.the_glass')}</h4><div class="seg">${btn(tr('fiber_modals.lease_an_iru_price_mo_ready_n',{price:fmt$(dfLeaseMo(km)),n:leadDays(IRU_DAYS)}),'dfSrc',{v:'lease'},src==='lease'?'pink':'ghost')}${sc?btn(cabOpen()?tr('modals.lay_your_own_subsea_cable'):tr('modals.your_own_subsea_cable_tier_1'),'ownCab',{},'ghost',!!ownCabWhy(a,b)):btn(lvl()>=3?tr('fiber_modals.build_your_own_price_n_days',{price:fmt$(dfBuildCost(km)),n:dfBuildDays(km)}):tr('specialist.dig_your_own_as_a_pioneer',{price:fmt$(digCost(km)),n:dfBuildDays(km),p:Math.round((PIONEER-1)*100)}),'dfSrc',{v:'build'},src==='build'?'pink':'ghost')}${sea?btn(cabOpen()?tr('modals.lay_your_own_subsea_cable'):tr('modals.your_own_subsea_cable_tier_1'),'ownCab',{},'ghost',!!ownCabWhy(a,b)):''}</div>${sc?`<p class="note">${tr('fiber_modals.a_fiber_pair_on_cable_km',{cable:esc(CAB[sc.cid].name),km:sc.km.toLocaleString()})}</p>`:''}
|
<h4 class="sub4">${tr('common.the_glass')}</h4><div class="seg">${btn(tr('fiber_modals.lease_an_iru_price_mo_ready_n',{price:fmt$(dfLeaseMo(km)),n:leadDays(IRU_DAYS)}),'dfSrc',{v:'lease'},src==='lease'?'pink':'ghost')}${sc?btn(cabOpen()?tr('modals.lay_your_own_subsea_cable'):tr('modals.your_own_subsea_cable_level_n',{n:CAB_LV}),'ownCab',{},'ghost',!!ownCabWhy(a,b)):btn(glassLvl()>=3?tr('fiber_modals.build_your_own_price_n_days',{price:fmt$(dfBuildCost(km)),n:dfBuildDays(km)}):tr('specialist.dig_your_own_as_a_pioneer',{price:fmt$(digCost(km)),n:dfBuildDays(km),p:Math.round((PIONEER-1)*100)}),'dfSrc',{v:'build'},src==='build'?'pink':'ghost')}${sea?btn(cabOpen()?tr('modals.lay_your_own_subsea_cable'):tr('modals.your_own_subsea_cable_level_n',{n:CAB_LV}),'ownCab',{},'ghost',!!ownCabWhy(a,b)):''}</div>${sc?`<p class="note">${tr('fiber_modals.a_fiber_pair_on_cable_km',{cable:esc(CAB[sc.cid].name),km:sc.km.toLocaleString()})}</p>`:''}
|
||||||
${src==='build'?`<p class="note">${tr('fiber_modals.your_own_trench_almost_no_rent')}</p>`:''}
|
${src==='build'?`<p class="note">${tr('fiber_modals.your_own_trench_almost_no_rent')}</p>`:''}
|
||||||
<h4 class="sub4">${tr('common.line_system')}</h4><div class="seg">${Object.keys(DF_SYS).map(k=>btn(`${DF_SYS[k].n} <small>${!techOk('sys',k,DF_SYS[k].lvl)?tr('fiber_modals.level_n',{n:DF_SYS[k].lvl}):fmt$(sysCost(k))}</small>`,'dfSys',{v:k},sys===k?'pink':'ghost',!techOk('sys',k,DF_SYS[k].lvl))).join('')}</div>${Object.keys(DF_SYS).filter(k=>!techOk('sys',k,DF_SYS[k].lvl)&&demoCan(DF_SYS[k].lvl)).map(k=>`<div class="btns">${demoBtn('sys',k,DF_SYS[k].lvl,'','ghost sm')} <small class="meta">${DF_SYS[k].n}</small></div>`).join('')}
|
<h4 class="sub4">${tr('common.line_system')}</h4><div class="seg">${Object.keys(DF_SYS).map(k=>btn(`${DF_SYS[k].n} <small>${!techOk('sys',k,DF_SYS[k].lvl)?tr('fiber_modals.level_n',{n:DF_SYS[k].lvl}):fmt$(sysCost(k))}</small>`,'dfSys',{v:k},sys===k?'pink':'ghost',!techOk('sys',k,DF_SYS[k].lvl))).join('')}</div>${Object.keys(DF_SYS).filter(k=>!techOk('sys',k,DF_SYS[k].lvl)&&demoCan(DF_SYS[k].lvl)).map(k=>`<div class="btns">${demoBtn('sys',k,DF_SYS[k].lvl,'','ghost sm')} <small class="meta">${DF_SYS[k].n}</small></div>`).join('')}
|
||||||
<p class="note">${esc(DF_SYS[sys].blurb)} ${trn('fiber_modals.plus_n_in_line_amplifier_price',amps,{price:fmt$(AMP_COST),mo:fmt$(AMP_MO)})}</p>${km>reachOn(OPT.tp16.reach,!!sc)?`<p class="note">${tr('fiber_modals.km_km_is_longer_than_any',{km:km.toLocaleString()})}</p>`:''}
|
<p class="note">${esc(DF_SYS[sys].blurb)} ${trn('fiber_modals.plus_n_in_line_amplifier_price',amps,{price:fmt$(AMP_COST),mo:fmt$(AMP_MO)})}</p>${km>reachOn(OPT.tp16.reach,!!sc)?`<p class="note">${tr('fiber_modals.km_km_is_longer_than_any',{km:km.toLocaleString()})}</p>`:''}
|
||||||
|
|
|
||||||
|
|
@ -42,5 +42,5 @@ cv.addEventListener('pointerup',endPtr);cv.addEventListener('pointercancel',canc
|
||||||
const ZMIN=0.35,ZMAX=32;
|
const ZMIN=0.35,ZMAX=32;
|
||||||
function zoomAt(mx,my,f){const wx=cam.x+(mx-CW/2)/cam.z,wy=cam.y+(my-CH/2)/cam.z;cam.z=clamp(cam.z*f,ZMIN,ZMAX);cam.x=wx-(mx-CW/2)/cam.z;cam.y=wy-(my-CH/2)/cam.z;wrapCam();}
|
function zoomAt(mx,my,f){const wx=cam.x+(mx-CW/2)/cam.z,wy=cam.y+(my-CH/2)/cam.z;cam.z=clamp(cam.z*f,ZMIN,ZMAX);cam.x=wx-(mx-CW/2)/cam.z;cam.y=wy-(my-CH/2)/cam.z;wrapCam();}
|
||||||
cv.addEventListener('wheel',e=>{e.preventDefault();zoomAt(e.clientX,e.clientY,Math.exp(-e.deltaY*0.0015));},{passive:false});
|
cv.addEventListener('wheel',e=>{e.preventDefault();zoomAt(e.clientX,e.clientY,Math.exp(-e.deltaY*0.0015));},{passive:false});
|
||||||
addEventListener('keydown',e=>{if(e.key==='Enter'&&e.target.id==='metIn'){ACT.metricSet({id:e.target.dataset.id});return;}if(e.target.closest&&e.target.closest('input,textarea,select,[contenteditable]'))return;if(e.ctrlKey||e.metaKey||e.altKey)return;if(e.code==='Space'&&e.target.closest&&e.target.closest('button,a'))return;if(e.code==='Space'&&(!S||rule('clock'))&&!pzOn()&&!UI.clockLocked){e.preventDefault();playPause();}if(e.key==='0')ACT.speed({v:0.5});if(e.key==='1')ACT.speed({v:1});if(e.key==='2')ACT.speed({v:2});if(e.key==='3')ACT.speed({v:4});if(e.key==='4')ACT.speed({v:8});if(e.key==='Escape'&&!$('bankBox').hidden){$('bankBox').hidden=true;return;}if(e.key==='Escape'&&!$('dash').hidden){$('dash').hidden=true;return;}if(e.key==='Escape'){if(!$('modal').hidden){if(S&&UI.started&&!S.lost)closeModal();}else{UI.sel=null;renderPanel();}}});
|
addEventListener('keydown',e=>{if(e.key==='Enter'&&e.target.id==='metIn'){ACT.metricSet({id:e.target.dataset.id});return;}if(e.target.closest&&e.target.closest('input,textarea,select,[contenteditable]'))return;if(e.ctrlKey||e.metaKey||e.altKey)return;if(e.code==='Space'&&e.target.closest&&e.target.closest('button,a'))return;if(e.code==='Space'&&(!S||rule('clock'))&&!pzOn()&&!UI.clockLocked){e.preventDefault();playPause();}if(e.key==='0')ACT.speed({v:0.5});if(e.key==='1')ACT.speed({v:1});if(e.key==='2')ACT.speed({v:2});if(e.key==='3')ACT.speed({v:4});if(e.key==='4')ACT.speed({v:8});if(e.key==='Escape'&&!$('bankBox').hidden){$('bankBox').hidden=true;return;}if(e.key==='Escape'&&!$('dash').hidden){$('dash').hidden=true;return;}if(e.key==='Escape'){if(!$('modal').hidden){if(S&&UI.started&&!S.lost&&$('modal').className!=='charter')closeModal();}else{UI.sel=null;renderPanel();}}});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -351,6 +351,26 @@
|
||||||
"banks.your_ceo_plays_golf_with_our":"Your CEO plays golf with our CEO every Thursday.",
|
"banks.your_ceo_plays_golf_with_our":"Your CEO plays golf with our CEO every Thursday.",
|
||||||
"banks.your_rate_is_set_by_the":"Your rate is set by the stars every month. Mercury is in retrograde a lot.",
|
"banks.your_rate_is_set_by_the":"Your rate is set by the stars every month. Mercury is in retrograde a lot.",
|
||||||
"banks.your_rising_sign":"Your rising sign",
|
"banks.your_rising_sign":"Your rising sign",
|
||||||
|
"broker.a_carrier_calls":"<b>{name} wants capacity</b><br>{what} between {a} and {b}. It is in your deals.",
|
||||||
|
"broker.glass_baron":"Glass Baron",
|
||||||
|
"broker.goal_10k":"10,000 km of your own glass",
|
||||||
|
"broker.goal_10k_d":"Fiber you dug and cables you laid, ready and added up end to end.",
|
||||||
|
"broker.goal_10t":"Sell 10 Tbps",
|
||||||
|
"broker.goal_10t_d":"Waves and subsea capacity that carriers pay you for add up to 10 Tbps.",
|
||||||
|
"broker.goal_16t":"1.6T on two hops in a row",
|
||||||
|
"broker.goal_16t_d":"Light two of your own fibers or cables that meet in one city with 1.6T or more each.",
|
||||||
|
"broker.goal_c4":"Cables on four continents",
|
||||||
|
"broker.goal_c4_d":"Your own subsea cables land on four continents.",
|
||||||
|
"broker.goal_deal":"Deliver a capacity deal",
|
||||||
|
"broker.goal_deal_d":"Sign a deal at a capacity conference, or when a carrier calls, and light it before its date.",
|
||||||
|
"broker.goal_df_d":"Lease or dig dark fiber and put an optic on it. As a broker, every line system and optic is open from day one.",
|
||||||
|
"broker.goal_pair":"Lease out a dark fiber pair",
|
||||||
|
"broker.goal_pair_d":"Dig your own fiber, then rent a spare pair to a carrier or a hyperscaler.",
|
||||||
|
"broker.goal_sea":"Lay your own subsea cable",
|
||||||
|
"broker.goal_sea_d":"Pick a sea route in the dark fiber window and send the ship. Every cable you own counts toward Glass Baron.",
|
||||||
|
"broker.goal_wave":"Sell a wave on your glass",
|
||||||
|
"broker.goal_wave_d":"Carriers rent alien waves on fiber you have lit. Accept one from your deals.",
|
||||||
|
"broker.goal_win_d":"Your own cables land on five continents, and carriers pay you $1M a month for capacity.",
|
||||||
"broker.how":"it sells as the market wants; the broker keeps 10%",
|
"broker.how":"it sells as the market wants; the broker keeps 10%",
|
||||||
"broker.lead":"The broker keeps your listing and sells it off over time, as carriers between these two cities want capacity. It keeps 10% of each sale.",
|
"broker.lead":"The broker keeps your listing and sells it off over time, as carriers between these two cities want capacity. It keeps 10% of each sale.",
|
||||||
"broker.list_all":"List all {n}",
|
"broker.list_all":"List all {n}",
|
||||||
|
|
@ -364,9 +384,14 @@
|
||||||
"broker.n_waves":{"one":"{n} more wave","other":"{n} more waves"},
|
"broker.n_waves":{"one":"{n} more wave","other":"{n} more waves"},
|
||||||
"broker.n_waves_left":{"one":"{n} wave left to sell","other":"{n} waves left to sell"},
|
"broker.n_waves_left":{"one":"{n} wave left to sell","other":"{n} waves left to sell"},
|
||||||
"broker.no_market":"Nobody wants more capacity between these two cities right now. A listing waits until they do.",
|
"broker.no_market":"Nobody wants more capacity between these two cities right now. A listing waits until they do.",
|
||||||
|
"broker.progress":"Your own cables land on {c} of {n} continents · carriers pay you {mo} of {m} a month.",
|
||||||
"broker.seat_regen_note":"On a consortium cable, your regen sites sit in the landing stations along the way.",
|
"broker.seat_regen_note":"On a consortium cable, your regen sites sit in the landing stations along the way.",
|
||||||
"broker.sold":"<b>Your broker sold capacity.</b><br>{name} rents {what} for {price}/mo.",
|
"broker.sold":"<b>Your broker sold capacity.</b><br>{name} rents {what} for {price}/mo.",
|
||||||
"broker.unlist":"Take it off the market",
|
"broker.unlist":"Take it off the market",
|
||||||
|
"broker.win_as_a_cable_broker":"Win as a Cable broker.",
|
||||||
|
"broker.win_text":"{name} (AS{asn}) laid its own cables onto {n} continents and sells {mo} a month of capacity to other carriers, in {days} days. The oceans are your trench now.",
|
||||||
|
"broker.won_on_date":"Won on {date}: your own cables span the oceans, and carriers pay you to use them.",
|
||||||
|
"broker.your_glass_gear_is_already_yours":"As a Cable broker, every fiber, line system, optic, subsea cable and the routers to light them are yours already, whatever the level says.",
|
||||||
"businesses.a_free_pni_with_voda_phony":"A free PNI with Voda-Phony. Gear: Absolute Unit 3.2T routers, 3.2T ports and 12.8T waves.",
|
"businesses.a_free_pni_with_voda_phony":"A free PNI with Voda-Phony. Gear: Absolute Unit 3.2T routers, 3.2T ports and 12.8T waves.",
|
||||||
"businesses.agi_lab_allegedly":"AGI lab (allegedly)",
|
"businesses.agi_lab_allegedly":"AGI lab (allegedly)",
|
||||||
"businesses.agi_labs_allegedly_wanting_ai_wans":"AGI labs (allegedly) wanting AI WANs of 12.8 to 25.6 Tbps, and free PNIs with Du-opoly and Ooh-redoo. Gear: Mikrowtik CCR 3.2T routers.",
|
"businesses.agi_labs_allegedly_wanting_ai_wans":"AGI labs (allegedly) wanting AI WANs of 12.8 to 25.6 Tbps, and free PNIs with Du-opoly and Ooh-redoo. Gear: Mikrowtik CCR 3.2T routers.",
|
||||||
|
|
@ -3008,7 +3033,7 @@
|
||||||
"modal_and_names.the_real_thing_by_thomas_kj":"The real thing, by Thomas Kjær Aabo: a zoomable, interactive map of how your packets actually travel, from Wi-Fi to undersea fiber, today, in 2010 and in 1995. This game makes it up as it goes. That one gets it right.",
|
"modal_and_names.the_real_thing_by_thomas_kj":"The real thing, by Thomas Kjær Aabo: a zoomable, interactive map of how your packets actually travel, from Wi-Fi to undersea fiber, today, in 2010 and in 1995. This game makes it up as it goes. That one gets it right.",
|
||||||
"modal_and_names.the_real_thing_follow_a_packet":"The real thing: follow a packet from Wi-Fi to undersea fiber.",
|
"modal_and_names.the_real_thing_follow_a_packet":"The real thing: follow a packet from Wi-Fi to undersea fiber.",
|
||||||
"modals.lay_your_own_subsea_cable":"Lay your own subsea cable…",
|
"modals.lay_your_own_subsea_cable":"Lay your own subsea cable…",
|
||||||
"modals.your_own_subsea_cable_tier_1":"Your own subsea cable <small>Tier 1 only</small>",
|
"modals.your_own_subsea_cable_level_n":"Your own subsea cable <small>level {n} or Tier 1</small>",
|
||||||
"networks.a_mobile_network_named_after_the":"A mobile network named after the sound of a toast. Cheers to every 5G tower.",
|
"networks.a_mobile_network_named_after_the":"A mobile network named after the sound of a toast. Cheers to every 5G tower.",
|
||||||
"networks.a_spanish_carrier_starring_in_every":"A Spanish carrier starring in every Latin American market, at least until it sells the next one.",
|
"networks.a_spanish_carrier_starring_in_every":"A Spanish carrier starring in every Latin American market, at least until it sells the next one.",
|
||||||
"networks.a_tiny_telco_in_a_country":"A tiny telco in a country where the world’s cables come ashore. Prices to match.",
|
"networks.a_tiny_telco_in_a_country":"A tiny telco in a country where the world’s cables come ashore. Prices to match.",
|
||||||
|
|
@ -3298,7 +3323,6 @@
|
||||||
"own_cable.km_km_is_too_far_for":"{km} km is too far for your optics on their own. Add {what} to light this cable.",
|
"own_cable.km_km_is_too_far_for":"{km} km is too far for your optics on their own. Add {what} to light this cable.",
|
||||||
"own_cable.km_km_of_seabed":"{km} km of seabed",
|
"own_cable.km_km_of_seabed":"{km} km of seabed",
|
||||||
"own_cable.lay_the_cable_price":"Lay the cable <small>{price}</small>",
|
"own_cable.lay_the_cable_price":"Lay the cable <small>{price}</small>",
|
||||||
"own_cable.laying_your_own_subsea_cable_is":"Laying your own subsea cable is a Tier 1 thing. Go transit-free first.",
|
|
||||||
"own_cable.n_days":"+{n} days",
|
"own_cable.n_days":"+{n} days",
|
||||||
"own_cable.n_in_the_cable_the_first":"{n} in the cable, the first one lit",
|
"own_cable.n_in_the_cable_the_first":"{n} in the cable, the first one lit",
|
||||||
"own_cable.no_navigable_sea_route_connects":"No navigable sea route connects these landing stations.",
|
"own_cable.no_navigable_sea_route_connects":"No navigable sea route connects these landing stations.",
|
||||||
|
|
@ -3311,6 +3335,7 @@
|
||||||
"own_cable.the_seabed_survey_found_an_old":"The seabed survey found an old sea mine. A small, very careful detour.",
|
"own_cable.the_seabed_survey_found_an_old":"The seabed survey found an old sea mine. A small, very careful detour.",
|
||||||
"own_cable.this_design_s_route_is_km":"This design’s route is {km} km: too long for any optics, even with both upgrades. A shorter design can make it.",
|
"own_cable.this_design_s_route_is_km":"This design’s route is {km} km: too long for any optics, even with both upgrades. A shorter design can make it.",
|
||||||
"own_cable.this_route_is_on_land_build":"This route is on land. Build your own fiber instead.",
|
"own_cable.this_route_is_on_land_build":"This route is on land. Build your own fiber instead.",
|
||||||
|
"own_cable.your_own_subsea_cable_needs_level":"Your own subsea cable needs customer level {n}, or Tier 1. A Cable broker lays them from day one.",
|
||||||
"own_cable.your_very_own_subsea_cable_a":"Your very own subsea cable. A ship lays it across the seabed, you own every fiber pair in it, and nobody else’s waves share your glass. It costs a frankly rude amount of money and takes a long time.",
|
"own_cable.your_very_own_subsea_cable_a":"Your very own subsea cable. A ship lays it across the seabed, you own every fiber pair in it, and nobody else’s waves share your glass. It costs a frankly rude amount of money and takes a long time.",
|
||||||
"page.a_free_cartoon_browser_game_about":"A free cartoon browser game about how the internet works. Start as a tiny network in one city, launch home broadband, buy IP transit from Tier 1 and Tier 2 carriers, peer at internet exchanges, set up private interconnects and embedded CDN caches, and lay terrestrial fiber, subsea waves and your own dark fiber with DWDM and ZR optics. Sign enterprise, hosting, high-frequency trading, AI GPU and hyperscaler customers, and keep them happy while backhoes, sharks, fat fingers, route leaks, DDoS attacks and geopolitics break things.",
|
"page.a_free_cartoon_browser_game_about":"A free cartoon browser game about how the internet works. Start as a tiny network in one city, launch home broadband, buy IP transit from Tier 1 and Tier 2 carriers, peer at internet exchanges, set up private interconnects and embedded CDN caches, and lay terrestrial fiber, subsea waves and your own dark fiber with DWDM and ZR optics. Sign enterprise, hosting, high-frequency trading, AI GPU and hyperscaler customers, and keep them happy while backhoes, sharks, fat fingers, route leaks, DDoS attacks and geopolitics break things.",
|
||||||
"page.breaking_cve_2026_31337_in_php":"🐘 BREAKING: CVE-2026-31337 IN PHP TAKES DOWN HALF THE INTERNET",
|
"page.breaking_cve_2026_31337_in_php":"🐘 BREAKING: CVE-2026-31337 IN PHP TAKES DOWN HALF THE INTERNET",
|
||||||
|
|
@ -4156,6 +4181,8 @@
|
||||||
"specialist.a_b_km_km_ready_in":"{a} ⇄ {b} · {km} km · about {ms} ms · ready in about {n} days",
|
"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.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.ask_for_a_demo_unit_p_n":"Demo unit: +{p}%, {n} days",
|
||||||
|
"specialist.cable_broker":"Cable broker",
|
||||||
|
"specialist.cable_broker_desc":"Lay fiber on land and cables under the sea from day one, light them and sell the capacity to other carriers. Goals of its own; win Glass Baron: your own cables land on {n} continents while carriers pay you {m} a month. Everything else unlocks by level, as always.",
|
||||||
"specialist.charter_signed_name":"Charter signed: {name}.",
|
"specialist.charter_signed_name":"Charter signed: {name}.",
|
||||||
"specialist.consortium_seat":"Consortium seat",
|
"specialist.consortium_seat":"Consortium seat",
|
||||||
"specialist.consortium_seat_name":"Consortium seat: {name}",
|
"specialist.consortium_seat_name":"Consortium seat: {name}",
|
||||||
|
|
@ -4163,12 +4190,9 @@
|
||||||
"specialist.dig_your_own_as_a_pioneer":"Dig your own as a pioneer (+{p}%) · {price} · {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.global_backbone":"Global backbone",
|
||||||
"specialist.includes_pops_at_the_landings_price":"Includes POPs at the landings: {price}.",
|
"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.low_latency_boutique":"Low-latency boutique",
|
||||||
"specialist.n_fiber_pairs":{"one":"{n} fiber pair","other":"{n} fiber pairs"},
|
"specialist.n_fiber_pairs":{"one":"{n} fiber pair","other":"{n} fiber pairs"},
|
||||||
"specialist.part_owner_of_the_sea":"Part-owner of the sea",
|
"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.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.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_broadband_in_a_one":"They spotted your broadband in {a}, one of the big eyeball cities.",
|
||||||
|
|
@ -4180,10 +4204,11 @@
|
||||||
"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_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.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.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.what_are_you_building":"What are you building?",
|
||||||
"specialist.win_as_a_low_latency_boutique":"Win as a low-latency boutique",
|
"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.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.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_charter_sets_your_goals":"Your charter sets your goals and your win. You pick once, for the life of this network.",
|
||||||
"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_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!",
|
"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.as_when_you_started":"as when you started",
|
||||||
|
|
|
||||||
|
|
@ -206,3 +206,13 @@ h2 .rn{font-size:18px;vertical-align:middle;padding:2px 4px}
|
||||||
.findrow .nm,.findrow .meta{display:block}
|
.findrow .nm,.findrow .meta{display:block}
|
||||||
.findrow.on{background:var(--soft);border-radius:10px}
|
.findrow.on{background:var(--soft);border-radius:10px}
|
||||||
.findrow:hover{background:var(--soft)}
|
.findrow:hover{background:var(--soft)}
|
||||||
|
/* The charter picker (36-specialist.js): three big choices, one tap each, nothing else to close it with. */
|
||||||
|
.chpick h2{margin:2px 0 4px}.chpick .tagline{margin:0 0 6px}
|
||||||
|
.chopt{display:flex;align-items:flex-start;gap:12px;width:100%;margin-top:8px;border:3px solid var(--ink);border-radius:14px;padding:10px 12px;background:var(--paper);box-shadow:0 3px 0 var(--ink);font:inherit;color:var(--ink);text-align:left;cursor:pointer}
|
||||||
|
.chopt:hover,.chopt:focus-visible{background:var(--soft)}.chopt:active{transform:translateY(2px);box-shadow:0 1px 0 var(--ink)}
|
||||||
|
.chi{font-size:28px;line-height:1.1;flex:none}.cht{display:flex;flex-direction:column;gap:2px;min-width:0}
|
||||||
|
.cht b{font:800 17px/1.2 var(--display)}.cht span{font-size:13px;line-height:1.35;color:var(--ink2)}
|
||||||
|
@media (max-width:760px){.chopt{padding:9px 10px;gap:10px}.chi{font-size:24px}.cht span{font-size:12.5px}}
|
||||||
|
/* A phone on its side: the three side by side, so nothing scrolls. */
|
||||||
|
@media (orientation:landscape) and (max-height:500px){.chpick h2{font-size:21px !important}.chpick .tagline{display:none}
|
||||||
|
.chopts{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.chopt{flex-direction:column;gap:2px;margin-top:6px;padding:8px 10px}.chi{font-size:22px}.cht span{font-size:12px;line-height:1.3}}
|
||||||
|
|
|
||||||
180
tests/charters.test.js
Normal file
180
tests/charters.test.js
Normal file
|
|
@ -0,0 +1,180 @@
|
||||||
|
// Charters (#300): a Normal game asks what it is building before anything else, in a popup that waits for an answer:
|
||||||
|
// Global backbone, Low-latency boutique or Cable broker. The broker builds and lights glass from day one at the usual
|
||||||
|
// prices, runs its own goal ladder and wins Glass Baron; everything else unlocks by level as always. Classic networks
|
||||||
|
// may lay their own subsea cable from customer level 9 as well as after the Tier 1 win.
|
||||||
|
const test = require('node:test');
|
||||||
|
const assert = require('node:assert/strict');
|
||||||
|
const { load } = require('./harness');
|
||||||
|
|
||||||
|
const modal = (ev) => ev("document.getElementById('modal').hidden?'':document.getElementById('modal').className");
|
||||||
|
function picked(k, opts) {
|
||||||
|
const h = load({ seed: 300, ...opts });
|
||||||
|
h.ev(`ACT.start({});ACT.charter({k:'${k}'})`);
|
||||||
|
return h;
|
||||||
|
}
|
||||||
|
// A dark fiber of your own, ready and lit, between two cities with POPs.
|
||||||
|
const df = (id, a, b, more = '') => `(()=>{for(const c of ['${a}','${b}'])S.pops[c]=S.pops[c]||{day:0,bb:null,boost:0,down:0,routers:1,gen:false,rgen:RG.length-1};
|
||||||
|
S.links.push({id:'${id}',a:'${a}',b:'${b}',kind:'df',own:true,sys:'roadm',ch:['tp16','tp16'],km:kmBetween('${a}','${b}'),sub:isSub('${a}','${b}'),cable:null,mo:0,trench:'${id}',cut:0,day:0,ready:0,spares:false${more}});})()`;
|
||||||
|
|
||||||
|
test('a new Normal game asks for its charter first, and the popup waits for an answer', () => {
|
||||||
|
const { ev, dom, errors } = load({ seed: 300 });
|
||||||
|
ev('window.__TUBES_CHARTER__=true;ACT.start({})');
|
||||||
|
assert.equal(modal(ev), 'charter', 'the picker is open, and an open window holds the clock');
|
||||||
|
const opts = [...dom.window.document.querySelectorAll('#modalCard .chopt')].map((b) => JSON.parse(b.dataset.args).k);
|
||||||
|
assert.deepEqual(opts, ['global', 'boutique', 'broker']);
|
||||||
|
assert.match(dom.window.document.getElementById('modalCard').textContent, /Glass Baron/, 'each charter says what it is and how it wins');
|
||||||
|
assert.equal(ev('UI.tutLater'), true, 'the tutorial waits for the charter');
|
||||||
|
// Escape, or anything that closes the window, does not get past it.
|
||||||
|
ev("dispatchEvent(new KeyboardEvent('keydown',{key:'Escape'}))");
|
||||||
|
assert.equal(modal(ev), 'charter');
|
||||||
|
ev('closeModal();renderAll()');
|
||||||
|
assert.equal(modal(ev), 'charter', 'closed some other way, it comes straight back');
|
||||||
|
dom.window.document.querySelector('#modalCard [data-args*="broker"]').click();
|
||||||
|
assert.equal(ev('S.charter'), 'broker');
|
||||||
|
assert.equal(ev('S.chartSet'), true);
|
||||||
|
assert.equal(modal(ev), '', 'signed: the window closes and the game runs');
|
||||||
|
assert.equal(ev('UI.tutLater'), false, 'and the tutorial may start');
|
||||||
|
ev("ACT.charter({k:'global'})");
|
||||||
|
assert.equal(ev('S.charter'), 'broker', 'one charter for the life of the network');
|
||||||
|
assert.deepEqual(errors, []);
|
||||||
|
});
|
||||||
|
|
||||||
|
test('sandbox, scenarios and puzzles never ask; a save still in its first month that never picked does', () => {
|
||||||
|
for (const o of ["{mode:'sandbox'}", '{scn:SCN[0]}']) {
|
||||||
|
const { ev, errors } = load({ seed: 300 });
|
||||||
|
ev(`window.__TUBES_CHARTER__=true;beginGame('X','fra',${o});if(UI.pendGame)ACT.pitchSkip()`);
|
||||||
|
assert.notEqual(modal(ev), 'charter', o);
|
||||||
|
assert.equal(ev('charterDue()'), false, o);
|
||||||
|
assert.deepEqual(errors, []);
|
||||||
|
}
|
||||||
|
const { ev, errors } = load({ seed: 300 });
|
||||||
|
ev('ACT.start({})');
|
||||||
|
const s = JSON.parse(ev('JSON.stringify(S)'));
|
||||||
|
ev(`window.__TUBES_CHARTER__=true;S=migrate(${JSON.stringify({ ...s, day: 12, chartSet: false })});closeModal();renderAll()`);
|
||||||
|
assert.equal(modal(ev), 'charter', 'a save in its first month that never picked is asked on load');
|
||||||
|
ev(`S=migrate(${JSON.stringify({ ...s, day: 40, chartSet: false })});closeModal();renderAll()`);
|
||||||
|
assert.equal(modal(ev), '', 'past the first month it is a Global backbone, as before');
|
||||||
|
assert.deepEqual([ev('S.charter'), ev('S.chartSet')], ['global', true]);
|
||||||
|
assert.deepEqual(errors, []);
|
||||||
|
});
|
||||||
|
|
||||||
|
test('the broker has glass and the gear to light it from day one, at the usual prices', () => {
|
||||||
|
const { ev, errors } = picked('broker');
|
||||||
|
assert.equal(ev('lvl()'), 1, 'still customer level 1');
|
||||||
|
assert.equal(ev('glassLvl()'), ev('LEVELS.length'));
|
||||||
|
for (const o of ['zr4', 'zr8', 'tp16', 'tp32']) {
|
||||||
|
assert.equal(ev(`techOk('opt','${o}',OPT.${o}.lvl)`), true, o);
|
||||||
|
assert.equal(ev(`optCost('${o}')`), ev(`Math.round(OPT.${o}.cost*hwMul('opt'))`), `${o} at the catalog price, no demo markup`);
|
||||||
|
}
|
||||||
|
for (const k of ['lite', 'roadm', 'cl']) assert.equal(ev(`sysCost('${k}')`), ev(`DF_SYS.${k}.cost`), k);
|
||||||
|
assert.equal(ev('digMul()'), 1, 'no pioneer markup for digging');
|
||||||
|
assert.equal(ev('cabOpen()'), true, 'own subsea cables');
|
||||||
|
assert.equal(ev('pairsMax({sub:false})'), ev('PAIRS_BIG'));
|
||||||
|
assert.equal(ev('RG.every((r,g)=>r.cls>RG_GLASS||rgOpen(g))'), true, 'every router the optics need');
|
||||||
|
// Dark fiber on the best line system, at level 1.
|
||||||
|
ev("ACT.buildPop({city:'ams'});UI.pending={a:'fra',b:'ams'};UI.dfSrc='lease';UI.dfSys='cl';ACT.orderDf()");
|
||||||
|
assert.equal(ev("S.links.filter(l=>l.kind==='df').map(l=>l.sys).join()"), 'cl');
|
||||||
|
// The rest of the game still unlocks by level.
|
||||||
|
ev('ACT.buyTE()');
|
||||||
|
assert.ok(!ev('S.te'), 'Auto-TE waits for customer level 3');
|
||||||
|
assert.equal(ev("techOk('rg',RG.findIndex(r=>r.cls>RG_GLASS),99)"), false);
|
||||||
|
assert.deepEqual(errors, []);
|
||||||
|
});
|
||||||
|
|
||||||
|
test('the other charters keep their gates; own subsea cables open at level 9 for everyone (#300)', () => {
|
||||||
|
for (const k of ['global', 'boutique']) {
|
||||||
|
const { ev, errors } = picked(k);
|
||||||
|
assert.equal(ev('glassLvl()'), 1);
|
||||||
|
assert.equal(ev("techOk('opt','tp16',OPT.tp16.lvl)"), false, `${k}: optics still follow the level`);
|
||||||
|
assert.equal(ev('digMul()'), ev('PIONEER'));
|
||||||
|
ev("ACT.buildPop({city:'ams'});UI.pending={a:'fra',b:'ams'};UI.dfSrc='lease';UI.dfSys='lite';ACT.orderDf()");
|
||||||
|
assert.equal(ev("S.links.filter(l=>l.kind==='df').length"), 0, `${k}: no dark fiber at level 1`);
|
||||||
|
ev('S.lvl=8');
|
||||||
|
assert.equal(ev('cabOpen()'), false);
|
||||||
|
assert.match(ev("ownCabWhy('lon','nyc')"), /level 9, or Tier 1/);
|
||||||
|
ev('S.lvl=9');
|
||||||
|
assert.equal(ev('cabOpen()'), true, `${k}: level 9 lays its own subsea cable`);
|
||||||
|
ev('S.lvl=1;S.won=true');
|
||||||
|
assert.equal(ev('cabOpen()'), true, `${k}: so does a Tier 1 at any level`);
|
||||||
|
assert.deepEqual(errors, []);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
test('the broker runs its own ladder, every goal can be met, and Glass Baron is its own win', () => {
|
||||||
|
const { ev, dom, errors } = picked('broker');
|
||||||
|
assert.deepEqual(JSON.parse(ev('JSON.stringify(goals().map(g=>g.id))')),
|
||||||
|
['bk_df', 'bk_wave', 'bk_pair', 'bk_sea', 'bk_deal', 'bk_10k', 'bk_16t', 'bk_c4', 'bk_10t', 'bk_win']);
|
||||||
|
ev("ACT.leftTab({t:'goals'});renderAll()");
|
||||||
|
assert.match(dom.window.document.getElementById('left').textContent, /0\/10/);
|
||||||
|
assert.match(dom.window.document.getElementById('left').textContent, /Glass Baron/, 'the Glass Baron card');
|
||||||
|
const ok = (id) => ev(`BROKER_GOALS.find(g=>g.id==='${id}').ok()`);
|
||||||
|
for (const id of ['bk_df', 'bk_wave', 'bk_pair', 'bk_sea', 'bk_deal', 'bk_10k', 'bk_16t', 'bk_c4', 'bk_10t', 'bk_win']) assert.equal(ok(id), false, `${id} not met on day 0`);
|
||||||
|
// Glass across Europe, and cables over the oceans onto six continents.
|
||||||
|
ev(df('e1', 'fra', 'ams') + ';' + df('e2', 'ams', 'ham'));
|
||||||
|
for (const [id, a, b] of [['s1', 'lon', 'nyc'], ['s2', 'sin', 'per'], ['s3', 'for', 'lag']]) ev(df(id, a, b));
|
||||||
|
ev('compute()');
|
||||||
|
assert.equal(ok('bk_df'), true);
|
||||||
|
assert.equal(ok('bk_sea'), true);
|
||||||
|
assert.equal(ok('bk_16t'), true, 'fra–ams–ham, 3.2T each');
|
||||||
|
assert.equal(ok('bk_c4'), true);
|
||||||
|
assert.equal(ev('cableConts()'), 6);
|
||||||
|
assert.ok(ok('bk_10k'), `${Math.round(ev('glassKm()'))} km of own glass`);
|
||||||
|
// A seat on a consortium cable, or a leased IRU, is not your own glass.
|
||||||
|
assert.equal(ev("ownGlassL({kind:'df',own:true,seat:true,ready:0})||ownGlassL({kind:'df',own:false,ready:0})"), false);
|
||||||
|
// Carriers buy: a wave, a pair, a delivered subsea deal of 12.8T worth more than $1M a month.
|
||||||
|
ev(`S.biz.push({id:'w',type:'wwave',city:'fra',city2:'ams',link:'e1',slots:2,bw:1,rate:3000,reqs:[],mood:100,since:0,name:'W'},
|
||||||
|
{id:'p',type:'dfpair',city:'ams',city2:'ham',link:'e2',bw:1,rate:2000,reqs:[],mood:100,since:0,name:'P'},
|
||||||
|
{id:'d',type:'capsub',city:'lon',city2:'nyc',bw:12800,rate:90,reqs:[],mood:100,since:0,live:true,due:400,name:'D'});S.stats.capDone=1;`);
|
||||||
|
for (const id of ['bk_wave', 'bk_pair', 'bk_deal', 'bk_10t', 'bk_win']) assert.equal(ok(id), true, id);
|
||||||
|
assert.equal(ev('capSoldG()'), 800 + 12800, 'waves at 400G each, plus subsea capacity; a dark pair is the buyer’s to light');
|
||||||
|
// A deal not yet delivered sells nothing.
|
||||||
|
ev("S.biz.find(b=>b.id==='d').live=false");
|
||||||
|
assert.equal(ok('bk_win'), false);
|
||||||
|
ev("S.biz.find(b=>b.id==='d').live=true");
|
||||||
|
const cash = ev('S.cash');
|
||||||
|
ev('checkGoals()');
|
||||||
|
assert.equal(ev('goals().every(g=>S.done[g.id]!==undefined)'), true, 'the whole ladder');
|
||||||
|
assert.equal(ev('S.cash') - cash, ev('BROKER_GOALS.reduce((a,g)=>a+g.r,0)'), 'every reward paid');
|
||||||
|
assert.ok(ev('S.baronWon') > 0, 'Glass Baron won');
|
||||||
|
assert.equal(ev('!!S.won'), false, 'Tier 1 is still its own thing');
|
||||||
|
assert.equal(ev("S.ach&&S.ach.baron!==undefined"), true, 'with its badge');
|
||||||
|
assert.match(ev("document.getElementById('modalCard').textContent"), /Glass Baron/);
|
||||||
|
assert.equal(ev("Object.keys(S.done).some(k=>GOALS.some(g=>g.id===k))"), false, 'the classic ladder is untouched');
|
||||||
|
assert.deepEqual(errors, []);
|
||||||
|
});
|
||||||
|
|
||||||
|
test('a broker hears from carriers: more wave and pair offers, and capacity deals by phone', () => {
|
||||||
|
const share = (k) => {
|
||||||
|
const { ev } = picked(k);
|
||||||
|
ev("S.lvl=3;" + df('e1', 'fra', 'ams') + ';' + df('e2', 'fra', 'par') + ';compute()');
|
||||||
|
return ev("(()=>{let n=0,c=0;for(let i=0;i<400;i++){S.offers=[];spawnOffer();for(const o of S.offers){c++;if(['wwave','dfpair','pairs'].includes(o.type))n++;}}return n/Math.max(1,c);})()");
|
||||||
|
};
|
||||||
|
const g = share('global'), b = share('broker');
|
||||||
|
assert.ok(b > g * 1.8, `capacity offers: ${(b * 100).toFixed(0)}% for a broker, ${(g * 100).toFixed(0)}% for a backbone`);
|
||||||
|
const { ev, errors } = picked('broker');
|
||||||
|
const day = ev('(()=>{for(let d=BROKER_CALL_FROM;d<2000;d++)if(hstr(S.asn+"|capcall|"+d)%BROKER_CALL===0)return d;return -1;})()');
|
||||||
|
assert.ok(day >= 60);
|
||||||
|
ev(`S.offers=[];brokerDay(${day})`);
|
||||||
|
const o = JSON.parse(ev('JSON.stringify(S.offers)'));
|
||||||
|
assert.equal(o.length, 1);
|
||||||
|
assert.ok(['capw', 'capsub', 'capfib'].includes(o[0].type), 'a capacity deal from the conferences’ routes');
|
||||||
|
ev('S.offers=[];for(let d=0;d<BROKER_CALL_FROM;d++)brokerDay(d)');
|
||||||
|
assert.equal(ev('S.offers.length'), 0, 'not in the first two months');
|
||||||
|
// Capacity conferences are open to a broker at any level.
|
||||||
|
assert.equal(ev('glassLvl()>=CAP_LV'), true);
|
||||||
|
assert.deepEqual(errors, []);
|
||||||
|
});
|
||||||
|
|
||||||
|
test('saves keep the broker and its win, and refuse charters that do not exist', () => {
|
||||||
|
const { ev, errors } = picked('broker');
|
||||||
|
ev('S.baronWon=1234');
|
||||||
|
const s = JSON.parse(ev('JSON.stringify(S)'));
|
||||||
|
ev(`S=migrate(${JSON.stringify(s)})`);
|
||||||
|
assert.deepEqual([ev('S.charter'), ev('S.baronWon'), ev('charter()')], ['broker', 1234, 'broker']);
|
||||||
|
ev(`S=migrate(${JSON.stringify({ ...s, charter: 'evil', baronWon: 'x' })})`);
|
||||||
|
assert.deepEqual([ev('S.charter'), ev('S.baronWon')], ['global', 0]);
|
||||||
|
ev(`S=migrate(${JSON.stringify(s)});S.scn={id:'x'}`);
|
||||||
|
assert.equal(ev('charter()'), 'global', 'a scenario plays as the classic game');
|
||||||
|
assert.equal(ev('glassLvl()'), ev('lvl()'));
|
||||||
|
assert.deepEqual(errors, []);
|
||||||
|
});
|
||||||
|
|
@ -289,6 +289,28 @@ test('M5: Sandbox has no locked feature', () => {
|
||||||
assert.deepEqual(g.errors, []);
|
assert.deepEqual(g.errors, []);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
test('M6: a charter changes what you set out to do, never what things cost', () => {
|
||||||
|
const bad = [];
|
||||||
|
const g = load();
|
||||||
|
g.ev("beginGame('Charter','fra',{mode:'normal',preset:'oncall'});if(UI.pendGame)ACT.pitchSkip()");
|
||||||
|
if (!g.ev('charterDue()')) bad.push('a new Normal game does not ask for its charter');
|
||||||
|
g.ev("ACT.charter({k:'broker'});S.lvl=1");
|
||||||
|
const glass = (x) => g.ev(`JSON.stringify({opt:Object.keys(OPT).map(o=>optCost(o)),sys:Object.keys(DF_SYS).map(sysCost),dig:digCost(500),cab:ownCabCost(5000),rt:RG.map((r,i)=>routerCost(i,1))})`);
|
||||||
|
const b = JSON.parse(glass());
|
||||||
|
g.ev("S.charter='global';S.lvl=LEVELS.length");
|
||||||
|
const c = JSON.parse(glass());
|
||||||
|
for (const k of Object.keys(b)) if (JSON.stringify(b[k]) !== JSON.stringify(c[k])) bad.push(`a broker at level 1 pays other prices for ${k} than a backbone at the top level`);
|
||||||
|
g.ev("S.charter='broker';S.lvl=1");
|
||||||
|
if (g.ev('S.te') || (g.ev('ACT.buyTE()'), g.ev('S.te'))) bad.push('a broker skips the levels for something that is not glass (Auto-TE)');
|
||||||
|
for (const o of ["{mode:'sandbox'}", "{mode:'puzzle'}", '{scn:SCN[0]}']) {
|
||||||
|
const h = load();
|
||||||
|
h.ev(`beginGame('X','fra',${o});if(UI.pendGame)ACT.pitchSkip()`);
|
||||||
|
if (h.ev('charterDue()')) bad.push(`${o} asks for a charter`);
|
||||||
|
}
|
||||||
|
fail('M6', bad, 'the broker gets glass early, not cheaper; charters belong to Normal games only');
|
||||||
|
assert.deepEqual(g.errors, []);
|
||||||
|
});
|
||||||
|
|
||||||
// ---------- Content ----------
|
// ---------- Content ----------
|
||||||
|
|
||||||
test('C1: every scenario has a goal its card checks, and none is won on day 0', () => {
|
test('C1: every scenario has a goal its card checks, and none is won on day 0', () => {
|
||||||
|
|
|
||||||
|
|
@ -686,7 +686,7 @@ test('NOC leased lines tab prices leased dark fiber, own fiber and cables agains
|
||||||
assert.match(t, /Amsterdam ⇄ Frankfurt/);
|
assert.match(t, /Amsterdam ⇄ Frankfurt/);
|
||||||
assert.match(t, /Lease dark fiber: .* up front/);
|
assert.match(t, /Lease dark fiber: .* up front/);
|
||||||
assert.match(t, /Your own fiber: .* up front/);
|
assert.match(t, /Your own fiber: .* up front/);
|
||||||
assert.match(t, /Go transit-free first/, 'own subsea cables stay Tier 1 only');
|
assert.match(t, /level 9, or Tier 1/, 'own subsea cables need customer level 9 or Tier 1 (#300)');
|
||||||
const land = JSON.parse(ev("JSON.stringify(leaseSwaps().find(x=>x.a==='ams'))"));
|
const land = JSON.parse(ev("JSON.stringify(leaseSwaps().find(x=>x.a==='ams'))"));
|
||||||
assert.equal(land.ls.length, 2, 'parallel waves on one route are grouped');
|
assert.equal(land.ls.length, 2, 'parallel waves on one route are grouped');
|
||||||
assert.equal(land.cap, 800);
|
assert.equal(land.cap, 800);
|
||||||
|
|
|
||||||
|
|
@ -122,11 +122,9 @@ test('#173 a consortium seat: offer, pay, build, light, cut, save', () => {
|
||||||
test('#187 the Low-latency boutique: pick it on day 0, traders weigh more and pay more, Speed of Light wins', () => {
|
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();
|
const { ev, dom, errors } = load();
|
||||||
ev(start);
|
ev(start);
|
||||||
ev("ACT.leftTab({t:'goals'});renderAll()");
|
// The charter is asked in a popup when the game starts (tests/charters.test.js has the picker itself).
|
||||||
assert.match(dom.window.document.body.innerHTML, /Pick a charter/);
|
ev("window.__TUBES_CHARTER__=true;renderAll()");
|
||||||
ev("window.innerWidth=360;renderAll()");
|
assert.match(dom.window.document.getElementById('modalCard').innerHTML, /Low-latency boutique/);
|
||||||
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');
|
assert.equal(ev('charter()'), 'global', 'Global backbone until you pick');
|
||||||
ev("ACT.charter({k:'boutique'})");
|
ev("ACT.charter({k:'boutique'})");
|
||||||
assert.equal(ev('charter()'), 'boutique');
|
assert.equal(ev('charter()'), 'boutique');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue