Pie in the Sky: incidents in orbit and geopolitical spats
Solar storms (safe mode saves most pies), food fights (debris, launches dearer for a year, Space Roomba fix), rain fade on tropical dishes, backhoes at the dish, astronomers (VisorSat or science customers sulk), the Founder's 3 a.m. posts and the chaos monkey snipping laser links. Nine spats with two answers each on a bottom sheet: landing rights refused, data stays home, spectrum squabble, kill switch, orbital land grab, jamming, launch diplomacy, not over my airspace. All gated by chaos and 90 quiet days (O5), seeded, repaired by sanitize, translated in every language.
This commit is contained in:
parent
112450d158
commit
727541a9d8
20 changed files with 1266 additions and 11 deletions
|
|
@ -84,6 +84,6 @@ These are what the game promises, held up by `tests/gameplay-rules.test.js` (one
|
||||||
| Id | Rule | Why |
|
| Id | Rule | Why |
|
||||||
| --- | --- | --- |
|
| --- | --- | --- |
|
||||||
| O1 | The rocket company unlocks only on the Tier 1 win of a save started on its version (`S.pieV>=1`, set by `newGame()`; a save without it loads as 0), or from day 0 with open gates (sandbox). Never in puzzles, the Architect or scenarios. Losing Tier 1 keeps everything flying but builds nothing new. | An endgame for people who earned it; old won saves must not change under their players. |
|
| O1 | The rocket company unlocks only on the Tier 1 win of a save started on its version (`S.pieV>=1`, set by `newGame()`; a save without it loads as 0), or from day 0 with open gates (sandbox). Never in puzzles, the Architect or scenarios. Losing Tier 1 keeps everything flying but builds nothing new. | An endgame for people who earned it; old won saves must not change under their players. |
|
||||||
| O5 | Launches fail only with chaos on (`rule('chaos')`), and never in the first 90 days after the unlock; heavy test flights explode by design, not by chance. (The incidents built later follow the same rule.) | Like F1: learn the thing before it punishes you. |
|
| O5 | Launches fail only with chaos on (`rule('chaos')`), and never in the first 90 days after the unlock; heavy test flights explode by design, not by chance. Orbit incidents and geopolitical spats (`pieChaos()`) follow the same rule. | Like F1: learn the thing before it punishes you. |
|
||||||
| O7 | A fresh Tier 1 cannot afford a full Shortcrust from its first year's money: even a big network's yearly profit plus the largest loan a bank would offer stays below the cheapest full build (`pieFullCost('short')`). | Obscenely expensive is the joke and the goal; a constellation in year one would be a cheat code. |
|
| O7 | A fresh Tier 1 cannot afford a full Shortcrust from its first year's money: even a big network's yearly profit plus the largest loan a bank would offer stays below the cheapest full build (`pieFullCost('short')`). | Obscenely expensive is the joke and the goal; a constellation in year one would be a cheat code. |
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,7 @@ All notable changes to this project are documented here. The project follows
|
||||||
- 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).
|
||||||
- Become a Tier 1 in a new game and you can found your own rocket company: build a pie factory and launch pads, fly rockets, and fill four crusts of satellites (pies) around the planet, with pie dishes at your POPs and landing rights country by country. It costs billions, every launch has a party, and the Founder posts about all of it. Sandbox games have it from day 0. Games already won before this version stay as they are.
|
- Become a Tier 1 in a new game and you can found your own rocket company: build a pie factory and launch pads, fly rockets, and fill four crusts of satellites (pies) around the planet, with pie dishes at your POPs and landing rights country by country. It costs billions, every launch has a party, and the Founder posts about all of it. Sandbox games have it from day 0. Games already won before this version stay as they are.
|
||||||
|
- Space is not quiet for long: three months after your rocket company starts, solar storms, food fights in orbit, rain over tropical pie dishes, backhoes, astronomers and the Founder's 3 a.m. posts come for your satellites. Countries join in too, with landing rights refused for a while, data that has to stay home, two neighbours claiming the same band, a kill switch for exam week, a jammed border, a rival filing for orbits first, a launch pad on offer and traffic that must avoid the neighbour's dishes. Each one asks you to pick one of two answers. A ruleset with no chaos keeps the sky calm.
|
||||||
- Your own subsea cables now land right on the city's dot, also in Fujairah, Dubai, Karachi, Barcelona, Osaka and other cities the map shifts slightly so they do not overlap (#305).
|
- Your own subsea cables now land right on the city's dot, also in Fujairah, Dubai, Karachi, Barcelona, Osaka and other cities the map shifts slightly so they do not overlap (#305).
|
||||||
- Starting a new network no longer leaves the last one's "New POP!" and money pop-ups frozen all over the map until a reload.
|
- Starting a new network no longer leaves the last one's "New POP!" and money pop-ups frozen all over the map until a reload.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3413,8 +3413,11 @@
|
||||||
"pie.found_pitch":"Deine eigene Konstellation: Raketen, Tausende Satelliten (Pies) in Schalen (Krusten) und Schüsseln am Boden. Nichts, was du bisher gebaut hast, kostet so viel.",
|
"pie.found_pitch":"Deine eigene Konstellation: Raketen, Tausende Satelliten (Pies) in Schalen (Krusten) und Schüsseln am Boden. Nichts, was du bisher gebaut hast, kostet so viel.",
|
||||||
"pie.found_price":"Firma gründen {price} · {mo}/Monat",
|
"pie.found_price":"Firma gründen {price} · {mo}/Monat",
|
||||||
"pie.founder_feed":"Der Gründer postet",
|
"pie.founder_feed":"Der Gründer postet",
|
||||||
|
"pie.fp_3am":"Poste um 3 Uhr nachts, denn Schlaf ist ein Legacy-Protokoll. Unsere Pies schmecken 40 % besser als letztes Quartal.",
|
||||||
|
"pie.fp_astro":"Astronomen sagen, unsere Pies fotobomben ihre Teleskope. Haben sie mal zwischen ihnen durchgeschaut?",
|
||||||
"pie.fp_baked":"{crust} ist durchgebacken. Nächster Halt: Mars. Wahrscheinlich nächstes Jahr.",
|
"pie.fp_baked":"{crust} ist durchgebacken. Nächster Halt: Mars. Wahrscheinlich nächstes Jahr.",
|
||||||
"pie.fp_booster":"Der Booster ist bei der Landung umgekippt. Das war ein geplantes Kippen. Wir nennen es schnelle horizontale Bergung.",
|
"pie.fp_booster":"Der Booster ist bei der Landung umgekippt. Das war ein geplantes Kippen. Wir nennen es schnelle horizontale Bergung.",
|
||||||
|
"pie.fp_debris":"Eine kleine Essensschlacht in {crust}. Krümel sind ein Zeichen für eine gesunde Konstellation.",
|
||||||
"pie.fp_dish":"Unsere erste Pie-Schüssel steht. Meine Mutter sagt, der Empfang ist super.",
|
"pie.fp_dish":"Unsere erste Pie-Schüssel steht. Meine Mutter sagt, der Empfang ist super.",
|
||||||
"pie.fp_fail":"Der heutige Start war ein voller Erfolg. Die Rakete ist jetzt an vielen Orten gleichzeitig.",
|
"pie.fp_fail":"Der heutige Start war ein voller Erfolg. Die Rakete ist jetzt an vielen Orten gleichzeitig.",
|
||||||
"pie.fp_found":"{co} gegründet. Unsere Mission: Pies in den Himmel, damit jeder ein Stück abbekommt.",
|
"pie.fp_found":"{co} gegründet. Unsere Mission: Pies in den Himmel, damit jeder ein Stück abbekommt.",
|
||||||
|
|
@ -3422,6 +3425,8 @@
|
||||||
"pie.fp_promise":"Versprochen: volle Abdeckung bis Jahr {n}. Schreibt es auf.",
|
"pie.fp_promise":"Versprochen: volle Abdeckung bis Jahr {n}. Schreibt es auf.",
|
||||||
"pie.fp_rename":"Wir heißen jetzt {co}. Der alte Name hat die Vision ausgebremst.",
|
"pie.fp_rename":"Wir heißen jetzt {co}. Der alte Name hat die Vision ausgebremst.",
|
||||||
"pie.fp_slip":"Volle Abdeckung ist jetzt Jahr {n}. Es war immer Jahr {n}. Lest das Kleingedruckte.",
|
"pie.fp_slip":"Volle Abdeckung ist jetzt Jahr {n}. Es war immer Jahr {n}. Lest das Kleingedruckte.",
|
||||||
|
"pie.fp_spat":"Irgendeine Regierung hat Fragen. Wir lieben Fragen. Wir beantworten alle, irgendwann, in einem Thread.",
|
||||||
|
"pie.fp_storm":"Die Sonne ist neidisch auf {crust}. Völlig normal. Weltraumwetter ist einfach Wetter, nur mehr.",
|
||||||
"pie.fp_test":"Testflug {n} endete in einem Feuerball, genau wie erhofft. Wir haben so viel gelernt.",
|
"pie.fp_test":"Testflug {n} endete in einem Feuerball, genau wie erhofft. Wir haben so viel gelernt.",
|
||||||
"pie.fp_tour":"Ich trete als Tier 1 kurz zurück und gehe auf Zuhörtour. Reden werde hauptsächlich ich.",
|
"pie.fp_tour":"Ich trete als Tier 1 kurz zurück und gehe auf Zuhörtour. Reden werde hauptsächlich ich.",
|
||||||
"pie.half_baked":"Halbgar",
|
"pie.half_baked":"Halbgar",
|
||||||
|
|
@ -3500,6 +3505,97 @@
|
||||||
"pie_globe.switch_to_day_view":"Zur Tagansicht wechseln",
|
"pie_globe.switch_to_day_view":"Zur Tagansicht wechseln",
|
||||||
"pie_globe.switch_to_night_view":"Zur Nachtansicht wechseln",
|
"pie_globe.switch_to_night_view":"Zur Nachtansicht wechseln",
|
||||||
"pie_globe.your_pies_in_orbit":"Deine Kuchen im Orbit, zum Drehen der Erde ziehen",
|
"pie_globe.your_pies_in_orbit":"Deine Kuchen im Orbit, zum Drehen der Erde ziehen",
|
||||||
|
"pie_inc.dig_msg":"Ein Bagger hat die Backhaul-Glasfaser unter der Pie-Schüssel in {city} gefunden. Die Schüssel ist heil, aber ihr Traffic kommt nirgends hin.",
|
||||||
|
"pie_inc.dig_press":"Die Pressestelle sagt: Die Schüssel macht eine wohlverdiente Pause vom Boden.",
|
||||||
|
"pie_inc.food_fix":"Einen Space Roomba kaufen",
|
||||||
|
"pie_inc.food_msg":"Zwei Pies in {crust} trafen sich mit 7 km/s. Die Krümel haben {n} weitere erwischt, und die Wolke macht jeden Start dorthin ein Jahr lang {p} teurer.",
|
||||||
|
"pie_inc.food_press":"Die Pressestelle sagt: Das war eine freiwillige Umverteilung von Pie.",
|
||||||
|
"pie_inc.founder_dip":"Der Founder hat Gedanken zum Router-Geschmack deiner Kunden gepostet. Alle Kunden sind etwas schlechter gelaunt.",
|
||||||
|
"pie_inc.founder_press":"Die Pressestelle sagt: Der Account wurde vom Founder gehackt, der gerade in einem Meeting ist.",
|
||||||
|
"pie_inc.founder_spike":"Der Founder hat ein Meme über dein Netz gepostet, und es ging viral. Die Nachfrage steigt für ein paar Tage.",
|
||||||
|
"pie_inc.laser_msg":"Der Chaos-Affe hat einen Spiegel auf die Laser-Links in {crust} gerichtet. Die Pies dort reden ein paar Tage nur über Schüsseln.",
|
||||||
|
"pie_inc.laser_press":"Die Pressestelle sagt: Die Laser ruhen ihre Augen aus.",
|
||||||
|
"pie_inc.rain_msg":"Ein Tropenregen über {city}: Die Pie-Schüssel dort läuft mit 30 %, bis die Wolken weiterziehen.",
|
||||||
|
"pie_inc.rain_press":"Die Pressestelle sagt: Das Signal wird für dich gewaschen.",
|
||||||
|
"pie_inc.safe_now":"Jetzt Safe Mode",
|
||||||
|
"pie_inc.storm_msg":"Ein Sonnensturm kocht {crust}: Bis zu {p} der Pies könnten diese Woche vom Himmel fallen. Der Safe Mode rettet die meisten, trägt aber nichts.",
|
||||||
|
"pie_inc.storm_press":"Die Pressestelle sagt: Pies sind dafür gebaut, zur Erde zurückzukehren. Manche tun es nur früher.",
|
||||||
|
"pie_inc.t_dig":"Bagger an der Pie-Schüssel",
|
||||||
|
"pie_inc.t_food":"Essensschlacht im Orbit",
|
||||||
|
"pie_inc.t_founder":"Der Founder hat um 3 Uhr nachts gepostet",
|
||||||
|
"pie_inc.t_laser":"Laser-Link gekappt",
|
||||||
|
"pie_inc.t_rain":"Regendämpfung",
|
||||||
|
"pie_inc.t_storm":"Sonnensturm",
|
||||||
|
"pie_spat.air_b":"{a} und {b} wollen ihren Traffic jeweils von den Pie-Schüsseln des anderen fernhalten, aus Gründen, die beide offensichtlich nennen.",
|
||||||
|
"pie_spat.air_c0":"Netz aufteilen: Schüsseln in beiden laufen {n} Tage mit {p}",
|
||||||
|
"pie_spat.air_c1":"Ablehnen: Beide setzen die Landerechte {n} Tage aus",
|
||||||
|
"pie_spat.air_p":"Die Pressestelle sagt: Grenzen sind nur Latenz mit Papierkram.",
|
||||||
|
"pie_spat.air_r0":"Du hast das Netz aufgeteilt. Schüsseln in beiden Ländern laufen {n} Tage mit weniger Kapazität.",
|
||||||
|
"pie_spat.air_r1":"{a} und {b} haben deine Landerechte bis {d} ausgesetzt. Da sind sie sich wenigstens einig.",
|
||||||
|
"pie_spat.air_t":"Nicht über meinem Luftraum",
|
||||||
|
"pie_spat.astro_b":"Astronomen haben {n} deiner Pies auf ihren Bildern gezählt und schreiben einen sehr langen Brief.",
|
||||||
|
"pie_spat.astro_c0":"VisorSat-Sonnenblenden anbringen ({cost})",
|
||||||
|
"pie_spat.astro_c1":"Die andere Hälfte des Himmels empfehlen (Wissenschaftskunden −{n} Laune)",
|
||||||
|
"pie_spat.astro_p":"Die Pressestelle sagt: Wir helfen Astronomen, Pies zu entdecken.",
|
||||||
|
"pie_spat.astro_r0":"Jeder Pie bekommt eine kleine Sonnenblende. Die Astronomen schicken eine Dankeskarte, mit Fußnote.",
|
||||||
|
"pie_spat.astro_r1":"Die Universitäten in deinem Netz sind nicht amüsiert.",
|
||||||
|
"pie_spat.astro_t":"Astronomen beschweren sich",
|
||||||
|
"pie_spat.auto":"Niemand hat rechtzeitig geantwortet, also hat es sich selbst entschieden.",
|
||||||
|
"pie_spat.band_b":"{a} und {b} beanspruchen dasselbe Satellitenband. Jede Delegation hat ihren Nationalsnack zur Anhörung mitgebracht, und beide sagen, sie hätten ihn erfunden.",
|
||||||
|
"pie_spat.band_c":"Auf die Seite von {a} ({b} setzt die Landerechte {n} Tage aus)",
|
||||||
|
"pie_spat.band_p":"Die Pressestelle sagt: Wir unterstützen den Anspruch jedes Landes auf alles.",
|
||||||
|
"pie_spat.band_r":"Du stehst auf der Seite von {a}. {b} hat deine Landerechte bis {d} ausgesetzt.",
|
||||||
|
"pie_spat.band_r_none":"Du hast keine Seite gewählt, also haben {a} und {b} deine Landerechte {n} Tage ausgesetzt.",
|
||||||
|
"pie_spat.band_t":"Frequenzstreit",
|
||||||
|
"pie_spat.decide":"Entscheiden",
|
||||||
|
"pie_spat.decide_by":"Entscheide bis {d}, sonst entscheidet es sich selbst.",
|
||||||
|
"pie_spat.decided":"Entschieden. Es läuft, bis es vorbei ist.",
|
||||||
|
"pie_spat.eyebrow":"Geopolitik",
|
||||||
|
"pie_spat.grab_b":"Die Heimatbehörde einer rivalisierenden Konstellation hat die besten Orbits zuerst beantragt, in dreifacher Ausfertigung, freitags um 16:59.",
|
||||||
|
"pie_spat.grab_c0":"Anwälte bezahlen ({cost}): deine nächsten {n} Starts kosten {p} mehr",
|
||||||
|
"pie_spat.grab_c1":"Schulterzucken: deine nächsten {n} Starts kosten {p} mehr",
|
||||||
|
"pie_spat.grab_p":"Die Pressestelle sagt: Der Weltraum ist groß, die guten Stellen kriegen wir nächstes Jahr.",
|
||||||
|
"pie_spat.grab_r":"Deine nächsten {n} Starts kosten {p} mehr, bis der Papierkram aufholt.",
|
||||||
|
"pie_spat.grab_t":"Orbitaler Landraub",
|
||||||
|
"pie_spat.home_b":"{a} sagt, die Daten seiner Kunden bleiben zu Hause: Ihr Traffic darf nur auf einer Pie-Schüssel im Land landen.",
|
||||||
|
"pie_spat.home_c0":"Innerhalb von {n} Tagen dort eine Schüssel bauen",
|
||||||
|
"pie_spat.home_c1":"Eine Ausnahme kaufen ({cost})",
|
||||||
|
"pie_spat.home_fined":"Keine Schüssel in {a} rechtzeitig: {cost} Strafe, und die Kunden dort sind sauer.",
|
||||||
|
"pie_spat.home_p":"Die Pressestelle sagt: Unsere Daten haben sowieso Heimweh.",
|
||||||
|
"pie_spat.home_r0":"{a} wartet bis {d} auf eine eigene Schüssel.",
|
||||||
|
"pie_spat.home_r1":"Die Ausnahme ist gestempelt, gerahmt und abgeheftet.",
|
||||||
|
"pie_spat.home_t":"Daten bleiben zu Hause",
|
||||||
|
"pie_spat.home_won":"Eine Pie-Schüssel in {a}: Die Daten sind zu Hause, und die Kunden dort freuen sich.",
|
||||||
|
"pie_spat.jam_b":"Jemand an der Grenze von {a} und {b} stört den Himmel. Pie-Schüsseln dort laufen bis {d} mit {p}.",
|
||||||
|
"pie_spat.jam_c0":"Filter kaufen ({cost}): Schüsseln dort laufen mit {p}",
|
||||||
|
"pie_spat.jam_c1":"Mit {p} aussitzen",
|
||||||
|
"pie_spat.jam_p":"Die Pressestelle sagt: Das ist keine Störung, das ist ein sehr lauter Wetterbericht.",
|
||||||
|
"pie_spat.jam_r0":"Filter eingebaut. Die Schüsseln laufen wieder mit {p}.",
|
||||||
|
"pie_spat.jam_r1":"Du sitzt es aus. Bis {d} sollte Ruhe sein.",
|
||||||
|
"pie_spat.jam_t":"Störsender an der Grenze",
|
||||||
|
"pie_spat.kill_b":"Die Regierung von {a} will während der nationalen Prüfungswoche einen Ausschalter für deine Pies, damit niemand die Antworten nachschlägt.",
|
||||||
|
"pie_spat.kill_c0":"Zustimmen (Kunden in {a} −{n} Laune)",
|
||||||
|
"pie_spat.kill_c1":"Ablehnen (Landerechte {n} Tage ausgesetzt)",
|
||||||
|
"pie_spat.kill_p":"Die Pressestelle sagt: Wir sind große Fans von Prüfungen und von Schaltern.",
|
||||||
|
"pie_spat.kill_r0":"Der Schalter ist eingebaut und mit nicht anfassen beschriftet. {n} Kunden dort sind nicht beeindruckt.",
|
||||||
|
"pie_spat.kill_r1":"{a} hat deine Landerechte bis {d} ausgesetzt. Viel Glück bei den Prüfungen.",
|
||||||
|
"pie_spat.kill_t":"Ausschalter, bitte",
|
||||||
|
"pie_spat.lic_b":"Das Lizenzamt von {a} hat deine Landerechte-Akte verloren und nimmt vorerst keine neuen an.",
|
||||||
|
"pie_spat.lic_c0":"Einen Lobbyisten schicken ({cost}): {n} Tage abgelehnt",
|
||||||
|
"pie_spat.lic_c1":"Höflich anstehen: {n} Tage abgelehnt",
|
||||||
|
"pie_spat.lic_p":"Die Pressestelle sagt: Wir respektieren, wie gründlich {a} Papierkram nimmt.",
|
||||||
|
"pie_spat.lic_r":"{a} verweigert Landerechte bis {d}.",
|
||||||
|
"pie_spat.lic_t":"Landerechte verweigert",
|
||||||
|
"pie_spat.pad_b":"{a} bietet dir eine geförderte Startrampe an, wenn du dort {n} Pie-Schüsseln baust. Es gibt ein Band zum Durchschneiden.",
|
||||||
|
"pie_spat.pad_c0":"Abgemacht: {n} Schüsseln in {a} innerhalb von {d} Tagen",
|
||||||
|
"pie_spat.pad_c1":"Höflich ablehnen",
|
||||||
|
"pie_spat.pad_cheque":"{a} schickt statt einer Rampe einen Scheck über {cost}. Das Band war schön.",
|
||||||
|
"pie_spat.pad_failed":"Nicht genug Schüsseln rechtzeitig. {a} setzt die Landerechte bis {d} aus.",
|
||||||
|
"pie_spat.pad_p":"Die Pressestelle sagt: Zu einem Band sagen wir nie nein.",
|
||||||
|
"pie_spat.pad_r0":"Bau bis {d} {n} Schüsseln in {a}, und die Rampe gehört dir.",
|
||||||
|
"pie_spat.pad_r1":"Du hast abgelehnt. Händeschütteln gab es trotzdem.",
|
||||||
|
"pie_spat.pad_t":"Startrampen-Diplomatie",
|
||||||
|
"pie_spat.pad_won":"Band durchgeschnitten: eine kostenlose Startrampe in {city}.",
|
||||||
"pitcairn.uk_grant_mo":"Zuschuss aus UK {mo}/Monat",
|
"pitcairn.uk_grant_mo":"Zuschuss aus UK {mo}/Monat",
|
||||||
"pitcairn.uk_grant_mo_once_islanders":"Zuschuss aus UK {mo}/Monat, sobald die Inselbewohner online sind",
|
"pitcairn.uk_grant_mo_once_islanders":"Zuschuss aus UK {mo}/Monat, sobald die Inselbewohner online sind",
|
||||||
"pni_all.additional_per_month":"Zusätzliche Kosten pro Monat",
|
"pni_all.additional_per_month":"Zusätzliche Kosten pro Monat",
|
||||||
|
|
|
||||||
|
|
@ -3411,8 +3411,11 @@
|
||||||
"pie.found_pitch":"Tu propia constelación: cohetes, miles de satélites (tartas) en capas (cortezas) y antenas en tierra. Nada de lo que has construido hasta ahora cuesta tanto.",
|
"pie.found_pitch":"Tu propia constelación: cohetes, miles de satélites (tartas) en capas (cortezas) y antenas en tierra. Nada de lo que has construido hasta ahora cuesta tanto.",
|
||||||
"pie.found_price":"Fundar la empresa {price} · {mo}/mes",
|
"pie.found_price":"Fundar la empresa {price} · {mo}/mes",
|
||||||
"pie.founder_feed":"Lo que publica el Fundador",
|
"pie.founder_feed":"Lo que publica el Fundador",
|
||||||
|
"pie.fp_3am":"Publico a las 3 de la mañana porque dormir es un protocolo obsoleto. Nuestras tartas son un 40 % más ricas que el trimestre pasado.",
|
||||||
|
"pie.fp_astro":"Los astrónomos dicen que nuestras tartas se cuelan en sus telescopios. ¿Han probado a mirar entre ellas?",
|
||||||
"pie.fp_baked":"{crust} está bien horneada. Próxima parada: Marte. Probablemente el año que viene.",
|
"pie.fp_baked":"{crust} está bien horneada. Próxima parada: Marte. Probablemente el año que viene.",
|
||||||
"pie.fp_booster":"El propulsor se volcó al aterrizar. Fue un vuelco planeado. Lo llamamos recuperación horizontal rápida.",
|
"pie.fp_booster":"El propulsor se volcó al aterrizar. Fue un vuelco planeado. Lo llamamos recuperación horizontal rápida.",
|
||||||
|
"pie.fp_debris":"Una pequeña guerra de comida en {crust}. Las migas son señal de una constelación sana.",
|
||||||
"pie.fp_dish":"Nuestra primera antena-tarta ya funciona. Mi madre dice que la señal es genial.",
|
"pie.fp_dish":"Nuestra primera antena-tarta ya funciona. Mi madre dice que la señal es genial.",
|
||||||
"pie.fp_fail":"El lanzamiento de hoy ha sido un éxito enorme. El cohete ahora está en muchos sitios a la vez.",
|
"pie.fp_fail":"El lanzamiento de hoy ha sido un éxito enorme. El cohete ahora está en muchos sitios a la vez.",
|
||||||
"pie.fp_found":"Fundada {co}. Nuestra misión: tartas en el cielo para que todos tengan su porción.",
|
"pie.fp_found":"Fundada {co}. Nuestra misión: tartas en el cielo para que todos tengan su porción.",
|
||||||
|
|
@ -3420,6 +3423,8 @@
|
||||||
"pie.fp_promise":"Promesa: cobertura total para el año {n}. Apuntadlo.",
|
"pie.fp_promise":"Promesa: cobertura total para el año {n}. Apuntadlo.",
|
||||||
"pie.fp_rename":"Ahora somos {co}. El nombre viejo frenaba la visión.",
|
"pie.fp_rename":"Ahora somos {co}. El nombre viejo frenaba la visión.",
|
||||||
"pie.fp_slip":"La cobertura total es ahora para el año {n}. Siempre fue el año {n}. Leed la letra pequeña.",
|
"pie.fp_slip":"La cobertura total es ahora para el año {n}. Siempre fue el año {n}. Leed la letra pequeña.",
|
||||||
|
"pie.fp_spat":"Algún gobierno tiene preguntas. Nos encantan las preguntas. Las contestamos todas, algún día, en un hilo.",
|
||||||
|
"pie.fp_storm":"El Sol tiene envidia de {crust}. Totalmente normal. El clima espacial es clima, pero más.",
|
||||||
"pie.fp_test":"El vuelo de prueba {n} acabó en una bola de fuego, tal como esperábamos. Hemos aprendido muchísimo.",
|
"pie.fp_test":"El vuelo de prueba {n} acabó en una bola de fuego, tal como esperábamos. Hemos aprendido muchísimo.",
|
||||||
"pie.fp_tour":"Me aparto del Tier 1 para hacer una gira de escucha. Sobre todo hablaré yo.",
|
"pie.fp_tour":"Me aparto del Tier 1 para hacer una gira de escucha. Sobre todo hablaré yo.",
|
||||||
"pie.half_baked":"A medio hornear",
|
"pie.half_baked":"A medio hornear",
|
||||||
|
|
@ -3498,6 +3503,97 @@
|
||||||
"pie_globe.switch_to_day_view":"Cambiar a vista de día",
|
"pie_globe.switch_to_day_view":"Cambiar a vista de día",
|
||||||
"pie_globe.switch_to_night_view":"Cambiar a vista nocturna",
|
"pie_globe.switch_to_night_view":"Cambiar a vista nocturna",
|
||||||
"pie_globe.your_pies_in_orbit":"Tus tartas en órbita, arrastra para girar la Tierra",
|
"pie_globe.your_pies_in_orbit":"Tus tartas en órbita, arrastra para girar la Tierra",
|
||||||
|
"pie_inc.dig_msg":"Una excavadora encontró la fibra de backhaul bajo la antena-tarta de {city}. La antena está bien, pero su tráfico no tiene adónde ir.",
|
||||||
|
"pie_inc.dig_press":"La oficina de prensa dice: la antena se toma un merecido descanso del suelo.",
|
||||||
|
"pie_inc.food_fix":"Comprar una Space Roomba",
|
||||||
|
"pie_inc.food_msg":"Dos tartas de {crust} se cruzaron a 7 km/s. Las migas tumbaron {n} más, y la nube encarece un {p} cada lanzamiento allí durante un año.",
|
||||||
|
"pie_inc.food_press":"La oficina de prensa dice: fue un reparto voluntario de tarta.",
|
||||||
|
"pie_inc.founder_dip":"El Fundador publicó opiniones sobre el gusto en routers de tus clientes. El ánimo de todos baja un poco.",
|
||||||
|
"pie_inc.founder_press":"La oficina de prensa dice: el Fundador hackeó la cuenta y ahora está en una reunión.",
|
||||||
|
"pie_inc.founder_spike":"El Fundador publicó un meme sobre tu red y se hizo viral. La demanda sube unos días.",
|
||||||
|
"pie_inc.laser_msg":"El mono del caos apuntó un espejo a los enlaces láser de {crust}. Las tartas de allí solo hablan por antenas unos días.",
|
||||||
|
"pie_inc.laser_press":"La oficina de prensa dice: los láseres están descansando la vista.",
|
||||||
|
"pie_inc.rain_msg":"Un aguacero tropical sobre {city}: la antena-tarta de allí funciona al 30 % hasta que pasen las nubes.",
|
||||||
|
"pie_inc.rain_press":"La oficina de prensa dice: estamos lavando la señal para tu comodidad.",
|
||||||
|
"pie_inc.safe_now":"Modo seguro ya",
|
||||||
|
"pie_inc.storm_msg":"Una tormenta solar está horneando {crust}: hasta un {p} de sus tartas podría caer del cielo esta semana. El modo seguro salva la mayoría, pero no transporta nada.",
|
||||||
|
"pie_inc.storm_press":"La oficina de prensa dice: las tartas están diseñadas para volver a la Tierra. Algunas solo se adelantan.",
|
||||||
|
"pie_inc.t_dig":"Excavadora en la antena-tarta",
|
||||||
|
"pie_inc.t_food":"Guerra de comida en órbita",
|
||||||
|
"pie_inc.t_founder":"El Fundador publicó a las 3 de la mañana",
|
||||||
|
"pie_inc.t_laser":"Enlace láser cortado",
|
||||||
|
"pie_inc.t_rain":"Desvanecimiento por lluvia",
|
||||||
|
"pie_inc.t_storm":"Tormenta solar",
|
||||||
|
"pie_spat.air_b":"{a} y {b} quieren que su tráfico no pase por las antenas-tarta del otro, por razones que ambos llaman evidentes.",
|
||||||
|
"pie_spat.air_c0":"Dividir la red: las antenas de ambos al {p} durante {n} días",
|
||||||
|
"pie_spat.air_c1":"Negarse: ambos suspenden los derechos de aterrizaje {n} días",
|
||||||
|
"pie_spat.air_p":"La oficina de prensa dice: las fronteras son solo latencia con papeleo.",
|
||||||
|
"pie_spat.air_r0":"Has dividido la red. Las antenas de ambos países funcionan con menos capacidad durante {n} días.",
|
||||||
|
"pie_spat.air_r1":"{a} y {b} suspendieron tus derechos de aterrizaje hasta {d}. En esto, al menos, están de acuerdo.",
|
||||||
|
"pie_spat.air_t":"No sobre mi espacio aéreo",
|
||||||
|
"pie_spat.astro_b":"Los astrónomos contaron {n} de tus tartas cruzando sus fotos y están escribiendo una carta muy larga.",
|
||||||
|
"pie_spat.astro_c0":"Poner parasoles VisorSat ({cost})",
|
||||||
|
"pie_spat.astro_c1":"Sugerir la otra mitad del cielo (clientes científicos −{n} de ánimo)",
|
||||||
|
"pie_spat.astro_p":"La oficina de prensa dice: ayudamos a los astrónomos a descubrir tartas.",
|
||||||
|
"pie_spat.astro_r0":"Cada tarta recibe una pequeña visera. Los astrónomos mandan una tarjeta de agradecimiento, con nota al pie.",
|
||||||
|
"pie_spat.astro_r1":"Las universidades de tu red no están contentas.",
|
||||||
|
"pie_spat.astro_t":"Los astrónomos se quejan",
|
||||||
|
"pie_spat.auto":"Nadie contestó a tiempo, así que se decidió solo.",
|
||||||
|
"pie_spat.band_b":"{a} y {b} reclaman la misma banda de satélite. Cada delegación llevó su aperitivo nacional a la audiencia, y las dos dicen que lo inventaron.",
|
||||||
|
"pie_spat.band_c":"Ponerse del lado de {a} ({b} suspende los derechos de aterrizaje {n} días)",
|
||||||
|
"pie_spat.band_p":"La oficina de prensa dice: apoyamos el derecho de cada país a todo.",
|
||||||
|
"pie_spat.band_r":"Te pusiste del lado de {a}. {b} suspendió tus derechos de aterrizaje hasta {d}.",
|
||||||
|
"pie_spat.band_r_none":"No elegiste bando, así que {a} y {b} suspendieron tus derechos de aterrizaje {n} días.",
|
||||||
|
"pie_spat.band_t":"Riña por el espectro",
|
||||||
|
"pie_spat.decide":"Decidir",
|
||||||
|
"pie_spat.decide_by":"Decide antes del {d}, o se decidirá solo.",
|
||||||
|
"pie_spat.decided":"Decidido. Sigue su curso hasta que termine.",
|
||||||
|
"pie_spat.eyebrow":"Geopolítica",
|
||||||
|
"pie_spat.grab_b":"El regulador de una constelación rival pidió primero las mejores órbitas, por triplicado, un viernes a las 16:59.",
|
||||||
|
"pie_spat.grab_c0":"Pagar abogados ({cost}): tus próximos {n} lanzamientos cuestan un {p} más",
|
||||||
|
"pie_spat.grab_c1":"Encogerse de hombros: tus próximos {n} lanzamientos cuestan un {p} más",
|
||||||
|
"pie_spat.grab_p":"La oficina de prensa dice: el espacio es grande y el año que viene nos tocan las partes buenas.",
|
||||||
|
"pie_spat.grab_r":"Tus próximos {n} lanzamientos cuestan un {p} más mientras se pone al día el papeleo.",
|
||||||
|
"pie_spat.grab_t":"Acaparamiento orbital",
|
||||||
|
"pie_spat.home_b":"{a} dice que los datos de sus clientes se quedan en casa: su tráfico solo puede aterrizar en una antena-tarta dentro del país.",
|
||||||
|
"pie_spat.home_c0":"Construir allí una antena en {n} días",
|
||||||
|
"pie_spat.home_c1":"Comprar una exención ({cost})",
|
||||||
|
"pie_spat.home_fined":"No hubo antena en {a} a tiempo: una multa de {cost}, y los clientes de allí están molestos.",
|
||||||
|
"pie_spat.home_p":"La oficina de prensa dice: nuestros datos echan de menos su casa de todos modos.",
|
||||||
|
"pie_spat.home_r0":"{a} espera una antena propia hasta el {d}.",
|
||||||
|
"pie_spat.home_r1":"La exención está sellada, enmarcada y archivada.",
|
||||||
|
"pie_spat.home_t":"Los datos se quedan en casa",
|
||||||
|
"pie_spat.home_won":"Una antena-tarta en {a}: los datos están en casa y los clientes de allí, contentos.",
|
||||||
|
"pie_spat.jam_b":"Alguien cerca de la frontera entre {a} y {b} está interfiriendo el cielo. Las antenas-tarta allí funcionan al {p} hasta el {d}.",
|
||||||
|
"pie_spat.jam_c0":"Comprar filtros ({cost}): las antenas allí al {p}",
|
||||||
|
"pie_spat.jam_c1":"Aguantar al {p}",
|
||||||
|
"pie_spat.jam_p":"La oficina de prensa dice: no es una interferencia, es un parte meteorológico muy alto.",
|
||||||
|
"pie_spat.jam_r0":"Filtros instalados. Las antenas vuelven al {p}.",
|
||||||
|
"pie_spat.jam_r1":"Aguantas. El ruido debería parar hacia el {d}.",
|
||||||
|
"pie_spat.jam_t":"Interferencias en la frontera",
|
||||||
|
"pie_spat.kill_b":"El gobierno de {a} quiere un interruptor para tus tartas durante la semana nacional de exámenes, para que nadie busque las respuestas.",
|
||||||
|
"pie_spat.kill_c0":"Aceptar (clientes en {a} −{n} de ánimo)",
|
||||||
|
"pie_spat.kill_c1":"Negarse (derechos de aterrizaje suspendidos {n} días)",
|
||||||
|
"pie_spat.kill_p":"La oficina de prensa dice: somos muy fans de los exámenes y de los interruptores.",
|
||||||
|
"pie_spat.kill_r0":"El interruptor está instalado con un cartel de no tocar. {n} clientes de allí no están impresionados.",
|
||||||
|
"pie_spat.kill_r1":"{a} suspendió tus derechos de aterrizaje hasta el {d}. Suerte con los exámenes.",
|
||||||
|
"pie_spat.kill_t":"Un interruptor, por favor",
|
||||||
|
"pie_spat.lic_b":"La oficina de licencias de {a} perdió tu expediente de derechos de aterrizaje y por ahora no acepta nuevos.",
|
||||||
|
"pie_spat.lic_c0":"Mandar un lobista ({cost}): rechazado {n} días",
|
||||||
|
"pie_spat.lic_c1":"Hacer cola con educación: rechazado {n} días",
|
||||||
|
"pie_spat.lic_p":"La oficina de prensa dice: respetamos el compromiso de {a} con el papeleo minucioso.",
|
||||||
|
"pie_spat.lic_r":"{a} rechaza los derechos de aterrizaje hasta el {d}.",
|
||||||
|
"pie_spat.lic_t":"Derechos de aterrizaje rechazados",
|
||||||
|
"pie_spat.pad_b":"{a} te ofrece una plataforma de lanzamiento subvencionada si construyes allí {n} antenas-tarta. Habrá cinta inaugural.",
|
||||||
|
"pie_spat.pad_c0":"Trato hecho: {n} antenas en {a} en {d} días",
|
||||||
|
"pie_spat.pad_c1":"Rechazar con educación",
|
||||||
|
"pie_spat.pad_cheque":"{a} manda un cheque de {cost} en lugar de una plataforma. La cinta era preciosa.",
|
||||||
|
"pie_spat.pad_failed":"No hubo suficientes antenas a tiempo. {a} suspende los derechos de aterrizaje hasta el {d}.",
|
||||||
|
"pie_spat.pad_p":"La oficina de prensa dice: nunca decimos que no a una cinta.",
|
||||||
|
"pie_spat.pad_r0":"Construye {n} antenas en {a} antes del {d} y la plataforma es tuya.",
|
||||||
|
"pie_spat.pad_r1":"Has rechazado. Igualmente todos se dieron la mano.",
|
||||||
|
"pie_spat.pad_t":"Diplomacia de lanzamiento",
|
||||||
|
"pie_spat.pad_won":"Cinta cortada: una plataforma de lanzamiento gratis en {city}.",
|
||||||
"pitcairn.uk_grant_mo":"Subvención británica {mo}/mes",
|
"pitcairn.uk_grant_mo":"Subvención británica {mo}/mes",
|
||||||
"pitcairn.uk_grant_mo_once_islanders":"Subvención británica {mo}/mes cuando los isleños estén en línea",
|
"pitcairn.uk_grant_mo_once_islanders":"Subvención británica {mo}/mes cuando los isleños estén en línea",
|
||||||
"pni_all.additional_per_month":"Coste mensual adicional",
|
"pni_all.additional_per_month":"Coste mensual adicional",
|
||||||
|
|
|
||||||
|
|
@ -3411,8 +3411,11 @@
|
||||||
"pie.found_pitch":"Ta propre constellation : des fusées, des milliers de satellites (tartes) sur des couches (croûtes), et des antennes au sol. Rien de ce que tu as construit jusqu'ici ne coûte autant.",
|
"pie.found_pitch":"Ta propre constellation : des fusées, des milliers de satellites (tartes) sur des couches (croûtes), et des antennes au sol. Rien de ce que tu as construit jusqu'ici ne coûte autant.",
|
||||||
"pie.found_price":"Fonder la société {price} · {mo}/mois",
|
"pie.found_price":"Fonder la société {price} · {mo}/mois",
|
||||||
"pie.founder_feed":"Les posts du Fondateur",
|
"pie.founder_feed":"Les posts du Fondateur",
|
||||||
|
"pie.fp_3am":"Je poste à 3 h du matin, car le sommeil est un protocole obsolète. Nos tartes sont 40 % plus délicieuses qu'au trimestre dernier.",
|
||||||
|
"pie.fp_astro":"Les astronomes disent que nos tartes s'incrustent dans leurs télescopes. Ont-ils essayé de regarder entre elles ?",
|
||||||
"pie.fp_baked":"{crust} est bien cuite. Prochain arrêt : Mars. Sans doute l'an prochain.",
|
"pie.fp_baked":"{crust} est bien cuite. Prochain arrêt : Mars. Sans doute l'an prochain.",
|
||||||
"pie.fp_booster":"Le booster s'est renversé à l'atterrissage. C'était prévu. On appelle ça une récupération horizontale rapide.",
|
"pie.fp_booster":"Le booster s'est renversé à l'atterrissage. C'était prévu. On appelle ça une récupération horizontale rapide.",
|
||||||
|
"pie.fp_debris":"Une petite bataille de nourriture dans {crust}. Les miettes sont le signe d'une constellation en bonne santé.",
|
||||||
"pie.fp_dish":"Notre première antenne-tarte est en service. Ma mère dit que le signal est super.",
|
"pie.fp_dish":"Notre première antenne-tarte est en service. Ma mère dit que le signal est super.",
|
||||||
"pie.fp_fail":"Le lancement d'aujourd'hui est un immense succès. La fusée est désormais à plusieurs endroits à la fois.",
|
"pie.fp_fail":"Le lancement d'aujourd'hui est un immense succès. La fusée est désormais à plusieurs endroits à la fois.",
|
||||||
"pie.fp_found":"{co} est fondée. Notre mission : mettre des tartes dans le ciel pour que chacun ait sa part.",
|
"pie.fp_found":"{co} est fondée. Notre mission : mettre des tartes dans le ciel pour que chacun ait sa part.",
|
||||||
|
|
@ -3420,6 +3423,8 @@
|
||||||
"pie.fp_promise":"Promis : couverture totale d'ici l'an {n}. Notez-le.",
|
"pie.fp_promise":"Promis : couverture totale d'ici l'an {n}. Notez-le.",
|
||||||
"pie.fp_rename":"On s'appelle {co} maintenant. L'ancien nom bridait la vision.",
|
"pie.fp_rename":"On s'appelle {co} maintenant. L'ancien nom bridait la vision.",
|
||||||
"pie.fp_slip":"La couverture totale, c'est maintenant l'an {n}. Ça a toujours été l'an {n}. Lisez les notes de bas de page.",
|
"pie.fp_slip":"La couverture totale, c'est maintenant l'an {n}. Ça a toujours été l'an {n}. Lisez les notes de bas de page.",
|
||||||
|
"pie.fp_spat":"Un gouvernement a des questions. On adore les questions. On y répond toutes, un jour, dans un thread.",
|
||||||
|
"pie.fp_storm":"Le Soleil est jaloux de {crust}. Tout à fait normal. La météo spatiale, c'est de la météo, en plus fort.",
|
||||||
"pie.fp_test":"Le vol d'essai {n} a fini en boule de feu, exactement comme espéré. On a tellement appris.",
|
"pie.fp_test":"Le vol d'essai {n} a fini en boule de feu, exactement comme espéré. On a tellement appris.",
|
||||||
"pie.fp_tour":"Je prends du recul sur le Tier 1 pour une tournée d'écoute. Surtout, je vais parler.",
|
"pie.fp_tour":"Je prends du recul sur le Tier 1 pour une tournée d'écoute. Surtout, je vais parler.",
|
||||||
"pie.half_baked":"À moitié cuite",
|
"pie.half_baked":"À moitié cuite",
|
||||||
|
|
@ -3498,6 +3503,97 @@
|
||||||
"pie_globe.switch_to_day_view":"Passer en vue de jour",
|
"pie_globe.switch_to_day_view":"Passer en vue de jour",
|
||||||
"pie_globe.switch_to_night_view":"Passer en vue de nuit",
|
"pie_globe.switch_to_night_view":"Passer en vue de nuit",
|
||||||
"pie_globe.your_pies_in_orbit":"Tes tartes en orbite, fais glisser pour tourner la Terre",
|
"pie_globe.your_pies_in_orbit":"Tes tartes en orbite, fais glisser pour tourner la Terre",
|
||||||
|
"pie_inc.dig_msg":"Une pelleteuse a trouvé la fibre de backhaul sous l'antenne-tarte de {city}. L'antenne va bien, mais son trafic ne va nulle part.",
|
||||||
|
"pie_inc.dig_press":"Le service de presse dit : l'antenne prend une pause bien méritée loin du sol.",
|
||||||
|
"pie_inc.food_fix":"Acheter un Space Roomba",
|
||||||
|
"pie_inc.food_msg":"Deux tartes de {crust} se sont croisées à 7 km/s. Les miettes en ont abîmé {n} autres, et le nuage rend chaque lancement là-bas {p} plus cher pendant un an.",
|
||||||
|
"pie_inc.food_press":"Le service de presse dit : il s'agissait d'une redistribution volontaire de tarte.",
|
||||||
|
"pie_inc.founder_dip":"Le Fondateur a publié son avis sur le goût de tes clients en matière de routeurs. L'humeur de chaque client baisse un peu.",
|
||||||
|
"pie_inc.founder_press":"Le service de presse dit : le compte a été piraté par le Fondateur, qui est maintenant en réunion.",
|
||||||
|
"pie_inc.founder_spike":"Le Fondateur a publié un mème sur ton réseau, et il est devenu viral. La demande monte pendant quelques jours.",
|
||||||
|
"pie_inc.laser_msg":"Le singe du chaos a pointé un miroir sur les liens laser de {crust}. Les tartes là-haut ne parlent que par les antennes pendant quelques jours.",
|
||||||
|
"pie_inc.laser_press":"Le service de presse dit : les lasers se reposent les yeux.",
|
||||||
|
"pie_inc.rain_msg":"Une averse tropicale sur {city} : l'antenne-tarte tourne à 30 % jusqu'à ce que les nuages passent.",
|
||||||
|
"pie_inc.rain_press":"Le service de presse dit : le signal est lavé pour ton confort.",
|
||||||
|
"pie_inc.safe_now":"Mode sans échec maintenant",
|
||||||
|
"pie_inc.storm_msg":"Une tempête solaire fait cuire {crust} : jusqu'à {p} de ses tartes pourraient tomber du ciel cette semaine. Le mode sans échec sauve la plupart, mais ne transporte rien.",
|
||||||
|
"pie_inc.storm_press":"Le service de presse dit : les tartes sont conçues pour revenir sur Terre. Certaines en avance.",
|
||||||
|
"pie_inc.t_dig":"Pelleteuse à l'antenne-tarte",
|
||||||
|
"pie_inc.t_food":"Bataille de nourriture en orbite",
|
||||||
|
"pie_inc.t_founder":"Le Fondateur a posté à 3 h du matin",
|
||||||
|
"pie_inc.t_laser":"Lien laser coupé",
|
||||||
|
"pie_inc.t_rain":"Affaiblissement par la pluie",
|
||||||
|
"pie_inc.t_storm":"Tempête solaire",
|
||||||
|
"pie_spat.air_b":"{a} et {b} veulent chacun que leur trafic évite les antennes-tartes de l'autre, pour des raisons que les deux disent évidentes.",
|
||||||
|
"pie_spat.air_c0":"Séparer le réseau : les antennes des deux à {p} pendant {n} jours",
|
||||||
|
"pie_spat.air_c1":"Refuser : les deux suspendent les droits d'atterrissage {n} jours",
|
||||||
|
"pie_spat.air_p":"Le service de presse dit : les frontières, c'est de la latence avec de la paperasse.",
|
||||||
|
"pie_spat.air_r0":"Tu as séparé le réseau. Les antennes des deux pays tournent à capacité réduite pendant {n} jours.",
|
||||||
|
"pie_spat.air_r1":"{a} et {b} ont suspendu tes droits d'atterrissage jusqu'au {d}. Là-dessus, au moins, ils sont d'accord.",
|
||||||
|
"pie_spat.air_t":"Pas dans mon espace aérien",
|
||||||
|
"pie_spat.astro_b":"Des astronomes ont compté {n} de tes tartes qui traversent leurs photos, et ils écrivent une très longue lettre.",
|
||||||
|
"pie_spat.astro_c0":"Poser des pare-soleil VisorSat ({cost})",
|
||||||
|
"pie_spat.astro_c1":"Suggérer l'autre moitié du ciel (clients scientifiques −{n} d'humeur)",
|
||||||
|
"pie_spat.astro_p":"Le service de presse dit : nous aidons les astronomes à découvrir des tartes.",
|
||||||
|
"pie_spat.astro_r0":"Chaque tarte reçoit une petite visière. Les astronomes envoient une carte de remerciement, avec une note de bas de page.",
|
||||||
|
"pie_spat.astro_r1":"Les universités de ton réseau ne sont pas amusées.",
|
||||||
|
"pie_spat.astro_t":"Les astronomes se plaignent",
|
||||||
|
"pie_spat.auto":"Personne n'a répondu à temps, alors ça s'est décidé tout seul.",
|
||||||
|
"pie_spat.band_b":"{a} et {b} revendiquent la même bande satellite. Chaque délégation a apporté son en-cas national à l'audience, et les deux disent l'avoir inventé.",
|
||||||
|
"pie_spat.band_c":"Prendre le parti de {a} ({b} suspend les droits d'atterrissage {n} jours)",
|
||||||
|
"pie_spat.band_p":"Le service de presse dit : nous soutenons la revendication de chaque pays sur tout.",
|
||||||
|
"pie_spat.band_r":"Tu as pris le parti de {a}. {b} a suspendu tes droits d'atterrissage jusqu'au {d}.",
|
||||||
|
"pie_spat.band_r_none":"Tu n'as choisi aucun camp, alors {a} et {b} ont suspendu tes droits d'atterrissage {n} jours.",
|
||||||
|
"pie_spat.band_t":"Querelle de spectre",
|
||||||
|
"pie_spat.decide":"Décider",
|
||||||
|
"pie_spat.decide_by":"Décide avant le {d}, sinon ça se décide tout seul.",
|
||||||
|
"pie_spat.decided":"Décidé. Ça suit son cours jusqu'à la fin.",
|
||||||
|
"pie_spat.eyebrow":"Géopolitique",
|
||||||
|
"pie_spat.grab_b":"Le régulateur d'une constellation rivale a déposé en premier pour les meilleures orbites, en trois exemplaires, un vendredi à 16 h 59.",
|
||||||
|
"pie_spat.grab_c0":"Payer des avocats ({cost}) : tes {n} prochains lancements coûtent {p} de plus",
|
||||||
|
"pie_spat.grab_c1":"Hausser les épaules : tes {n} prochains lancements coûtent {p} de plus",
|
||||||
|
"pie_spat.grab_p":"Le service de presse dit : l'espace est grand, on aura les bons morceaux l'an prochain.",
|
||||||
|
"pie_spat.grab_r":"Tes {n} prochains lancements coûtent {p} de plus, le temps que la paperasse suive.",
|
||||||
|
"pie_spat.grab_t":"Ruée vers les orbites",
|
||||||
|
"pie_spat.home_b":"{a} dit que les données de ses clients restent à la maison : leur trafic ne peut atterrir que sur une antenne-tarte dans le pays.",
|
||||||
|
"pie_spat.home_c0":"Construire une antenne là-bas en {n} jours",
|
||||||
|
"pie_spat.home_c1":"Acheter une dérogation ({cost})",
|
||||||
|
"pie_spat.home_fined":"Pas d'antenne en {a} à temps : une amende de {cost}, et les clients là-bas sont fâchés.",
|
||||||
|
"pie_spat.home_p":"Le service de presse dit : nos données ont le mal du pays de toute façon.",
|
||||||
|
"pie_spat.home_r0":"{a} attend sa propre antenne jusqu'au {d}.",
|
||||||
|
"pie_spat.home_r1":"La dérogation est tamponnée, encadrée et classée.",
|
||||||
|
"pie_spat.home_t":"Les données restent à la maison",
|
||||||
|
"pie_spat.home_won":"Une antenne-tarte en {a} : les données sont à la maison, et les clients là-bas sont contents.",
|
||||||
|
"pie_spat.jam_b":"Quelqu'un près de la frontière entre {a} et {b} brouille le ciel. Les antennes-tartes là-bas tournent à {p} jusqu'au {d}.",
|
||||||
|
"pie_spat.jam_c0":"Acheter des filtres ({cost}) : les antennes là-bas à {p}",
|
||||||
|
"pie_spat.jam_c1":"Attendre à {p}",
|
||||||
|
"pie_spat.jam_p":"Le service de presse dit : ce n'est pas du brouillage, c'est un bulletin météo très fort.",
|
||||||
|
"pie_spat.jam_r0":"Filtres posés. Les antennes sont revenues à {p}.",
|
||||||
|
"pie_spat.jam_r1":"Tu attends. Le bruit devrait cesser vers le {d}.",
|
||||||
|
"pie_spat.jam_t":"Brouillage près d'une frontière",
|
||||||
|
"pie_spat.kill_b":"Le gouvernement de {a} veut un interrupteur pour tes tartes pendant la semaine nationale des examens, pour que personne ne cherche les réponses.",
|
||||||
|
"pie_spat.kill_c0":"Accepter (clients en {a} −{n} d'humeur)",
|
||||||
|
"pie_spat.kill_c1":"Refuser (droits d'atterrissage suspendus {n} jours)",
|
||||||
|
"pie_spat.kill_p":"Le service de presse dit : nous adorons les examens et les interrupteurs.",
|
||||||
|
"pie_spat.kill_r0":"L'interrupteur est posé, avec une étiquette ne pas toucher. {n} clients là-bas ne sont pas impressionnés.",
|
||||||
|
"pie_spat.kill_r1":"{a} a suspendu tes droits d'atterrissage jusqu'au {d}. Bonne chance pour les examens.",
|
||||||
|
"pie_spat.kill_t":"Un interrupteur, s'il vous plaît",
|
||||||
|
"pie_spat.lic_b":"Le bureau des licences de {a} a perdu ton dossier de droits d'atterrissage et n'en accepte plus pour l'instant.",
|
||||||
|
"pie_spat.lic_c0":"Envoyer un lobbyiste ({cost}) : refusé {n} jours",
|
||||||
|
"pie_spat.lic_c1":"Faire la queue poliment : refusé {n} jours",
|
||||||
|
"pie_spat.lic_p":"Le service de presse dit : nous respectons l'attachement de {a} à une paperasse rigoureuse.",
|
||||||
|
"pie_spat.lic_r":"{a} refuse les droits d'atterrissage jusqu'au {d}.",
|
||||||
|
"pie_spat.lic_t":"Droits d'atterrissage refusés",
|
||||||
|
"pie_spat.pad_b":"{a} te propose un pas de tir subventionné si tu y construis {n} antennes-tartes. Il y aura un ruban à couper.",
|
||||||
|
"pie_spat.pad_c0":"Marché conclu : {n} antennes en {a} en {d} jours",
|
||||||
|
"pie_spat.pad_c1":"Refuser poliment",
|
||||||
|
"pie_spat.pad_cheque":"{a} envoie un chèque de {cost} au lieu d'un pas de tir. Le ruban était très joli.",
|
||||||
|
"pie_spat.pad_failed":"Pas assez d'antennes à temps. {a} suspend les droits d'atterrissage jusqu'au {d}.",
|
||||||
|
"pie_spat.pad_p":"Le service de presse dit : on ne dit jamais non à un ruban.",
|
||||||
|
"pie_spat.pad_r0":"Construis {n} antennes en {a} avant le {d}, et le pas de tir est à toi.",
|
||||||
|
"pie_spat.pad_r1":"Tu as refusé. Tout le monde s'est serré la main quand même.",
|
||||||
|
"pie_spat.pad_t":"Diplomatie du lancement",
|
||||||
|
"pie_spat.pad_won":"Ruban coupé : un pas de tir gratuit à {city}.",
|
||||||
"pitcairn.uk_grant_mo":"Subvention britannique {mo}/mois",
|
"pitcairn.uk_grant_mo":"Subvention britannique {mo}/mois",
|
||||||
"pitcairn.uk_grant_mo_once_islanders":"Subvention britannique {mo}/mois une fois les insulaires en ligne",
|
"pitcairn.uk_grant_mo_once_islanders":"Subvention britannique {mo}/mois une fois les insulaires en ligne",
|
||||||
"pni_all.additional_per_month":"Coût mensuel supplémentaire",
|
"pni_all.additional_per_month":"Coût mensuel supplémentaire",
|
||||||
|
|
|
||||||
|
|
@ -3411,8 +3411,11 @@
|
||||||
"pie.found_pitch":"La tua costellazione: razzi, migliaia di satelliti (torte) su gusci (croste) e parabole a terra. Niente di quello che hai costruito finora costa così tanto.",
|
"pie.found_pitch":"La tua costellazione: razzi, migliaia di satelliti (torte) su gusci (croste) e parabole a terra. Niente di quello che hai costruito finora costa così tanto.",
|
||||||
"pie.found_price":"Fonda l'azienda {price} · {mo}/mese",
|
"pie.found_price":"Fonda l'azienda {price} · {mo}/mese",
|
||||||
"pie.founder_feed":"I post del Fondatore",
|
"pie.founder_feed":"I post del Fondatore",
|
||||||
|
"pie.fp_3am":"Posto alle 3 di notte perché il sonno è un protocollo legacy. Le nostre torte sono il 40% più buone dello scorso trimestre.",
|
||||||
|
"pie.fp_astro":"Gli astronomi dicono che le nostre torte fanno photobombing nei loro telescopi. Hanno provato a guardare in mezzo?",
|
||||||
"pie.fp_baked":"{crust} è ben cotta. Prossima fermata: Marte. Probabilmente l'anno prossimo.",
|
"pie.fp_baked":"{crust} è ben cotta. Prossima fermata: Marte. Probabilmente l'anno prossimo.",
|
||||||
"pie.fp_booster":"Il booster si è ribaltato all'atterraggio. Era un ribaltamento previsto. Lo chiamiamo recupero orizzontale rapido.",
|
"pie.fp_booster":"Il booster si è ribaltato all'atterraggio. Era un ribaltamento previsto. Lo chiamiamo recupero orizzontale rapido.",
|
||||||
|
"pie.fp_debris":"Una piccola battaglia di cibo in {crust}. Le briciole sono segno di una costellazione in salute.",
|
||||||
"pie.fp_dish":"La nostra prima parabola-torta è attiva. Mia mamma dice che il segnale è ottimo.",
|
"pie.fp_dish":"La nostra prima parabola-torta è attiva. Mia mamma dice che il segnale è ottimo.",
|
||||||
"pie.fp_fail":"Il lancio di oggi è stato un enorme successo. Il razzo ora si trova in molti posti contemporaneamente.",
|
"pie.fp_fail":"Il lancio di oggi è stato un enorme successo. Il razzo ora si trova in molti posti contemporaneamente.",
|
||||||
"pie.fp_found":"Fondata {co}. La nostra missione: torte in cielo, così ognuno ha la sua fetta.",
|
"pie.fp_found":"Fondata {co}. La nostra missione: torte in cielo, così ognuno ha la sua fetta.",
|
||||||
|
|
@ -3420,6 +3423,8 @@
|
||||||
"pie.fp_promise":"Promessa: copertura totale entro l'anno {n}. Segnatevelo.",
|
"pie.fp_promise":"Promessa: copertura totale entro l'anno {n}. Segnatevelo.",
|
||||||
"pie.fp_rename":"Ora ci chiamiamo {co}. Il vecchio nome frenava la visione.",
|
"pie.fp_rename":"Ora ci chiamiamo {co}. Il vecchio nome frenava la visione.",
|
||||||
"pie.fp_slip":"La copertura totale ora è per l'anno {n}. È sempre stato l'anno {n}. Leggete le note a piè di pagina.",
|
"pie.fp_slip":"La copertura totale ora è per l'anno {n}. È sempre stato l'anno {n}. Leggete le note a piè di pagina.",
|
||||||
|
"pie.fp_spat":"Un governo ha delle domande. Adoriamo le domande. Rispondiamo a tutte, prima o poi, in un thread.",
|
||||||
|
"pie.fp_storm":"Il Sole è geloso di {crust}. Tutto normale. Il meteo spaziale è meteo, solo di più.",
|
||||||
"pie.fp_test":"Il volo di prova {n} è finito in una palla di fuoco, proprio come speravamo. Abbiamo imparato tantissimo.",
|
"pie.fp_test":"Il volo di prova {n} è finito in una palla di fuoco, proprio come speravamo. Abbiamo imparato tantissimo.",
|
||||||
"pie.fp_tour":"Faccio un passo indietro dal Tier 1 per un tour dell'ascolto. Parlerò soprattutto io.",
|
"pie.fp_tour":"Faccio un passo indietro dal Tier 1 per un tour dell'ascolto. Parlerò soprattutto io.",
|
||||||
"pie.half_baked":"Mezza cruda",
|
"pie.half_baked":"Mezza cruda",
|
||||||
|
|
@ -3498,6 +3503,97 @@
|
||||||
"pie_globe.switch_to_day_view":"Passa alla vista diurna",
|
"pie_globe.switch_to_day_view":"Passa alla vista diurna",
|
||||||
"pie_globe.switch_to_night_view":"Passa alla vista notturna",
|
"pie_globe.switch_to_night_view":"Passa alla vista notturna",
|
||||||
"pie_globe.your_pies_in_orbit":"Le tue torte in orbita, trascina per girare la Terra",
|
"pie_globe.your_pies_in_orbit":"Le tue torte in orbita, trascina per girare la Terra",
|
||||||
|
"pie_inc.dig_msg":"Una ruspa ha trovato la fibra di backhaul sotto la parabola-torta di {city}. La parabola sta bene, ma il suo traffico non va da nessuna parte.",
|
||||||
|
"pie_inc.dig_press":"L'ufficio stampa dice: la parabola si prende una meritata pausa dal suolo.",
|
||||||
|
"pie_inc.food_fix":"Compra uno Space Roomba",
|
||||||
|
"pie_inc.food_msg":"Due torte di {crust} si sono incontrate a 7 km/s. Le briciole ne hanno messe fuori uso altre {n}, e la nube rende ogni lancio lì più caro del {p} per un anno.",
|
||||||
|
"pie_inc.food_press":"L'ufficio stampa dice: è stata una ridistribuzione volontaria di torta.",
|
||||||
|
"pie_inc.founder_dip":"Il Fondatore ha postato le sue opinioni sul gusto in fatto di router dei tuoi clienti. L'umore di tutti cala un po'.",
|
||||||
|
"pie_inc.founder_press":"L'ufficio stampa dice: l'account è stato hackerato dal Fondatore, che ora è in riunione.",
|
||||||
|
"pie_inc.founder_spike":"Il Fondatore ha postato un meme sulla tua rete ed è diventato virale. La domanda sale per qualche giorno.",
|
||||||
|
"pie_inc.laser_msg":"La scimmia del caos ha puntato uno specchio sui link laser di {crust}. Le torte lassù parlano solo tramite parabole per qualche giorno.",
|
||||||
|
"pie_inc.laser_press":"L'ufficio stampa dice: i laser stanno riposando gli occhi.",
|
||||||
|
"pie_inc.rain_msg":"Un acquazzone tropicale su {city}: la parabola-torta lì va al 30% finché le nuvole non passano.",
|
||||||
|
"pie_inc.rain_press":"L'ufficio stampa dice: stiamo lavando il segnale per la tua comodità.",
|
||||||
|
"pie_inc.safe_now":"Modalità sicura ora",
|
||||||
|
"pie_inc.storm_msg":"Una tempesta solare sta cuocendo {crust}: fino al {p} delle sue torte potrebbe cadere dal cielo questa settimana. La modalità sicura ne salva la maggior parte, ma non trasporta nulla.",
|
||||||
|
"pie_inc.storm_press":"L'ufficio stampa dice: le torte sono progettate per tornare sulla Terra. Alcune solo in anticipo.",
|
||||||
|
"pie_inc.t_dig":"Ruspa alla parabola-torta",
|
||||||
|
"pie_inc.t_food":"Battaglia di cibo in orbita",
|
||||||
|
"pie_inc.t_founder":"Il Fondatore ha postato alle 3 di notte",
|
||||||
|
"pie_inc.t_laser":"Link laser tagliato",
|
||||||
|
"pie_inc.t_rain":"Attenuazione da pioggia",
|
||||||
|
"pie_inc.t_storm":"Tempesta solare",
|
||||||
|
"pie_spat.air_b":"{a} e {b} vogliono entrambi che il loro traffico eviti le parabole-torta dell'altro, per motivi che tutti e due chiamano ovvi.",
|
||||||
|
"pie_spat.air_c0":"Dividi la rete: le parabole di entrambi al {p} per {n} giorni",
|
||||||
|
"pie_spat.air_c1":"Rifiuta: entrambi sospendono i diritti di atterraggio per {n} giorni",
|
||||||
|
"pie_spat.air_p":"L'ufficio stampa dice: i confini sono solo latenza con le scartoffie.",
|
||||||
|
"pie_spat.air_r0":"Hai diviso la rete. Le parabole di entrambi i paesi vanno a capacità ridotta per {n} giorni.",
|
||||||
|
"pie_spat.air_r1":"{a} e {b} hanno sospeso i tuoi diritti di atterraggio fino al {d}. Almeno su questo sono d'accordo.",
|
||||||
|
"pie_spat.air_t":"Non nel mio spazio aereo",
|
||||||
|
"pie_spat.astro_b":"Gli astronomi hanno contato {n} delle tue torte che attraversano le loro foto, e stanno scrivendo una lettera molto lunga.",
|
||||||
|
"pie_spat.astro_c0":"Monta i parasole VisorSat ({cost})",
|
||||||
|
"pie_spat.astro_c1":"Suggerisci l'altra metà del cielo (clienti scientifici −{n} di umore)",
|
||||||
|
"pie_spat.astro_p":"L'ufficio stampa dice: stiamo aiutando gli astronomi a scoprire le torte.",
|
||||||
|
"pie_spat.astro_r0":"Ogni torta riceve una piccola visiera. Gli astronomi mandano un biglietto di ringraziamento, con nota a piè di pagina.",
|
||||||
|
"pie_spat.astro_r1":"Le università della tua rete non sono divertite.",
|
||||||
|
"pie_spat.astro_t":"Gli astronomi protestano",
|
||||||
|
"pie_spat.auto":"Nessuno ha risposto in tempo, quindi si è deciso da solo.",
|
||||||
|
"pie_spat.band_b":"{a} e {b} reclamano la stessa banda satellitare. Ogni delegazione ha portato il suo snack nazionale all'udienza, ed entrambe dicono di averlo inventato.",
|
||||||
|
"pie_spat.band_c":"Stai con {a} ({b} sospende i diritti di atterraggio per {n} giorni)",
|
||||||
|
"pie_spat.band_p":"L'ufficio stampa dice: sosteniamo il diritto di ogni paese a tutto.",
|
||||||
|
"pie_spat.band_r":"Hai scelto {a}. {b} ha sospeso i tuoi diritti di atterraggio fino al {d}.",
|
||||||
|
"pie_spat.band_r_none":"Non hai scelto nessuno, quindi {a} e {b} hanno sospeso i tuoi diritti di atterraggio per {n} giorni.",
|
||||||
|
"pie_spat.band_t":"Bisticcio di frequenze",
|
||||||
|
"pie_spat.decide":"Decidi",
|
||||||
|
"pie_spat.decide_by":"Decidi entro il {d}, o si decide da solo.",
|
||||||
|
"pie_spat.decided":"Deciso. Va avanti finché non finisce.",
|
||||||
|
"pie_spat.eyebrow":"Geopolitica",
|
||||||
|
"pie_spat.grab_b":"Il regolatore di una costellazione rivale ha chiesto per primo le orbite migliori, in triplice copia, di venerdì alle 16:59.",
|
||||||
|
"pie_spat.grab_c0":"Paga gli avvocati ({cost}): i tuoi prossimi {n} lanci costano il {p} in più",
|
||||||
|
"pie_spat.grab_c1":"Alza le spalle: i tuoi prossimi {n} lanci costano il {p} in più",
|
||||||
|
"pie_spat.grab_p":"L'ufficio stampa dice: lo spazio è grande e i pezzi buoni li prendiamo l'anno prossimo.",
|
||||||
|
"pie_spat.grab_r":"I tuoi prossimi {n} lanci costano il {p} in più finché le scartoffie non recuperano.",
|
||||||
|
"pie_spat.grab_t":"Corsa alle orbite",
|
||||||
|
"pie_spat.home_b":"{a} dice che i dati dei suoi clienti restano a casa: il loro traffico può atterrare solo su una parabola-torta dentro il paese.",
|
||||||
|
"pie_spat.home_c0":"Costruisci lì una parabola entro {n} giorni",
|
||||||
|
"pie_spat.home_c1":"Compra un'esenzione ({cost})",
|
||||||
|
"pie_spat.home_fined":"Nessuna parabola in {a} in tempo: una multa di {cost}, e i clienti lì sono arrabbiati.",
|
||||||
|
"pie_spat.home_p":"L'ufficio stampa dice: tanto i nostri dati hanno nostalgia di casa.",
|
||||||
|
"pie_spat.home_r0":"{a} aspetta una parabola tutta sua fino al {d}.",
|
||||||
|
"pie_spat.home_r1":"L'esenzione è timbrata, incorniciata e archiviata.",
|
||||||
|
"pie_spat.home_t":"I dati restano a casa",
|
||||||
|
"pie_spat.home_won":"Una parabola-torta in {a}: i dati sono a casa, e i clienti lì sono contenti.",
|
||||||
|
"pie_spat.jam_b":"Qualcuno vicino al confine tra {a} e {b} sta disturbando il cielo. Le parabole-torta lì vanno al {p} fino al {d}.",
|
||||||
|
"pie_spat.jam_c0":"Compra filtri ({cost}): le parabole lì al {p}",
|
||||||
|
"pie_spat.jam_c1":"Aspetta al {p}",
|
||||||
|
"pie_spat.jam_p":"L'ufficio stampa dice: non è un disturbo, è un bollettino meteo molto rumoroso.",
|
||||||
|
"pie_spat.jam_r0":"Filtri montati. Le parabole sono tornate al {p}.",
|
||||||
|
"pie_spat.jam_r1":"Aspetti. Il rumore dovrebbe finire entro il {d}.",
|
||||||
|
"pie_spat.jam_t":"Disturbi vicino a un confine",
|
||||||
|
"pie_spat.kill_b":"Il governo di {a} vuole un interruttore per le tue torte durante la settimana nazionale degli esami, così nessuno può cercare le risposte.",
|
||||||
|
"pie_spat.kill_c0":"Accetta (clienti in {a} −{n} di umore)",
|
||||||
|
"pie_spat.kill_c1":"Rifiuta (diritti di atterraggio sospesi per {n} giorni)",
|
||||||
|
"pie_spat.kill_p":"L'ufficio stampa dice: siamo grandi fan degli esami e degli interruttori.",
|
||||||
|
"pie_spat.kill_r0":"L'interruttore è montato con scritto non toccare. {n} clienti lì non sono colpiti.",
|
||||||
|
"pie_spat.kill_r1":"{a} ha sospeso i tuoi diritti di atterraggio fino al {d}. In bocca al lupo per gli esami.",
|
||||||
|
"pie_spat.kill_t":"Un interruttore, per favore",
|
||||||
|
"pie_spat.lic_b":"L'ufficio licenze di {a} ha perso la tua pratica per i diritti di atterraggio e per ora non ne accetta di nuove.",
|
||||||
|
"pie_spat.lic_c0":"Manda un lobbista ({cost}): rifiutato per {n} giorni",
|
||||||
|
"pie_spat.lic_c1":"Fai la fila educatamente: rifiutato per {n} giorni",
|
||||||
|
"pie_spat.lic_p":"L'ufficio stampa dice: rispettiamo l'impegno di {a} per le scartoffie fatte bene.",
|
||||||
|
"pie_spat.lic_r":"{a} rifiuta i diritti di atterraggio fino al {d}.",
|
||||||
|
"pie_spat.lic_t":"Diritti di atterraggio rifiutati",
|
||||||
|
"pie_spat.pad_b":"{a} ti offre una rampa di lancio sovvenzionata se ci costruisci {n} parabole-torta. Ci sarà un nastro da tagliare.",
|
||||||
|
"pie_spat.pad_c0":"Affare fatto: {n} parabole in {a} entro {d} giorni",
|
||||||
|
"pie_spat.pad_c1":"Rifiuta gentilmente",
|
||||||
|
"pie_spat.pad_cheque":"{a} manda un assegno di {cost} invece di una rampa. Il nastro era bellissimo.",
|
||||||
|
"pie_spat.pad_failed":"Parabole insufficienti in tempo. {a} sospende i diritti di atterraggio fino al {d}.",
|
||||||
|
"pie_spat.pad_p":"L'ufficio stampa dice: non diciamo mai di no a un nastro.",
|
||||||
|
"pie_spat.pad_r0":"Costruisci {n} parabole in {a} entro il {d} e la rampa è tua.",
|
||||||
|
"pie_spat.pad_r1":"Hai rifiutato. Strette di mano per tutti comunque.",
|
||||||
|
"pie_spat.pad_t":"Diplomazia dei lanci",
|
||||||
|
"pie_spat.pad_won":"Nastro tagliato: una rampa di lancio gratis a {city}.",
|
||||||
"pitcairn.uk_grant_mo":"Contributo UK {mo}/mese",
|
"pitcairn.uk_grant_mo":"Contributo UK {mo}/mese",
|
||||||
"pitcairn.uk_grant_mo_once_islanders":"Contributo UK {mo}/mese quando gli isolani saranno online",
|
"pitcairn.uk_grant_mo_once_islanders":"Contributo UK {mo}/mese quando gli isolani saranno online",
|
||||||
"pni_all.additional_per_month":"Costo mensile aggiuntivo",
|
"pni_all.additional_per_month":"Costo mensile aggiuntivo",
|
||||||
|
|
|
||||||
|
|
@ -3411,8 +3411,11 @@
|
||||||
"pie.found_pitch":"Sua própria constelação: foguetes, milhares de satélites (tortas) em camadas (crostas) e antenas no chão. Nada do que você construiu até agora custa tanto.",
|
"pie.found_pitch":"Sua própria constelação: foguetes, milhares de satélites (tortas) em camadas (crostas) e antenas no chão. Nada do que você construiu até agora custa tanto.",
|
||||||
"pie.found_price":"Fundar a empresa {price} · {mo}/mês",
|
"pie.found_price":"Fundar a empresa {price} · {mo}/mês",
|
||||||
"pie.founder_feed":"Os posts do Fundador",
|
"pie.founder_feed":"Os posts do Fundador",
|
||||||
|
"pie.fp_3am":"Postando às 3 da manhã porque dormir é um protocolo legado. Nossas tortas estão 40% mais gostosas que no último trimestre.",
|
||||||
|
"pie.fp_astro":"Astrônomos dizem que nossas tortas aparecem de penetra nos telescópios. Já tentaram olhar entre elas?",
|
||||||
"pie.fp_baked":"{crust} está bem assada. Próxima parada: Marte. Provavelmente no ano que vem.",
|
"pie.fp_baked":"{crust} está bem assada. Próxima parada: Marte. Provavelmente no ano que vem.",
|
||||||
"pie.fp_booster":"O propulsor tombou no pouso. Foi um tombo planejado. Chamamos de recuperação horizontal rápida.",
|
"pie.fp_booster":"O propulsor tombou no pouso. Foi um tombo planejado. Chamamos de recuperação horizontal rápida.",
|
||||||
|
"pie.fp_debris":"Uma pequena guerra de comida em {crust}. Migalhas são sinal de uma constelação saudável.",
|
||||||
"pie.fp_dish":"Nossa primeira antena-torta está no ar. Minha mãe disse que o sinal está ótimo.",
|
"pie.fp_dish":"Nossa primeira antena-torta está no ar. Minha mãe disse que o sinal está ótimo.",
|
||||||
"pie.fp_fail":"O lançamento de hoje foi um enorme sucesso. O foguete agora está em vários lugares ao mesmo tempo.",
|
"pie.fp_fail":"O lançamento de hoje foi um enorme sucesso. O foguete agora está em vários lugares ao mesmo tempo.",
|
||||||
"pie.fp_found":"Fundei a {co}. Nossa missão: tortas no céu para todo mundo ganhar uma fatia.",
|
"pie.fp_found":"Fundei a {co}. Nossa missão: tortas no céu para todo mundo ganhar uma fatia.",
|
||||||
|
|
@ -3420,6 +3423,8 @@
|
||||||
"pie.fp_promise":"Promessa: cobertura total até o ano {n}. Anotem.",
|
"pie.fp_promise":"Promessa: cobertura total até o ano {n}. Anotem.",
|
||||||
"pie.fp_rename":"Agora somos a {co}. O nome antigo segurava a visão.",
|
"pie.fp_rename":"Agora somos a {co}. O nome antigo segurava a visão.",
|
||||||
"pie.fp_slip":"A cobertura total agora é no ano {n}. Sempre foi o ano {n}. Leiam as notas de rodapé.",
|
"pie.fp_slip":"A cobertura total agora é no ano {n}. Sempre foi o ano {n}. Leiam as notas de rodapé.",
|
||||||
|
"pie.fp_spat":"Algum governo tem perguntas. Adoramos perguntas. Respondemos todas, um dia, numa thread.",
|
||||||
|
"pie.fp_storm":"O Sol está com inveja de {crust}. Totalmente normal. Clima espacial é clima, só que mais.",
|
||||||
"pie.fp_test":"O voo de teste {n} terminou numa bola de fogo, exatamente como esperávamos. Aprendemos muito.",
|
"pie.fp_test":"O voo de teste {n} terminou numa bola de fogo, exatamente como esperávamos. Aprendemos muito.",
|
||||||
"pie.fp_tour":"Vou me afastar do Tier 1 para uma turnê de escuta. Quem vai falar sou eu, principalmente.",
|
"pie.fp_tour":"Vou me afastar do Tier 1 para uma turnê de escuta. Quem vai falar sou eu, principalmente.",
|
||||||
"pie.half_baked":"Meio crua",
|
"pie.half_baked":"Meio crua",
|
||||||
|
|
@ -3498,6 +3503,97 @@
|
||||||
"pie_globe.switch_to_day_view":"Mudar para a visão diurna",
|
"pie_globe.switch_to_day_view":"Mudar para a visão diurna",
|
||||||
"pie_globe.switch_to_night_view":"Mudar para a visão noturna",
|
"pie_globe.switch_to_night_view":"Mudar para a visão noturna",
|
||||||
"pie_globe.your_pies_in_orbit":"Suas tortas em órbita, arraste para girar a Terra",
|
"pie_globe.your_pies_in_orbit":"Suas tortas em órbita, arraste para girar a Terra",
|
||||||
|
"pie_inc.dig_msg":"Uma retroescavadeira encontrou a fibra de backhaul debaixo da antena-torta em {city}. A antena está bem, mas o tráfego não tem para onde ir.",
|
||||||
|
"pie_inc.dig_press":"A assessoria de imprensa diz: a antena está tirando uma pausa merecida do chão.",
|
||||||
|
"pie_inc.food_fix":"Comprar um Space Roomba",
|
||||||
|
"pie_inc.food_msg":"Duas tortas de {crust} se cruzaram a 7 km/s. As migalhas derrubaram mais {n}, e a nuvem deixa cada lançamento lá {p} mais caro por um ano.",
|
||||||
|
"pie_inc.food_press":"A assessoria de imprensa diz: foi uma redistribuição voluntária de torta.",
|
||||||
|
"pie_inc.founder_dip":"O Fundador postou opiniões sobre o gosto dos seus clientes em roteadores. O humor de todo cliente cai um pouco.",
|
||||||
|
"pie_inc.founder_press":"A assessoria de imprensa diz: a conta foi hackeada pelo Fundador, que agora está em reunião.",
|
||||||
|
"pie_inc.founder_spike":"O Fundador postou um meme sobre a sua rede e viralizou. A demanda sobe por alguns dias.",
|
||||||
|
"pie_inc.laser_msg":"O macaco do caos apontou um espelho para os links laser de {crust}. As tortas lá em cima só conversam por antenas por alguns dias.",
|
||||||
|
"pie_inc.laser_press":"A assessoria de imprensa diz: os lasers estão descansando os olhos.",
|
||||||
|
"pie_inc.rain_msg":"Um temporal tropical sobre {city}: a antena-torta de lá funciona a 30% até as nuvens passarem.",
|
||||||
|
"pie_inc.rain_press":"A assessoria de imprensa diz: estamos lavando o sinal para sua comodidade.",
|
||||||
|
"pie_inc.safe_now":"Modo seguro agora",
|
||||||
|
"pie_inc.storm_msg":"Uma tempestade solar está assando {crust}: até {p} das tortas podem cair do céu esta semana. O modo seguro salva a maioria, mas não carrega nada.",
|
||||||
|
"pie_inc.storm_press":"A assessoria de imprensa diz: as tortas foram feitas para voltar à Terra. Algumas só se adiantam.",
|
||||||
|
"pie_inc.t_dig":"Retroescavadeira na antena-torta",
|
||||||
|
"pie_inc.t_food":"Guerra de comida em órbita",
|
||||||
|
"pie_inc.t_founder":"O Fundador postou às 3 da manhã",
|
||||||
|
"pie_inc.t_laser":"Link laser cortado",
|
||||||
|
"pie_inc.t_rain":"Atenuação por chuva",
|
||||||
|
"pie_inc.t_storm":"Tempestade solar",
|
||||||
|
"pie_spat.air_b":"{a} e {b} querem que o seu tráfego evite as antenas-torta do outro, por razões que ambos dizem ser óbvias.",
|
||||||
|
"pie_spat.air_c0":"Dividir a rede: antenas nos dois a {p} por {n} dias",
|
||||||
|
"pie_spat.air_c1":"Recusar: os dois suspendem os direitos de pouso por {n} dias",
|
||||||
|
"pie_spat.air_p":"A assessoria de imprensa diz: fronteiras são só latência com papelada.",
|
||||||
|
"pie_spat.air_r0":"Você dividiu a rede. As antenas nos dois países funcionam com menos capacidade por {n} dias.",
|
||||||
|
"pie_spat.air_r1":"{a} e {b} suspenderam seus direitos de pouso até {d}. Nisso, pelo menos, eles concordam.",
|
||||||
|
"pie_spat.air_t":"Não no meu espaço aéreo",
|
||||||
|
"pie_spat.astro_b":"Astrônomos contaram {n} das suas tortas riscando as fotos e estão escrevendo uma carta muito longa.",
|
||||||
|
"pie_spat.astro_c0":"Instalar viseiras VisorSat ({cost})",
|
||||||
|
"pie_spat.astro_c1":"Sugerir a outra metade do céu (clientes científicos −{n} de humor)",
|
||||||
|
"pie_spat.astro_p":"A assessoria de imprensa diz: estamos ajudando os astrônomos a descobrir tortas.",
|
||||||
|
"pie_spat.astro_r0":"Cada torta ganha uma pequena viseira. Os astrônomos mandam um cartão de agradecimento, com nota de rodapé.",
|
||||||
|
"pie_spat.astro_r1":"As universidades da sua rede não acharam graça.",
|
||||||
|
"pie_spat.astro_t":"Astrônomos reclamam",
|
||||||
|
"pie_spat.auto":"Ninguém respondeu a tempo, então decidiu sozinho.",
|
||||||
|
"pie_spat.band_b":"{a} e {b} reivindicam a mesma banda de satélite. Cada delegação levou seu petisco nacional para a audiência, e as duas dizem que o inventaram.",
|
||||||
|
"pie_spat.band_c":"Ficar do lado de {a} ({b} suspende os direitos de pouso por {n} dias)",
|
||||||
|
"pie_spat.band_p":"A assessoria de imprensa diz: apoiamos o direito de cada país a tudo.",
|
||||||
|
"pie_spat.band_r":"Você ficou do lado de {a}. {b} suspendeu os seus direitos de pouso até {d}.",
|
||||||
|
"pie_spat.band_r_none":"Você não escolheu lado, então {a} e {b} suspenderam seus direitos de pouso por {n} dias.",
|
||||||
|
"pie_spat.band_t":"Briga pelo espectro",
|
||||||
|
"pie_spat.decide":"Decidir",
|
||||||
|
"pie_spat.decide_by":"Decida até {d}, ou isso se decide sozinho.",
|
||||||
|
"pie_spat.decided":"Decidido. Segue até acabar.",
|
||||||
|
"pie_spat.eyebrow":"Geopolítica",
|
||||||
|
"pie_spat.grab_b":"O regulador de uma constelação rival pediu primeiro as melhores órbitas, em três vias, numa sexta-feira às 16h59.",
|
||||||
|
"pie_spat.grab_c0":"Pagar advogados ({cost}): seus próximos {n} lançamentos custam {p} a mais",
|
||||||
|
"pie_spat.grab_c1":"Dar de ombros: seus próximos {n} lançamentos custam {p} a mais",
|
||||||
|
"pie_spat.grab_p":"A assessoria de imprensa diz: o espaço é grande e as partes boas ficam para o ano que vem.",
|
||||||
|
"pie_spat.grab_r":"Seus próximos {n} lançamentos custam {p} a mais enquanto a papelada não chega.",
|
||||||
|
"pie_spat.grab_t":"Corrida pelas órbitas",
|
||||||
|
"pie_spat.home_b":"{a} diz que os dados dos clientes ficam em casa: o tráfego deles só pode pousar numa antena-torta dentro do país.",
|
||||||
|
"pie_spat.home_c0":"Construir lá uma antena em {n} dias",
|
||||||
|
"pie_spat.home_c1":"Comprar uma isenção ({cost})",
|
||||||
|
"pie_spat.home_fined":"Nenhuma antena em {a} a tempo: multa de {cost}, e os clientes de lá estão bravos.",
|
||||||
|
"pie_spat.home_p":"A assessoria de imprensa diz: nossos dados têm saudade de casa de qualquer jeito.",
|
||||||
|
"pie_spat.home_r0":"{a} espera por uma antena própria até {d}.",
|
||||||
|
"pie_spat.home_r1":"A isenção está carimbada, emoldurada e arquivada.",
|
||||||
|
"pie_spat.home_t":"Os dados ficam em casa",
|
||||||
|
"pie_spat.home_won":"Uma antena-torta em {a}: os dados estão em casa, e os clientes de lá estão contentes.",
|
||||||
|
"pie_spat.jam_b":"Alguém perto da fronteira entre {a} e {b} está interferindo no céu. As antenas-torta de lá funcionam a {p} até {d}.",
|
||||||
|
"pie_spat.jam_c0":"Comprar filtros ({cost}): antenas lá a {p}",
|
||||||
|
"pie_spat.jam_c1":"Esperar passar a {p}",
|
||||||
|
"pie_spat.jam_p":"A assessoria de imprensa diz: não é interferência, é uma previsão do tempo muito alta.",
|
||||||
|
"pie_spat.jam_r0":"Filtros instalados. As antenas voltaram a {p}.",
|
||||||
|
"pie_spat.jam_r1":"Você espera passar. O ruído deve parar até {d}.",
|
||||||
|
"pie_spat.jam_t":"Interferência perto da fronteira",
|
||||||
|
"pie_spat.kill_b":"O governo de {a} quer um botão de desligar para as suas tortas durante a semana nacional de provas, para ninguém procurar as respostas.",
|
||||||
|
"pie_spat.kill_c0":"Aceitar (clientes em {a} −{n} de humor)",
|
||||||
|
"pie_spat.kill_c1":"Recusar (direitos de pouso suspensos por {n} dias)",
|
||||||
|
"pie_spat.kill_p":"A assessoria de imprensa diz: somos grandes fãs de provas e de botões.",
|
||||||
|
"pie_spat.kill_r0":"O botão está instalado com o aviso não mexa. {n} clientes de lá não ficaram impressionados.",
|
||||||
|
"pie_spat.kill_r1":"{a} suspendeu seus direitos de pouso até {d}. Boa sorte nas provas.",
|
||||||
|
"pie_spat.kill_t":"Um botão de desligar, por favor",
|
||||||
|
"pie_spat.lic_b":"O escritório de licenças de {a} perdeu o seu processo de direitos de pouso e parou de aceitar novos, por enquanto.",
|
||||||
|
"pie_spat.lic_c0":"Mandar um lobista ({cost}): negado por {n} dias",
|
||||||
|
"pie_spat.lic_c1":"Esperar na fila com educação: negado por {n} dias",
|
||||||
|
"pie_spat.lic_p":"A assessoria de imprensa diz: respeitamos o compromisso de {a} com papelada minuciosa.",
|
||||||
|
"pie_spat.lic_r":"{a} nega direitos de pouso até {d}.",
|
||||||
|
"pie_spat.lic_t":"Direitos de pouso negados",
|
||||||
|
"pie_spat.pad_b":"{a} oferece uma plataforma de lançamento subsidiada se você construir {n} antenas-torta lá. Vai ter fita para cortar.",
|
||||||
|
"pie_spat.pad_c0":"Negócio fechado: {n} antenas em {a} em {d} dias",
|
||||||
|
"pie_spat.pad_c1":"Recusar com educação",
|
||||||
|
"pie_spat.pad_cheque":"{a} manda um cheque de {cost} em vez de uma plataforma. A fita era linda.",
|
||||||
|
"pie_spat.pad_failed":"Antenas insuficientes a tempo. {a} suspende os direitos de pouso até {d}.",
|
||||||
|
"pie_spat.pad_p":"A assessoria de imprensa diz: nunca dizemos não para uma fita.",
|
||||||
|
"pie_spat.pad_r0":"Construa {n} antenas em {a} até {d} e a plataforma é sua.",
|
||||||
|
"pie_spat.pad_r1":"Você recusou. Teve aperto de mão mesmo assim.",
|
||||||
|
"pie_spat.pad_t":"Diplomacia de lançamento",
|
||||||
|
"pie_spat.pad_won":"Fita cortada: uma plataforma de lançamento grátis em {city}.",
|
||||||
"pitcairn.uk_grant_mo":"Subsídio do Reino Unido {mo}/mês",
|
"pitcairn.uk_grant_mo":"Subsídio do Reino Unido {mo}/mês",
|
||||||
"pitcairn.uk_grant_mo_once_islanders":"Subsídio do Reino Unido {mo}/mês quando os ilhéus estiverem online",
|
"pitcairn.uk_grant_mo_once_islanders":"Subsídio do Reino Unido {mo}/mês quando os ilhéus estiverem online",
|
||||||
"pni_all.additional_per_month":"Custo mensal adicional",
|
"pni_all.additional_per_month":"Custo mensal adicional",
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
- pieLicOk(cc) -> true when landing rights in that country are held and in force
|
- pieLicOk(cc) -> true when landing rights in that country are held and in force
|
||||||
- pieCov(id), pieBaked(id), pieUp(id), pieLive(id), pieLiveLas(id) (10-catalog/70-pie.js and below)
|
- pieCov(id), pieBaked(id), pieUp(id), pieLive(id), pieLiveLas(id) (10-catalog/70-pie.js and below)
|
||||||
- PIE_ON.day / .launch / .fail: arrays of f(d) / f(L,ok) / f(L), called by pieDay() and pieFly()
|
- PIE_ON.day / .launch / .fail: arrays of f(d) / f(L,ok) / f(L), called by pieDay() and pieFly()
|
||||||
- S.pie.spat[id] with PIE_SPATS[id]={fix(o,s),day?(o,d)}: a spat's state, repaired by pieSanitize(), ticked and
|
- S.pie.spat[id] with PIE_SPATS[id]={fix(o,s),day?(o,d),end?(o)}: a spat's state, repaired by pieSanitize(), ticked and
|
||||||
dropped when o.until<=d by pieSpatDay(d)
|
dropped when o.until<=d by pieSpatDay(d)
|
||||||
- S.pie.crusts[id].down: day a crust is out until (a solar storm); S.pie.dishes[i].down likewise (a backhoe)
|
- S.pie.crusts[id].down: day a crust is out until (a solar storm); S.pie.dishes[i].down likewise (a backhoe)
|
||||||
- pieGlobeData() -> {crusts:[{id,alt,inc,n,las}],dishes:[{city,lat,lon}],pads:[{city,lat,lon,next}],
|
- pieGlobeData() -> {crusts:[{id,alt,inc,n,las}],dishes:[{city,lat,lon}],pads:[{city,lat,lon,next}],
|
||||||
|
|
@ -31,15 +31,15 @@ const pieCoName=()=>{const n=S.pie&&S.pie.co&&S.pie.co.name;return !n?tr(PIE_NAM
|
||||||
function pieSpend(v){const P=S.pie;if(pieSand()){P.book.wouldHave+=v;sfx('build');return true;}if(!spend(v))return false;P.book.spent+=v;return true;}
|
function pieSpend(v){const P=S.pie;if(pieSand()){P.book.wouldHave+=v;sfx('build');return true;}if(!spend(v))return false;P.book.spent+=v;return true;}
|
||||||
function pieCharge(v){const P=S.pie;if(!P||!(v>0))return;if(pieSand())P.book.wouldHave+=v;else{S.cash-=v;P.book.spent+=v;}}
|
function pieCharge(v){const P=S.pie;if(!P||!(v>0))return;if(pieSand())P.book.wouldHave+=v;else{S.cash-=v;P.book.spent+=v;}}
|
||||||
function pieMo(){const P=S.pie;if(!P||!P.co)return 0;return PIE_CO_MO+(P.fac?PIE_FAC_MO:0)+P.pads.length*PIE_PAD_MO+P.dishes.length*PIE_DISH_MO;}
|
function pieMo(){const P=S.pie;if(!P||!P.co)return 0;return PIE_CO_MO+(P.fac?PIE_FAC_MO:0)+P.pads.length*PIE_PAD_MO+P.dishes.length*PIE_DISH_MO;}
|
||||||
const pieLiveLas=id=>{const c=S.pie&&S.pie.crusts[id];let n=0;if(c)for(const k of c.cohorts)if(k.las&&S.day-k.day<CRUSTS[id].life)n+=k.n;return n;};
|
const pieLiveLas=id=>{const c=S.pie&&S.pie.crusts[id];let n=0;if(pieLasCut(id))return 0;if(c)for(const k of c.cohorts)if(k.las&&S.day-k.day<CRUSTS[id].life)n+=k.n;return n;};
|
||||||
const pieLicOk=cc=>{const l=S.pie&&S.pie.lic[cc];return !!l&&l.state==='ok'&&l.until>S.day;};
|
const pieLicOk=cc=>{const l=S.pie&&S.pie.lic[cc];return !!l&&l.state==='ok'&&l.until>S.day;};
|
||||||
function pieDishes(){const P=S&&S.pie;if(!P)return [];const o=[];for(const x of P.dishes){if(!S.pops[x.city]||x.down>S.day)continue;const cc=CITY[x.city].cc;if(pieLicOk(cc))o.push({id:x.id,city:x.city,cc,ant:x.ant,g:x.ant*PIE_ANT_G});}return o;}
|
function pieDishes(){const P=S&&S.pie;if(!P)return [];const o=[];for(const x of P.dishes){if(!S.pops[x.city]||x.down>S.day)continue;const cc=CITY[x.city].cc;if(pieLicOk(cc))o.push({id:x.id,city:x.city,cc,ant:x.ant,g:x.ant*PIE_ANT_G*pieDishMul(x)});}return o;}
|
||||||
function pieHubs(){return S&&S.pie?Object.keys(CRUSTS).filter(pieUp):[];}
|
function pieHubs(){return S&&S.pie?Object.keys(CRUSTS).filter(pieUp):[];}
|
||||||
function pieGlobeData(){const P=S&&S.pie;if(!P)return {crusts:[],dishes:[],pads:[],launches:[]};const ll=c=>({city:c,lat:CITY[c].lat,lon:CITY[c].lon});
|
function pieGlobeData(){const P=S&&S.pie;if(!P)return {crusts:[],dishes:[],pads:[],launches:[]};const ll=c=>({city:c,lat:CITY[c].lat,lon:CITY[c].lon});
|
||||||
return {crusts:Object.keys(CRUSTS).map(id=>({id,alt:CRUSTS[id].alt,inc:CRUSTS[id].inc,n:pieLive(id),las:pieLiveLas(id)})),
|
return {crusts:Object.keys(CRUSTS).map(id=>({id,alt:CRUSTS[id].alt,inc:CRUSTS[id].inc,n:pieLive(id),las:pieLiveLas(id)})),
|
||||||
dishes:P.dishes.map(x=>ll(x.city)),pads:P.pads.map(p=>({...ll(p.city),next:p.next})),launches:P.q.map(L=>({id:L.id,rk:L.rk,cr:L.cr,n:L.n,day:L.day,pad:L.pad}))};}
|
dishes:P.dishes.map(x=>ll(x.city)),pads:P.pads.map(p=>({...ll(p.city),next:p.next})),launches:P.q.map(L=>({id:L.id,rk:L.rk,cr:L.cr,n:L.n,day:L.day,pad:L.pad}))};}
|
||||||
// Spats (geopolitics) register in PIE_SPATS and keep their state in S.pie.spat; this ticks and ends them.
|
// Spats (geopolitics) register in PIE_SPATS and keep their state in S.pie.spat; this ticks and ends them.
|
||||||
function pieSpatDay(d){const sp=S.pie.spat;for(const k of Object.keys(sp)){const o=sp[k],D=PIE_SPATS[k];if(!D||o.until<=d){delete sp[k];continue;}if(D.day)D.day(o,d);}}
|
function pieSpatDay(d){const sp=S.pie.spat;for(const k of Object.keys(sp)){const o=sp[k],D=PIE_SPATS[k];if(!D||o.until<=d){delete sp[k];if(D&&D.end)D.end(o);continue;}if(D.day)D.day(o,d);}}
|
||||||
const pieYear=d=>1+Math.floor(d/360);
|
const pieYear=d=>1+Math.floor(d/360);
|
||||||
function pieFounder(k,v={}){const F=S.pie.founder,p={d:S.day,k};if(v.n!==undefined)p.n=v.n;if(v.c)p.c=v.c;F.posts.unshift(p);if(F.posts.length>PIE_POSTS)F.posts.length=PIE_POSTS;}
|
function pieFounder(k,v={}){const F=S.pie.founder,p={d:S.day,k};if(v.n!==undefined)p.n=v.n;if(v.c)p.c=v.c;F.posts.unshift(p);if(F.posts.length>PIE_POSTS)F.posts.length=PIE_POSTS;}
|
||||||
// Every promise slips by a year: made today, due in a year, broken then.
|
// Every promise slips by a year: made today, due in a year, broken then.
|
||||||
|
|
@ -60,7 +60,7 @@ function pieQuote(rk,cr,o={}){const P=S.pie;if(!P||!own(ROCKETS,rk)||!own(CRUSTS
|
||||||
if(!test&&P.stock<n)return {why:tr('pie.why_stock',{n,have:Math.floor(P.stock)})};
|
if(!test&&P.stock<n)return {why:tr('pie.why_stock',{n,have:Math.floor(P.stock)})};
|
||||||
if(!test&&pieLive(cr)+P.crusts[cr].queued+n>C.full*PIE_SPARE)return {why:tr('pie.why_full')};
|
if(!test&&pieLive(cr)+P.crusts[cr].queued+n>C.full*PIE_SPARE)return {why:tr('pie.why_full')};
|
||||||
const t0=S.day+leadDays(PIE_PREP),pad=pads.slice().sort((a,b)=>Math.max(t0,a.next)-Math.max(t0,b.next)||Math.abs(CITY[a.city].lat)-Math.abs(CITY[b.city].lat))[0];
|
const t0=S.day+leadDays(PIE_PREP),pad=pads.slice().sort((a,b)=>Math.max(t0,a.next)-Math.max(t0,b.next)||Math.abs(CITY[a.city].lat)-Math.abs(CITY[b.city].lat))[0];
|
||||||
const rocket=piePrice(R0.cost)*(1-pieEq(pad.city)),boost=rk==='again'&&!pad.boosters.length?piePrice(PIE_BOOST):0,pies=n*piePrice(PIE_PIE+(o.las?PIE_LAS:0));
|
const rocket=piePrice(R0.cost)*(1-pieEq(pad.city))*pieCrMul(cr),boost=rk==='again'&&!pad.boosters.length?piePrice(PIE_BOOST):0,pies=n*piePrice(PIE_PIE+(o.las?PIE_LAS:0));
|
||||||
const ins=o.ins&&!test?Math.round((rocket+pies)*PIE_INS):0;
|
const ins=o.ins&&!test?Math.round((rocket+pies)*PIE_INS):0;
|
||||||
return {ok:true,test,n,pad:pad.city,day:Math.max(t0,pad.next),cost:Math.round(rocket+boost+pies+ins),insured:Math.round(rocket+pies),ins:!!ins};}
|
return {ok:true,test,n,pad:pad.city,day:Math.max(t0,pad.next),cost:Math.round(rocket+boost+pies+ins),insured:Math.round(rocket+pies),ins:!!ins};}
|
||||||
// The cheapest a crust can be filled from nothing (one-off costs only): rule O7.
|
// The cheapest a crust can be filled from nothing (one-off costs only): rule O7.
|
||||||
|
|
|
||||||
|
|
@ -111,7 +111,7 @@ function sanitize(s){
|
||||||
{const r=s.rules&&typeof s.rules==='object'&&!Array.isArray(s.rules)?s.rules:{};
|
{const r=s.rules&&typeof s.rules==='object'&&!Array.isArray(s.rules)?s.rules:{};
|
||||||
const m={mods:r.mods};s.rules=s.scn&&typeof s.scn==='object'?makeRules('oncall',m):s.mode==='sandbox'?makeRules('sandbox',{...m,chaos:r.chaos}):makeRules(NORMAL_PRESETS.includes(r.preset)?r.preset:'oncall',m);}
|
const m={mods:r.mods};s.rules=s.scn&&typeof s.scn==='object'?makeRules('oncall',m):s.mode==='sandbox'?makeRules('sandbox',{...m,chaos:r.chaos}):makeRules(NORMAL_PRESETS.includes(r.preset)?r.preset:'oncall',m);}
|
||||||
specSanitize(s);
|
specSanitize(s);
|
||||||
pieSanitize(s);
|
pieSanitize(s);pieIncFix(s);
|
||||||
if(s.te){if(typeof s.te!=='object')s.te=null;else{s.te.on=!!s.te.on;s.te.script=typeof s.te.script==='string'?s.te.script.slice(0,4000):'';}}
|
if(s.te){if(typeof s.te!=='object')s.te=null;else{s.te.on=!!s.te.on;s.te.script=typeof s.te.script==='string'?s.te.script.slice(0,4000):'';}}
|
||||||
return s;}
|
return s;}
|
||||||
function migrate(s){sanitize(s);
|
function migrate(s){sanitize(s);
|
||||||
|
|
|
||||||
|
|
@ -122,7 +122,7 @@ function fireFailure(only){
|
||||||
}
|
}
|
||||||
const gamingCount=()=>S.biz.reduce((n,b)=>n+(BIZ_T[b.type]?.gaming?1:0),0);
|
const gamingCount=()=>S.biz.reduce((n,b)=>n+(BIZ_T[b.type]?.gaming?1:0),0);
|
||||||
const FLOOD_WHO=[N_('failures.a_botnet_of_40_000_smart'),N_('failures.every_unpatched_baby_monitor_in'),N_('failures.a_gaming_clan_that_lost_one'),N_('failures.a_fridge_that_achieved_sentience_and'),N_('failures.a_crypto_bro_shorting_your_stock'),N_('failures.a_teenager_with_a_stolen_credit'),N_('failures.a_rival_isp_s_stress_test'),N_('failures.ten_thousand_smart_light_bulbs'),N_('failures.a_printer_just_one_printer_nobody'),N_('failures.a_botnet_run_from_a_cloud'),N_('failures.somebody_who_did_not_like_your'),N_('failures.the_internet_connected_kettles_of_a')];
|
const FLOOD_WHO=[N_('failures.a_botnet_of_40_000_smart'),N_('failures.every_unpatched_baby_monitor_in'),N_('failures.a_gaming_clan_that_lost_one'),N_('failures.a_fridge_that_achieved_sentience_and'),N_('failures.a_crypto_bro_shorting_your_stock'),N_('failures.a_teenager_with_a_stolen_credit'),N_('failures.a_rival_isp_s_stress_test'),N_('failures.ten_thousand_smart_light_bulbs'),N_('failures.a_printer_just_one_printer_nobody'),N_('failures.a_botnet_run_from_a_cloud'),N_('failures.somebody_who_did_not_like_your'),N_('failures.the_internet_connected_kettles_of_a')];
|
||||||
function incTitle(t){return {ring:tr('failures.metro_ring_cut'),site:tr('common.site_outage'),cut:tr('common.fiber_cut'),crash:tr('common.router_crash'),power:tr('common.power_outage'),transit:tr('common.upstream_outage'),ixloop:tr('common.ix_meltdown'),leak:tr('common.route_leak'),ddos:tr('common.ddos_attack'),fabric:tr('common.fabric_outage'),depeer:tr('common.peering_spat'),fatwave:tr('failures.fat_fingered_wave'),label:tr('failures.patch_panel_mishap'),interop:tr('core.interop_failure'),mtu:tr('common.mtu_mismatch'),krroute:tr('failures.rerouted_via_hong_kong'),ctrlplane:tr('failures.control_plane_meltdown'),lacp:tr('common.lacp_trouble'),loss:tr('common.packet_loss'),pmtud:tr('failures.pmtud_black_hole'),oops:tr('common.oops'),cleaner:tr('common.vacuum_incident'),prepend:tr('common.prepend_ageddon'),rpki:tr('common.rpki_invalid'),amp:tr('common.amplifier_failure'),roadmff:tr('failures.fat_fingered_roadm'),optic:tr('common.dead_optic'),maint:tr('common.maintenance_window_3a92'),ac:tr('common.cooling_failure'),hijack:tr('common.bgp_hijack'),shutdown:tr('common.government_shutdown'),redsea:tr('failures.geopolitical_cable_cut')}[t]||tr('common.incident');}
|
function incTitle(t){return {ring:tr('failures.metro_ring_cut'),site:tr('common.site_outage'),cut:tr('common.fiber_cut'),crash:tr('common.router_crash'),power:tr('common.power_outage'),transit:tr('common.upstream_outage'),ixloop:tr('common.ix_meltdown'),leak:tr('common.route_leak'),ddos:tr('common.ddos_attack'),fabric:tr('common.fabric_outage'),depeer:tr('common.peering_spat'),fatwave:tr('failures.fat_fingered_wave'),label:tr('failures.patch_panel_mishap'),interop:tr('core.interop_failure'),mtu:tr('common.mtu_mismatch'),krroute:tr('failures.rerouted_via_hong_kong'),ctrlplane:tr('failures.control_plane_meltdown'),lacp:tr('common.lacp_trouble'),loss:tr('common.packet_loss'),pmtud:tr('failures.pmtud_black_hole'),oops:tr('common.oops'),cleaner:tr('common.vacuum_incident'),prepend:tr('common.prepend_ageddon'),rpki:tr('common.rpki_invalid'),amp:tr('common.amplifier_failure'),roadmff:tr('failures.fat_fingered_roadm'),optic:tr('common.dead_optic'),maint:tr('common.maintenance_window_3a92'),ac:tr('common.cooling_failure'),hijack:tr('common.bgp_hijack'),shutdown:tr('common.government_shutdown'),redsea:tr('failures.geopolitical_cable_cut')}[t]||pieIncTitle(t)||tr('common.incident');}
|
||||||
const LINKCUT_TR=['cut','redsea'],LINKCUT_ID=['fatwave','label','interop'],POPDOWN=['crash','power','oops','cleaner','maint','shutdown'],IXDOWN=['ixloop'],TDOWN=['transit','prepend'],LINKEQ=['mtu','amp','roadmff','optic'];
|
const LINKCUT_TR=['cut','redsea'],LINKCUT_ID=['fatwave','label','interop'],POPDOWN=['crash','power','oops','cleaner','maint','shutdown'],IXDOWN=['ixloop'],TDOWN=['transit','prepend'],LINKEQ=['mtu','amp','roadmff','optic'];
|
||||||
function remainUntil(pred){let u=0;for(const x of S.inc)if(pred(x))u=Math.max(u,x.until);return u;}
|
function remainUntil(pred){let u=0;for(const x of S.inc)if(pred(x))u=Math.max(u,x.until);return u;}
|
||||||
// Remove an incident, then restore each affected thing to whatever other incidents still hold it down.
|
// Remove an incident, then restore each affected thing to whatever other incidents still hold it down.
|
||||||
|
|
@ -145,6 +145,7 @@ function clearInc(i){
|
||||||
else if(T==='ring'){if(S.pops[i.ref])S.pops[i.ref].ringcut=remainUntil(x=>x.type==='ring'&&x.ref===i.ref);}
|
else if(T==='ring'){if(S.pops[i.ref])S.pops[i.ref].ringcut=remainUntil(x=>x.type==='ring'&&x.ref===i.ref);}
|
||||||
else if(T==='ac'){if(S.pops[i.ref])S.pops[i.ref].hot=remainUntil(x=>x.type==='ac'&&x.ref===i.ref);}
|
else if(T==='ac'){if(S.pops[i.ref])S.pops[i.ref].hot=remainUntil(x=>x.type==='ac'&&x.ref===i.ref);}
|
||||||
else if(T==='amp'||T==='roadmff'){const l=S.links.find(x=>x.id===i.ref);if(l)l.eqDown=remainUntil(x=>(x.type==='amp'||x.type==='roadmff')&&x.ref===i.ref);}
|
else if(T==='amp'||T==='roadmff'){const l=S.links.find(x=>x.id===i.ref);if(l)l.eqDown=remainUntil(x=>(x.type==='amp'||x.type==='roadmff')&&x.ref===i.ref);}
|
||||||
|
else if(T.startsWith('pie'))pieIncClear(i);
|
||||||
else if(T==='optic'){const l=S.links.find(x=>x.id===i.ref);if(l&&!S.inc.some(x=>x.type==='optic'&&x.ref===i.ref))l.chFail=null;}
|
else if(T==='optic'){const l=S.links.find(x=>x.id===i.ref);if(l&&!S.inc.some(x=>x.type==='optic'&&x.ref===i.ref))l.chFail=null;}
|
||||||
}
|
}
|
||||||
function purgeInc(){S.inc=S.inc.filter(i=>{const T=i.type;if(LINKCUT_TR.includes(T))return S.links.some(l=>(l.trench||l.id)===i.ref);if(LINKCUT_ID.includes(T)||LINKEQ.includes(T))return S.links.some(l=>l.id===i.ref);if(TDOWN.includes(T))return S.transit.some(t=>t.id===i.ref);if(IXDOWN.includes(T))return S.ixp[i.ref]!==undefined;if(POPDOWN.includes(T)||T==='ac')return !!S.pops[i.ref];return true;});}
|
function purgeInc(){S.inc=S.inc.filter(i=>{const T=i.type;if(LINKCUT_TR.includes(T))return S.links.some(l=>(l.trench||l.id)===i.ref);if(LINKCUT_ID.includes(T)||LINKEQ.includes(T))return S.links.some(l=>l.id===i.ref);if(TDOWN.includes(T))return S.transit.some(t=>t.id===i.ref);if(IXDOWN.includes(T))return S.ixp[i.ref]!==undefined;if(POPDOWN.includes(T)||T==='ac')return !!S.pops[i.ref];return true;});}
|
||||||
|
|
|
||||||
71
src/game/85-incidents/60-pie.js
Normal file
71
src/game/85-incidents/60-pie.js
Normal file
|
|
@ -0,0 +1,71 @@
|
||||||
|
/* ---------- Pie in the Sky: incidents in orbit (docs/plans/pie-in-the-sky.md) ----------
|
||||||
|
Rule O5: only with chaos on (chaosMul() reads rule('chaos')), never in the first 90 days after the unlock, so a quiet
|
||||||
|
ruleset (and a sandbox without chaos) has a quiet sky. Each one is an ordinary S.inc entry: the NOC list, fixInc
|
||||||
|
(paying for a fix ends it), the day tick's "resolved", spicy stretching and standing orders all work as for cables.
|
||||||
|
What an incident does is read back from S.inc, so nothing else has to be undone. A booster that tips over on the drone
|
||||||
|
ship is in pieFly(); the astronomers ask a question, so they live with the spats (65-pie-spats.js). */
|
||||||
|
const PIE_INC=['piedig','piefood','pielaser','pierain','piestorm'],PIE_TROPIC=23.5,PIE_ROOMBA=120e6,PIE_FOOD_MUL=0.25,PIE_INC_RATE=1/40,
|
||||||
|
PIE_DIG_FIX=300000,PIE_RAIN=0.3,PIE_ASTRO_N=200;
|
||||||
|
FOUNDER_POSTS.push(N_('pie.fp_3am'),N_('pie.fp_astro'),N_('pie.fp_debris'),N_('pie.fp_spat'),N_('pie.fp_storm'));
|
||||||
|
// Chaos on, a company to annoy, and the 90 quiet days are over.
|
||||||
|
function pieChaos(){const P=S&&S.pie;return !!P&&!!P.co&&chaosMul()>0&&S.day-P.born>=PIE_QUIET;}
|
||||||
|
const pieIncOf=(t,r)=>S.inc.find(i=>i.type===t&&i.ref===r&&i.until>S.day)||null;
|
||||||
|
const pieLiveAll=()=>Object.keys(CRUSTS).reduce((a,id)=>a+pieLive(id),0);
|
||||||
|
// Read by pieDishes(), pieQuote() and pieLiveLas() in 60-features/99-pie-in-the-sky.js.
|
||||||
|
function pieDishMul(x){let m=1;for(const i of S.inc)if(i.type==='pierain'&&i.ref===x.city&&i.until>S.day)m=PIE_RAIN;return m*pieSpatDishMul(x);}
|
||||||
|
function pieCrMul(cr){return 1+(pieIncOf('piefood',cr)?PIE_FOOD_MUL:0)+pieGrabMul();}
|
||||||
|
function pieLasCut(id){return !!S.inc.length&&!!pieIncOf('pielaser',id);}
|
||||||
|
function pieIncTitle(t){return {piedig:tr('pie_inc.t_dig'),piefood:tr('pie_inc.t_food'),pielaser:tr('pie_inc.t_laser'),pierain:tr('pie_inc.t_rain'),piestorm:tr('pie_inc.t_storm')}[t]||'';}
|
||||||
|
// clearInc(): a dish dug up comes back when no other backhoe still holds it.
|
||||||
|
function pieIncClear(i){if(i.type!=='piedig'||!S.pie)return;const x=S.pie.dishes.find(d=>d.city===i.ref);if(x)x.down=remainUntil(o=>o.type==='piedig'&&o.ref===i.ref);}
|
||||||
|
// sanitize(): orbit incidents point at a crust or a city, and go when the company does.
|
||||||
|
function pieIncFix(s){const ok=!!s.pie;s.inc=s.inc.filter(i=>{if(!PIE_INC.includes(i.type))return true;if(!ok)return false;
|
||||||
|
if(['piefood','pielaser','piestorm'].includes(i.type)?!own(CRUSTS,i.ref):!isCity(i.ref))return false;
|
||||||
|
i.start=int(i.start,0,s.day,s.day);i.until=int(i.until,0,s.day+400,s.day);if(i.type==='piestorm')i.f=clamp(num(i.f,0),0,0.4);return true;});}
|
||||||
|
// One day of a storm (its first is the day it starts; the day tick resolves it on its last).
|
||||||
|
function pieStormBite(i){if(!own(CRUSTS,i.ref))return;const n=Math.max(1,i.until-i.start),q=(1-Math.pow(1-i.f,1/n))*(S.pie.safe?0.25:1);i.lost=(i.lost|0)+pieLose(i.ref,q);}
|
||||||
|
// Pies lost from every cohort of a crust alike.
|
||||||
|
function pieLose(cr,q){const c=S.pie.crusts[cr];let lost=0;for(const k of c.cohorts){const x=Math.min(k.n,Math.round(k.n*q));k.n-=x;lost+=x;}c.cohorts=c.cohorts.filter(k=>k.n>=1);return lost;}
|
||||||
|
function pieIncToast(i,press,acts=[]){toast(`<b>🛰️ ${pieIncTitle(i.type)}</b><br>${esc(i.msg)}<br><i>${esc(press)}</i>`,'bad',(i.cost?[{l:`${i.fix||tr('common.rush_repair')} ${fmt$(i.cost)}`,act:'fixInc',args:{id:i.id}}]:[]).concat(acts),incOpen(i));sfx('alert');}
|
||||||
|
const pieAdd=o=>{addInc(o);return S.inc[S.inc.length-1];};
|
||||||
|
function pieIncDay(d){
|
||||||
|
// A storm drags pies down a little every day; safe mode saves three quarters of them, and carries nothing meanwhile.
|
||||||
|
for(const i of S.inc){if(i.type==='piestorm'&&i.until>d&&d>i.start)pieStormBite(i);
|
||||||
|
// spicy chaos stretches an incident (stretchInc); the dish it holds down follows it
|
||||||
|
else if(i.type==='piedig'&&i.until>d){const x=S.pie.dishes.find(o=>o.city===i.ref);if(x&&!(x.down>=i.until))x.down=i.until;}}
|
||||||
|
if(!pieChaos())return;
|
||||||
|
// Rule F4: while the chaos monkey visits, it snips laser links too.
|
||||||
|
if(mkOn()&&Math.random()<1/20)pieIncFire('laser');
|
||||||
|
if(Math.random()<PIE_INC_RATE*chaosMul())pieIncFire();}
|
||||||
|
function pieIncOpts(){const P=S.pie,o=[],live=id=>pieLive(id),dish=x=>!!S.pops[x.city];
|
||||||
|
if(Object.keys(CRUSTS).some(id=>live(id)>0&&!pieIncOf('piestorm',id)))o.push(['storm',2]);
|
||||||
|
if(Object.keys(CRUSTS).some(id=>live(id)>=100&&!pieIncOf('piefood',id)))o.push(['food',0.4]);
|
||||||
|
if(P.dishes.some(x=>dish(x)&&Math.abs(CITY[x.city].lat)<=PIE_TROPIC&&!pieIncOf('pierain',x.city)))o.push(['rain',3]);
|
||||||
|
if(P.dishes.some(x=>dish(x)&&!(x.down>S.day)))o.push(['dig',2]);
|
||||||
|
if(pieLiveAll()>=PIE_ASTRO_N&&!P.spat.astro)o.push(['astro',1]);
|
||||||
|
o.push(['founder',2]);return o;}
|
||||||
|
// Fires one orbit incident (k forces which, for tests and the monkey); true when something happened.
|
||||||
|
function pieIncFire(k){const P=S.pie;if(!P||!P.co)return false;const d=S.day;
|
||||||
|
if(!k){const o=pieIncOpts();let r=Math.random()*o.reduce((a,x)=>a+x[1],0);k=o[o.length-1][0];for(const x of o){r-=x[1];if(r<=0){k=x[0];break;}}}
|
||||||
|
const crs=f=>Object.keys(CRUSTS).filter(f);
|
||||||
|
if(k==='storm'){const c=crs(id=>pieLive(id)>0&&!pieIncOf('piestorm',id));if(!c.length)return false;const cr=pick(c),f=+(0.05+Math.random()*0.35).toFixed(3);
|
||||||
|
const i=pieAdd({type:'piestorm',ref:cr,until:d+7,f,lost:0,cost:0,msg:tr('pie_inc.storm_msg',{crust:tr(CRUSTS[cr].n),p:pct(f)})});pieFounder(N_('pie.fp_storm'),{c:cr});pieStormBite(i);
|
||||||
|
pieIncToast(i,tr('pie_inc.storm_press'),P.safe?[]:[{l:tr('pie_inc.safe_now'),act:'pieSafe',args:{}}]);return true;}
|
||||||
|
if(k==='food'){const c=crs(id=>pieLive(id)>=100&&!pieIncOf('piefood',id));if(!c.length)return false;const cr=pick(c),n=pieLose(cr,0.1+Math.random()*0.1);
|
||||||
|
const i=pieAdd({type:'piefood',ref:cr,until:d+360,cost:piePrice(PIE_ROOMBA),fix:tr('pie_inc.food_fix'),msg:tr('pie_inc.food_msg',{crust:tr(CRUSTS[cr].n),n,p:pct(PIE_FOOD_MUL)})});
|
||||||
|
pieFounder(N_('pie.fp_debris'),{c:cr});pieIncToast(i,tr('pie_inc.food_press'));compute();return true;}
|
||||||
|
if(k==='rain'){const c=P.dishes.filter(x=>S.pops[x.city]&&Math.abs(CITY[x.city].lat)<=PIE_TROPIC&&!pieIncOf('pierain',x.city));if(!c.length)return false;const x=pick(c);
|
||||||
|
const i=pieAdd({type:'pierain',ref:x.city,until:d+rint(2,4),cost:0,msg:tr('pie_inc.rain_msg',{city:CITY[x.city].name})});pieIncToast(i,tr('pie_inc.rain_press'));compute();return true;}
|
||||||
|
if(k==='dig'){const c=P.dishes.filter(x=>S.pops[x.city]&&!(x.down>S.day));if(!c.length)return false;const x=pick(c);
|
||||||
|
const i=pieAdd({type:'piedig',ref:x.city,until:d+rint(2,3),cost:PIE_DIG_FIX,msg:tr('pie_inc.dig_msg',{city:CITY[x.city].name})});x.down=Math.max(x.down||0,i.until);
|
||||||
|
pieIncToast(i,tr('pie_inc.dig_press'));compute();return true;}
|
||||||
|
if(k==='laser'){const c=crs(id=>pieLiveLas(id)>0);if(!c.length)return false;const cr=pick(c);
|
||||||
|
const i=pieAdd({type:'pielaser',ref:cr,until:d+rint(3,4),cost:0,msg:tr('pie_inc.laser_msg',{crust:tr(CRUSTS[cr].n)})});i.until=Math.min(i.until,d+7);
|
||||||
|
if(S.monkey)S.monkey.n++;pieIncToast(i,tr('pie_inc.laser_press'));compute();return true;}
|
||||||
|
if(k==='astro')return pieSpatStart('astro');
|
||||||
|
if(k==='founder'){S.stats.incidents++;S.stats.survived++;pieFounder(N_('pie.fp_3am'));
|
||||||
|
if(Math.random()<0.5){for(const b of S.biz)b.mood=Math.max(1,b.mood-5);toast(`<b>📱 ${tr('pie_inc.t_founder')}</b><br>${tr('pie_inc.founder_dip')}<br><i>${tr('pie_inc.founder_press')}</i>`,'bad');}
|
||||||
|
else{S.ev.viral=Math.max(S.ev.viral||0,d+5);toast(`<b>📱 ${tr('pie_inc.t_founder')}</b><br>${tr('pie_inc.founder_spike')}<br><i>${tr('pie_inc.founder_press')}</i>`,'goal');}
|
||||||
|
sfx('alert');return true;}
|
||||||
|
return false;}
|
||||||
|
PIE_ON.day.push(pieIncDay);
|
||||||
129
src/game/85-incidents/65-pie-spats.js
Normal file
129
src/game/85-incidents/65-pie-spats.js
Normal file
|
|
@ -0,0 +1,129 @@
|
||||||
|
/* ---------- Pie in the Sky: geopolitical spats (docs/plans/pie-in-the-sky.md) ----------
|
||||||
|
Cartoon diplomacy, even-handed: countries come from the city table (CITIES[].cc, named by the browser), never a
|
||||||
|
leader or a party, and the jokes are about paperwork, food, weather and national pride. Like every incident they need
|
||||||
|
chaos on and 90 quiet days (rule O5); each asks one question with two answers (a bottom sheet, pieSpatSheet()), and an
|
||||||
|
unanswered one decides itself on its deadline. State: S.pie.spat[id] = {st:'ask'|'on', cc, cc2?, ask, until, c, hold…},
|
||||||
|
repaired by pieSpatFix() on load and ended by pieSpatDay() on o.until (then D.end()).
|
||||||
|
Landing rights a spat takes away ('refused' or 'sus' in S.pie.lic) are held in o.hold {cc: days of rights left} and given
|
||||||
|
back, those days and all, when the spat ends. For routing: pieSpatHome(cc) (that country's customers must land on a dish
|
||||||
|
inside it) and pieAirBlock(a,b) (traffic from a must not use a dish in b), on top of pieDishes()' landing rights. */
|
||||||
|
const PIE_SPAT_ASK=20,PIE_SPAT_RATE=1/90,PIE_SPAT_MAX=2,PIE_BAND_DAYS=180,PIE_KILL_DAYS=90,PIE_KILL_MOOD=15,PIE_ASTRO_MOOD=20,PIE_VISOR=50000,
|
||||||
|
PIE_HOME_DAYS=90,PIE_PAD_DISHES=3,PIE_PAD_DAYS=180,PIE_PAD_AID=0.75,PIE_GRAB_N=5,PIE_GRAB_FEE=40e6,PIE_JAM=0.4,PIE_JAM_FILTER=0.8,PIE_JAM_ANT=2e6,
|
||||||
|
PIE_AIR=0.75,PIE_AIR_DAYS=120,PIE_AIR_SUS=60,PIE_LOBBY_DAYS=30;
|
||||||
|
// Country centroids from the city table, once; a neighbour is the nearest other one.
|
||||||
|
let PIE_CC=null;
|
||||||
|
function pieCcAll(){if(PIE_CC)return PIE_CC;const m={};for(const c of CITIES){const o=m[c.cc]||(m[c.cc]={lat:0,lon:0,n:0});o.lat+=c.lat;o.lon+=c.lon;o.n++;}
|
||||||
|
for(const k in m){m[k].lat/=m[k].n;m[k].lon/=m[k].n;}return PIE_CC=m;}
|
||||||
|
function pieNb(cc){const A=pieCcAll(),a=A[cc];let b=null,m=1e9;if(!a)return null;for(const k in A){if(k===cc)continue;const d=hav(a.lon,a.lat,A[k].lon,A[k].lat);if(d<m){m=d;b=k;}}return b;}
|
||||||
|
const pieDishCc=()=>[...new Set(S.pie.dishes.filter(x=>S.pops[x.city]).map(x=>CITY[x.city].cc))].sort();
|
||||||
|
const piePopCc=()=>[...new Set(Object.keys(S.pops).map(c=>CITY[c].cc))].sort();
|
||||||
|
const pieDishesIn=cc=>S.pie.dishes.filter(x=>S.pops[x.city]&&CITY[x.city].cc===cc).length;
|
||||||
|
// A country nobody is already holding hostage.
|
||||||
|
const pieFree=cc=>{const l=S.pie.lic[cc];return !(l&&l.state!=='ok'&&l.until>S.day);};
|
||||||
|
const pieCcN=cc=>esc(pieLicCountry(cc));
|
||||||
|
function pieMood(f,dv){let n=0;for(const b of S.biz)if(f(b)){b.mood=clamp(b.mood+dv,1,100);n++;}return n;}
|
||||||
|
const pieInCc=cc=>b=>isCity(b.city)&&CITY[b.city].cc===cc;
|
||||||
|
// Take a country's landing rights away until o.until, remembering the days left; pieRelease() gives them back.
|
||||||
|
function pieHold(o,cc,state){const P=S.pie,l=P.lic[cc],h=o.hold||(o.hold={});if(!(cc in h))h[cc]=l&&l.state==='ok'&&l.until>S.day?l.until-S.day:0;P.lic[cc]={state,until:o.until};}
|
||||||
|
function pieRelease(o){const P=S.pie;for(const cc in o.hold||{}){const l=P.lic[cc];if(!l||l.state==='ok'||l.until!==o.until)continue;const r=o.hold[cc];if(r>0)P.lic[cc]={state:'ok',until:S.day+r};else delete P.lic[cc];}o.hold={};}
|
||||||
|
const pieSpatEnd=o=>{o.until=S.day+1;};
|
||||||
|
// Read by pieDishMul() (60-pie.js): jamming and a split network turn dishes down.
|
||||||
|
function pieSpatDishMul(x){const sp=S.pie.spat;if(!sp.jam&&!sp.air)return 1;const cc=CITY[x.city].cc;let m=1;
|
||||||
|
if(sp.jam&&(sp.jam.cc===cc||sp.jam.cc2===cc))m*=sp.jam.c===0?PIE_JAM_FILTER:PIE_JAM;
|
||||||
|
if(sp.air&&sp.air.st==='on'&&sp.air.c===0&&(sp.air.cc===cc||sp.air.cc2===cc))m*=PIE_AIR;return m;}
|
||||||
|
function pieGrabMul(){const o=S.pie&&S.pie.spat.grab;return o&&o.st==='on'&&o.left>0?o.m:0;}
|
||||||
|
function pieSpatHome(cc){const o=S&&S.pie&&S.pie.spat.home;return !!o&&o.cc===cc&&!o.ok;}
|
||||||
|
function pieAirBlock(a,b){const o=S&&S.pie&&S.pie.spat.air;return !!o&&o.st==='on'&&o.c===0&&((o.cc===a&&o.cc2===b)||(o.cc===b&&o.cc2===a));}
|
||||||
|
// The spats. pick(o,c): c is 0, 1 or -1 (nobody answered); cost(o,c): what that answer costs now; def: the answer on the deadline.
|
||||||
|
const PIE_SPAT_DEF={
|
||||||
|
air:{n:2,def:0,can:()=>pieDishCc().filter(pieFree).filter(cc=>{const b=pieNb(cc);return b&&pieFree(b);}),
|
||||||
|
start:(o,cc)=>{o.cc=cc;o.cc2=pieNb(cc);},
|
||||||
|
txt:o=>({t:tr('pie_spat.air_t'),b:tr('pie_spat.air_b',{a:pieCcN(o.cc),b:pieCcN(o.cc2)}),p:tr('pie_spat.air_p'),
|
||||||
|
c:[tr('pie_spat.air_c0',{p:pct(PIE_AIR),n:PIE_AIR_DAYS}),tr('pie_spat.air_c1',{n:PIE_AIR_SUS})]}),
|
||||||
|
pick:(o,c)=>{if(c===0){o.until=S.day+PIE_AIR_DAYS;compute();return tr('pie_spat.air_r0',{n:PIE_AIR_DAYS});}
|
||||||
|
o.until=S.day+PIE_AIR_SUS;pieHold(o,o.cc,'sus');pieHold(o,o.cc2,'sus');compute();return tr('pie_spat.air_r1',{a:pieCcN(o.cc),b:pieCcN(o.cc2),d:dateStr(o.until)});}},
|
||||||
|
astro:{n:0,def:1,can:()=>pieLiveAll()>=PIE_ASTRO_N?['']:[],start:o=>{o.n=pieLiveAll();},
|
||||||
|
cost:(o,c)=>c===0?piePrice(o.n*PIE_VISOR):0,
|
||||||
|
txt:o=>({t:tr('pie_spat.astro_t'),b:tr('pie_spat.astro_b',{n:o.n}),p:tr('pie_spat.astro_p'),
|
||||||
|
c:[tr('pie_spat.astro_c0',{cost:fmt$(piePrice(o.n*PIE_VISOR))}),tr('pie_spat.astro_c1',{n:PIE_ASTRO_MOOD})]}),
|
||||||
|
pick:(o,c)=>{pieSpatEnd(o);if(c===0)return tr('pie_spat.astro_r0');pieMood(b=>b.type==='edu'||b.type==='mars',-PIE_ASTRO_MOOD);pieFounder(N_('pie.fp_astro'));return tr('pie_spat.astro_r1');}},
|
||||||
|
band:{n:2,def:-1,can:()=>pieDishCc().filter(pieFree).filter(cc=>{const b=pieNb(cc);return b&&pieFree(b);}),
|
||||||
|
start:(o,cc)=>{o.cc=cc;o.cc2=pieNb(cc);},
|
||||||
|
txt:o=>({t:tr('pie_spat.band_t'),b:tr('pie_spat.band_b',{a:pieCcN(o.cc),b:pieCcN(o.cc2)}),p:tr('pie_spat.band_p'),
|
||||||
|
c:[tr('pie_spat.band_c',{a:pieCcN(o.cc),b:pieCcN(o.cc2),n:PIE_BAND_DAYS}),tr('pie_spat.band_c',{a:pieCcN(o.cc2),b:pieCcN(o.cc),n:PIE_BAND_DAYS})]}),
|
||||||
|
pick:(o,c)=>{if(c<0){o.until=S.day+PIE_BAND_DAYS/2;pieHold(o,o.cc,'sus');pieHold(o,o.cc2,'sus');compute();return tr('pie_spat.band_r_none',{a:pieCcN(o.cc),b:pieCcN(o.cc2),n:PIE_BAND_DAYS/2});}
|
||||||
|
const lose=c===0?o.cc2:o.cc;o.until=S.day+PIE_BAND_DAYS;pieHold(o,lose,'sus');compute();return tr('pie_spat.band_r',{a:pieCcN(c===0?o.cc:o.cc2),b:pieCcN(lose),d:dateStr(o.until)});}},
|
||||||
|
grab:{n:0,def:1,can:()=>S.pie.fac?['']:[],start:()=>{},cost:(o,c)=>c===0?piePrice(PIE_GRAB_FEE):0,
|
||||||
|
txt:()=>({t:tr('pie_spat.grab_t'),b:tr('pie_spat.grab_b'),p:tr('pie_spat.grab_p'),
|
||||||
|
c:[tr('pie_spat.grab_c0',{cost:fmt$(piePrice(PIE_GRAB_FEE)),n:PIE_GRAB_N,p:'10%'}),tr('pie_spat.grab_c1',{n:PIE_GRAB_N,p:'30%'})]}),
|
||||||
|
pick:(o,c)=>{o.m=c===0?0.1:0.3;o.left=PIE_GRAB_N;o.until=S.day+720;return tr('pie_spat.grab_r',{n:PIE_GRAB_N,p:pct(o.m)});}},
|
||||||
|
home:{n:1,def:0,can:()=>S.pie.dishes.length?piePopCc().filter(cc=>!pieDishesIn(cc)):[],start:(o,cc)=>{o.cc=cc;},
|
||||||
|
cost:(o,c)=>c===1?Math.round(pieLicPrice(o.cc)*0.5):0,
|
||||||
|
txt:o=>({t:tr('pie_spat.home_t'),b:tr('pie_spat.home_b',{a:pieCcN(o.cc)}),p:tr('pie_spat.home_p'),
|
||||||
|
c:[tr('pie_spat.home_c0',{n:PIE_HOME_DAYS}),tr('pie_spat.home_c1',{cost:fmt$(Math.round(pieLicPrice(o.cc)*0.5))})]}),
|
||||||
|
pick:(o,c)=>{if(c===1){o.ok=1;pieSpatEnd(o);return tr('pie_spat.home_r1');}o.until=S.day+PIE_HOME_DAYS;return tr('pie_spat.home_r0',{a:pieCcN(o.cc),d:dateStr(o.until)});},
|
||||||
|
day:(o,d)=>{if(o.st==='on'&&!o.ok&&pieDishesIn(o.cc)){o.ok=1;pieSpatEnd(o);pieMood(pieInCc(o.cc),5);toast(tr('pie_spat.home_won',{a:pieCcN(o.cc)}),'good');}},
|
||||||
|
end:o=>{if(o.st!=='on'||o.ok)return;const f=pieLicPrice(o.cc);pieCharge(f);pieMood(pieInCc(o.cc),-10);toast(tr('pie_spat.home_fined',{a:pieCcN(o.cc),cost:fmt$(f)}),'bad');}},
|
||||||
|
jam:{n:2,def:1,can:()=>pieDishCc().filter(cc=>pieNb(cc)),
|
||||||
|
start:(o,cc)=>{o.cc=cc;o.cc2=pieNb(cc);o.until=S.day+rint(5,6);o.ask=o.until-1;compute();},
|
||||||
|
cost:(o,c)=>c===0?piePrice(PIE_JAM_ANT)*(pieDishesIn(o.cc)+pieDishesIn(o.cc2)):0,
|
||||||
|
txt:o=>({t:tr('pie_spat.jam_t'),b:tr('pie_spat.jam_b',{a:pieCcN(o.cc),b:pieCcN(o.cc2),p:pct(PIE_JAM),d:dateStr(o.until)}),p:tr('pie_spat.jam_p'),
|
||||||
|
c:[tr('pie_spat.jam_c0',{cost:fmt$(piePrice(PIE_JAM_ANT)*(pieDishesIn(o.cc)+pieDishesIn(o.cc2))),p:pct(PIE_JAM_FILTER)}),tr('pie_spat.jam_c1',{p:pct(PIE_JAM)})]}),
|
||||||
|
pick:(o,c)=>{compute();return c===0?tr('pie_spat.jam_r0',{p:pct(PIE_JAM_FILTER)}):tr('pie_spat.jam_r1',{d:dateStr(o.until)});},end:()=>compute()},
|
||||||
|
kill:{n:1,def:0,can:()=>pieDishCc().filter(pieFree),start:(o,cc)=>{o.cc=cc;},
|
||||||
|
txt:o=>({t:tr('pie_spat.kill_t'),b:tr('pie_spat.kill_b',{a:pieCcN(o.cc)}),p:tr('pie_spat.kill_p'),
|
||||||
|
c:[tr('pie_spat.kill_c0',{a:pieCcN(o.cc),n:PIE_KILL_MOOD}),tr('pie_spat.kill_c1',{n:PIE_KILL_DAYS})]}),
|
||||||
|
pick:(o,c)=>{if(c===0){pieSpatEnd(o);const n=pieMood(pieInCc(o.cc),-PIE_KILL_MOOD);return tr('pie_spat.kill_r0',{n});}
|
||||||
|
o.until=S.day+PIE_KILL_DAYS;pieHold(o,o.cc,'sus');compute();return tr('pie_spat.kill_r1',{a:pieCcN(o.cc),d:dateStr(o.until)});}},
|
||||||
|
lic:{n:1,def:1,can:()=>pieDishCc().filter(pieFree),start:(o,cc)=>{o.cc=cc;o.n=rint(90,91);},
|
||||||
|
cost:(o,c)=>c===0?Math.round(pieLicPrice(o.cc)*0.25):0,
|
||||||
|
txt:o=>({t:tr('pie_spat.lic_t'),b:tr('pie_spat.lic_b',{a:pieCcN(o.cc)}),p:tr('pie_spat.lic_p',{a:pieCcN(o.cc)}),
|
||||||
|
c:[tr('pie_spat.lic_c0',{cost:fmt$(Math.round(pieLicPrice(o.cc)*0.25)),n:PIE_LOBBY_DAYS}),tr('pie_spat.lic_c1',{n:o.n})]}),
|
||||||
|
pick:(o,c)=>{o.until=S.day+(c===0?PIE_LOBBY_DAYS:o.n);pieHold(o,o.cc,'refused');compute();return tr('pie_spat.lic_r',{a:pieCcN(o.cc),d:dateStr(o.until)});}},
|
||||||
|
pad:{n:1,def:1,can:()=>piePopCc().filter(cc=>CITIES.some(c=>c.cc===cc&&pieCoast(c.id))&&!S.pie.pads.some(p=>CITY[p.city].cc===cc)),start:(o,cc)=>{o.cc=cc;},
|
||||||
|
txt:o=>({t:tr('pie_spat.pad_t'),b:tr('pie_spat.pad_b',{a:pieCcN(o.cc),n:PIE_PAD_DISHES}),p:tr('pie_spat.pad_p'),
|
||||||
|
c:[tr('pie_spat.pad_c0',{n:PIE_PAD_DISHES,a:pieCcN(o.cc),d:PIE_PAD_DAYS}),tr('pie_spat.pad_c1')]}),
|
||||||
|
pick:(o,c)=>{if(c!==0){pieSpatEnd(o);return tr('pie_spat.pad_r1');}o.until=S.day+PIE_PAD_DAYS;return tr('pie_spat.pad_r0',{n:PIE_PAD_DISHES,a:pieCcN(o.cc),d:dateStr(o.until)});},
|
||||||
|
day:(o,d)=>{if(o.st!=='on'||o.ok||o.fail)return;
|
||||||
|
if(pieDishesIn(o.cc)>=PIE_PAD_DISHES){o.ok=1;pieSpatEnd(o);const P=S.pie,c=Object.keys(S.pops).filter(x=>CITY[x].cc===o.cc&&pieCoast(x)&&!P.pads.some(p=>p.city===x)).sort()[0];
|
||||||
|
if(c&&P.pads.length<PIE_PAD_MAX){P.pads.push({city:c,next:d,boosters:[]});toast(tr('pie_spat.pad_won',{city:CITY[c].name}),'goal');}
|
||||||
|
else{const v=Math.round(piePrice(PIE_PAD)*PIE_PAD_AID);pieRefund(v);toast(tr('pie_spat.pad_cheque',{a:pieCcN(o.cc),cost:fmt$(v)}),'goal');}sfx('coin');return;}
|
||||||
|
if(d>=o.until-1){o.fail=1;o.until=d+PIE_AIR_SUS;pieHold(o,o.cc,'sus');compute();toast(tr('pie_spat.pad_failed',{a:pieCcN(o.cc),d:dateStr(o.until)}),'bad');}}},
|
||||||
|
};
|
||||||
|
const PIE_SPAT_KEYS=Object.keys(PIE_SPAT_DEF);
|
||||||
|
// Sanitize: only what the spat needs, countries that exist, days in range.
|
||||||
|
function pieSpatFix(id,o,s){const D=PIE_SPAT_DEF[id],A=pieCcAll(),day=s.day,cc=v=>typeof v==='string'&&own(A,v);
|
||||||
|
const v={st:o.st==='on'?'on':'ask',ask:int(o.ask,0,day+PIE_SPAT_ASK,day),until:int(o.until,0,day+720,day),c:int(o.c,-1,1,-1)};
|
||||||
|
if(D.n>=1){if(!cc(o.cc))return null;v.cc=o.cc;}if(D.n>=2){if(!cc(o.cc2)||o.cc2===o.cc)return null;v.cc2=o.cc2;}
|
||||||
|
if(o.hold&&typeof o.hold==='object'){v.hold={};for(const k of Object.keys(o.hold))if(cc(k))v.hold[k]=int(o.hold[k],0,PIE_LIC_DAYS*10,0);}
|
||||||
|
if(o.n!==undefined)v.n=int(o.n,0,1e6,0);if(o.ok)v.ok=1;if(o.fail)v.fail=1;
|
||||||
|
if(id==='grab'){v.m=clamp(num(o.m,0.3),0,0.3);v.left=int(o.left,0,PIE_GRAB_N,0);}
|
||||||
|
return v;}
|
||||||
|
// The day: an unanswered spat decides itself on its deadline.
|
||||||
|
function pieSpatTick(id,o,d){const D=PIE_SPAT_DEF[id];if(o.st==='ask'&&d>=o.ask){pieSpatChoose(id,D.def,true);return;}if(D.day)D.day(o,d);}
|
||||||
|
for(const id of PIE_SPAT_KEYS)PIE_SPATS[id]={fix:(o,s)=>pieSpatFix(id,o,s),day:(o,d)=>pieSpatTick(id,o,d),end:o=>{const D=PIE_SPAT_DEF[id];if(D.end)D.end(o);pieRelease(o);}};
|
||||||
|
// Starts one (id forces which, for tests and the astronomers); true when it did.
|
||||||
|
function pieSpatStart(id){const P=S.pie;if(!P||!P.co)return false;
|
||||||
|
if(!id){const ok=PIE_SPAT_KEYS.filter(k=>k!=='astro'&&!P.spat[k]&&PIE_SPAT_DEF[k].can().length);if(!ok.length)return false;id=pick(ok);}
|
||||||
|
const D=PIE_SPAT_DEF[id];if(!D||P.spat[id])return false;const cs=D.can();if(!cs.length)return false;
|
||||||
|
const o={st:'ask',ask:S.day+PIE_SPAT_ASK,c:-1};D.start(o,pick(cs));if(!o.until)o.until=o.ask+1;P.spat[id]=o;
|
||||||
|
S.stats.incidents++;S.stats.pieSpat=(S.stats.pieSpat||0)+1;pieFounder(N_('pie.fp_spat'));
|
||||||
|
const t=D.txt(o);toast(`<b>🌍 ${t.t}</b><br>${t.b}`,'bad',[{l:tr('pie_spat.decide'),act:'pieSpatOpen',args:{id}}]);sfx('alert');return true;}
|
||||||
|
// The answer: what it costs (sandbox keeps count), what happens, and the press office's line.
|
||||||
|
function pieSpatChoose(id,c,auto){const P=S.pie,o=P&&P.spat[id],D=PIE_SPAT_DEF[id];if(!o||!D||o.st!=='ask')return false;
|
||||||
|
const cost=D.cost&&c>=0?D.cost(o,c):0;if(cost>0&&!pieSpend(cost))return false;
|
||||||
|
o.st='on';o.c=c;const r=D.pick(o,c);S.stats.survived++;
|
||||||
|
toast(`<b>🌍 ${D.txt(o).t}</b><br>${auto?tr('pie_spat.auto')+' ':''}${r}<br><i>${D.txt(o).p}</i>`,auto?'bad':'',[]);return true;}
|
||||||
|
// The NOC card and Pie Control list the questions waiting for an answer.
|
||||||
|
function pieSpatCard(){const P=S&&S.pie;if(!P)return '';const ks=PIE_SPAT_KEYS.filter(k=>P.spat[k]&&P.spat[k].st==='ask');if(!ks.length)return '';
|
||||||
|
return `<div class="pspat-l">${ks.map(k=>`<div class="kv"><span>🌍 ${PIE_SPAT_DEF[k].txt(P.spat[k]).t}</span>${btn(tr('pie_spat.decide'),'pieSpatOpen',{id:k},'pink sm')}</div>`).join('')}</div>`;}
|
||||||
|
function pieSpatSheet(id){const o=S&&S.pie&&S.pie.spat[id],D=PIE_SPAT_DEF[id];if(!o||!D)return;const t=D.txt(o);
|
||||||
|
let h=`<div style="display:flex;align-items:center"><div class="grow"><div class="eyebrow">🌍 ${tr('pie_spat.eyebrow')}</div><h2 style="font-size:22px">${t.t}</h2></div><button class="x" data-act="closeModal" aria-label="${tr('common.close')}">×</button></div>`;
|
||||||
|
h+=`<p class="lead">${t.b}</p><p class="meta"><i>${t.p}</i></p>`;
|
||||||
|
if(o.st==='ask')h+=`<p class="meta">${tr('pie_spat.decide_by',{d:dateStr(o.ask)})}</p><div class="pspat-c">${t.c.map((l,c)=>{const v=D.cost?D.cost(o,c):0;return btn(l,'pieSpatPick',{id,c},c?'ghost':'pink',v>0&&!pieSand()&&S.cash<v);}).join('')}</div>`;
|
||||||
|
else h+=`<p class="meta">${tr('pie_spat.decided')}</p>`;
|
||||||
|
openModal(h,'pie-spat');}
|
||||||
|
// A land grab bills the next few launches (counted when they are booked, which is when the quote is paid).
|
||||||
|
function pieGrabUse(q){const o=S.pie&&S.pie.spat.grab;if(!o||o.st!=='on'||!(o.left>0))return;o.left--;if(!o.left)pieSpatEnd(o);}
|
||||||
|
function pieSpatDayAll(d){if(!pieChaos())return;const P=S.pie;if(Object.keys(P.spat).length>=PIE_SPAT_MAX)return;if(Math.random()<PIE_SPAT_RATE*chaosMul())pieSpatStart();}
|
||||||
|
PIE_ON.day.push(pieSpatDayAll);
|
||||||
|
|
@ -14,7 +14,7 @@ Object.assign(ACT,{
|
||||||
P.rd[k]=true;toast(tr('pie.t_rd',{rd:tr(PIE_RD[k].n)}),'good');if(k==='heavy')piePromise();pieRe();},
|
P.rd[k]=true;toast(tr('pie.t_rd',{rd:tr(PIE_RD[k].n)}),'good');if(k==='heavy')piePromise();pieRe();},
|
||||||
pieLaunch:({rk,cr})=>{const P=pieGet();if(!P)return;const o={ins:!!UI.pieIns,las:!!UI.pieLas},q=pieQuote(rk,cr,o);if(!q.ok)return pieNo(q.why);if(!pieSpend(q.cost))return pieRe();
|
pieLaunch:({rk,cr})=>{const P=pieGet();if(!P)return;const o={ins:!!UI.pieIns,las:!!UI.pieLas},q=pieQuote(rk,cr,o);if(!q.ok)return pieNo(q.why);if(!pieSpend(q.cost))return pieRe();
|
||||||
const pad=P.pads.find(p=>p.city===q.pad);pad.next=q.day+leadDays(ROCKETS[rk].gap);if(rk==='again'&&!pad.boosters.length)pad.boosters.push({id:uid(),flights:0});
|
const pad=P.pads.find(p=>p.city===q.pad);pad.next=q.day+leadDays(ROCKETS[rk].gap);if(rk==='again'&&!pad.boosters.length)pad.boosters.push({id:uid(),flights:0});
|
||||||
P.stock=Math.max(0,P.stock-q.n);P.crusts[cr].queued+=q.n;P.q.push({id:uid(),rk,cr,pad:q.pad,n:q.n,day:q.day,cost:q.ins?q.insured:0,ins:q.ins,las:o.las&&!q.test,test:q.test});
|
P.stock=Math.max(0,P.stock-q.n);P.crusts[cr].queued+=q.n;P.q.push({id:uid(),rk,cr,pad:q.pad,n:q.n,day:q.day,cost:q.ins?q.insured:0,ins:q.ins,las:o.las&&!q.test,test:q.test});pieGrabUse(q);
|
||||||
{const v={n:q.n,crust:tr(CRUSTS[cr].n),city:CITY[q.pad].name,d:dateStr(q.day)};toast(q.test?tr('pie.t_queued_test',v):tr('pie.t_queued',v),'good');}pieRe();},
|
{const v={n:q.n,crust:tr(CRUSTS[cr].n),city:CITY[q.pad].name,d:dateStr(q.day)};toast(q.test?tr('pie.t_queued_test',v):tr('pie.t_queued',v),'good');}pieRe();},
|
||||||
pieIns:()=>{UI.pieIns=!UI.pieIns;sfx('click');pieModal();},
|
pieIns:()=>{UI.pieIns=!UI.pieIns;sfx('click');pieModal();},
|
||||||
pieLas:()=>{UI.pieLas=!UI.pieLas;sfx('click');pieModal();},
|
pieLas:()=>{UI.pieLas=!UI.pieLas;sfx('click');pieModal();},
|
||||||
|
|
|
||||||
7
src/game/90-actions/98-pie-spats.js
Normal file
7
src/game/90-actions/98-pie-spats.js
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
// Pie in the Sky: answering a geopolitical spat (85-incidents/65-pie-spats.js). Answers work while Tier 1 is lost too:
|
||||||
|
// diplomacy is not building.
|
||||||
|
Object.assign(ACT,{
|
||||||
|
pieSpatOpen:({id})=>{if(!S||!S.pie||typeof id!=='string'||!own(PIE_SPAT_DEF,id)||!S.pie.spat[id])return;pieSpatSheet(id);},
|
||||||
|
pieSpatPick:({id,c})=>{const P=S&&S.pie;c=+c;if(!P||typeof id!=='string'||!own(PIE_SPAT_DEF,id)||!(c===0||c===1))return;
|
||||||
|
if(!pieSpatChoose(id,c,false)){if(P.spat[id])pieSpatSheet(id);return;}closeModal();after();},
|
||||||
|
});
|
||||||
|
|
@ -3,7 +3,7 @@ let PIE_CCN=null;
|
||||||
function pieLicCountry(cc){try{PIE_CCN=PIE_CCN&&PIE_CCN.l===LANG?PIE_CCN:{l:LANG,d:new Intl.DisplayNames([LANG],{type:'region'})};return PIE_CCN.d.of(cc)||cc;}catch(e){return cc;}}
|
function pieLicCountry(cc){try{PIE_CCN=PIE_CCN&&PIE_CCN.l===LANG?PIE_CCN:{l:LANG,d:new Intl.DisplayNames([LANG],{type:'region'})};return PIE_CCN.d.of(cc)||cc;}catch(e){return cc;}}
|
||||||
function pieCard(){if(!pieOn())return '';const P=S.pie;
|
function pieCard(){if(!pieOn())return '';const P=S.pie;
|
||||||
return `<div class="ops-card pie-card"><div class="nm">🥧 ${tr('pie.pie_in_the_sky')}</div><div class="meta">${P&&P.co?esc(pieCoName())+' · '+tr('pie.card_live',{n:Object.keys(CRUSTS).reduce((a,id)=>a+pieLive(id),0),q:P.q.length}):tr('pie.card_pitch')}</div>
|
return `<div class="ops-card pie-card"><div class="nm">🥧 ${tr('pie.pie_in_the_sky')}</div><div class="meta">${P&&P.co?esc(pieCoName())+' · '+tr('pie.card_live',{n:Object.keys(CRUSTS).reduce((a,id)=>a+pieLive(id),0),q:P.q.length}):tr('pie.card_pitch')}</div>
|
||||||
<div class="btns">${btn(tr('pie.open_pie_control'),'pieOpen',{},P&&P.co?'sm':'pink sm')}</div></div>`;}
|
${pieSpatCard()}<div class="btns">${btn(tr('pie.open_pie_control'),'pieOpen',{},P&&P.co?'sm':'pink sm')}</div></div>`;}
|
||||||
const pieTag=(t,on)=>`<span class="tag ${on?'open':'selective'}">${t}</span>`;
|
const pieTag=(t,on)=>`<span class="tag ${on?'open':'selective'}">${t}</span>`;
|
||||||
function pieModal(){if(!S||!pieOn())return;const P=S.pie||pieBlank(S.day),can=pieCanBuild(),T=['co','fly','dish','book'].includes(UI.pieTab)?UI.pieTab:'co';
|
function pieModal(){if(!S||!pieOn())return;const P=S.pie||pieBlank(S.day),can=pieCanBuild(),T=['co','fly','dish','book'].includes(UI.pieTab)?UI.pieTab:'co';
|
||||||
let h=`<div style="display:flex;align-items:center"><div class="grow"><div class="eyebrow">${tr('pie.pie_in_the_sky')}</div><h2 style="font-size:24px">${P.co?esc(pieCoName()):tr('pie.pie_control')}</h2></div><button class="x" data-act="closeModal" aria-label="${tr('common.close')}">×</button></div>`;
|
let h=`<div style="display:flex;align-items:center"><div class="grow"><div class="eyebrow">${tr('pie.pie_in_the_sky')}</div><h2 style="font-size:24px">${P.co?esc(pieCoName()):tr('pie.pie_control')}</h2></div><button class="x" data-act="closeModal" aria-label="${tr('common.close')}">×</button></div>`;
|
||||||
|
|
@ -11,6 +11,7 @@ function pieModal(){if(!S||!pieOn())return;const P=S.pie||pieBlank(S.day),can=pi
|
||||||
if(pieSand())h+=`<p class="note">${tr('pie.sandbox_note',{amt:fmt$(P.book.wouldHave)})}</p>`;
|
if(pieSand())h+=`<p class="note">${tr('pie.sandbox_note',{amt:fmt$(P.book.wouldHave)})}</p>`;
|
||||||
if(!P.co){h+=`<p class="lead">${tr('pie.found_pitch')}</p><div class="btns">${btn(tr('pie.found_price',{price:fmt$(piePrice(PIE_CO)),mo:fmt$(PIE_CO_MO)}),'pieFound',{},'pink',!can)}</div>`;openModal(h,'pie');return;}
|
if(!P.co){h+=`<p class="lead">${tr('pie.found_pitch')}</p><div class="btns">${btn(tr('pie.found_price',{price:fmt$(piePrice(PIE_CO)),mo:fmt$(PIE_CO_MO)}),'pieFound',{},'pink',!can)}</div>`;openModal(h,'pie');return;}
|
||||||
const tab=(k,l)=>`<button class="b sm ${T===k?'pink':'ghost'}" data-act="pieTab" data-args='{"t":"${k}"}' aria-pressed="${T===k}">${l}</button>`;
|
const tab=(k,l)=>`<button class="b sm ${T===k?'pink':'ghost'}" data-act="pieTab" data-args='{"t":"${k}"}' aria-pressed="${T===k}">${l}</button>`;
|
||||||
|
h+=pieGlobeHtml()+pieSpatCard();
|
||||||
h+=`<div class="seg" style="margin:6px 0 10px">${tab('co',tr('pie.tab_company'))}${tab('fly',tr('pie.tab_launch'))}${tab('dish',tr('pie.tab_dishes'))}${tab('book',tr('pie.tab_founder'))}</div>`;
|
h+=`<div class="seg" style="margin:6px 0 10px">${tab('co',tr('pie.tab_company'))}${tab('fly',tr('pie.tab_launch'))}${tab('dish',tr('pie.tab_dishes'))}${tab('book',tr('pie.tab_founder'))}</div>`;
|
||||||
const cities=Object.keys(S.pops).sort((a,b)=>CITY[a].name.localeCompare(CITY[b].name)),c=S.pops[UI.pieCity]?UI.pieCity:cities[0];
|
const cities=Object.keys(S.pops).sort((a,b)=>CITY[a].name.localeCompare(CITY[b].name)),c=S.pops[UI.pieCity]?UI.pieCity:cities[0];
|
||||||
const sel=`<div class="trsel"><label>${tr('common.your_pop')}<select data-chg="pieCity">${cities.map(x=>`<option value="${x}"${x===c?' selected':''}>${esc(CITY[x].name)}</option>`).join('')}</select></label></div>`;
|
const sel=`<div class="trsel"><label>${tr('common.your_pop')}<select data-chg="pieCity">${cities.map(x=>`<option value="${x}"${x===c?' selected':''}>${esc(CITY[x].name)}</option>`).join('')}</select></label></div>`;
|
||||||
|
|
@ -43,4 +44,4 @@ function pieModal(){if(!S||!pieOn())return;const P=S.pie||pieBlank(S.day),can=pi
|
||||||
if(pieSand())h+=`<div class="kv"><span>${tr('pie.would_have')}</span><b>${fmt$(P.book.wouldHave)}</b></div>`;
|
if(pieSand())h+=`<div class="kv"><span>${tr('pie.would_have')}</span><b>${fmt$(P.book.wouldHave)}</b></div>`;
|
||||||
h+=`<h3 style="font-size:15px;margin:10px 0 4px">${tr('pie.founder_feed')}</h3>`+(F.posts.length?F.posts.map(p=>`<div class="ops-rep"><div class="eyebrow">${esc(dateStr(p.d))}</div><div>${esc(pieFpText(p))}</div></div>`).join(''):`<p class="meta">${tr('pie.feed_empty')}</p>`);
|
h+=`<h3 style="font-size:15px;margin:10px 0 4px">${tr('pie.founder_feed')}</h3>`+(F.posts.length?F.posts.map(p=>`<div class="ops-rep"><div class="eyebrow">${esc(dateStr(p.d))}</div><div>${esc(pieFpText(p))}</div></div>`).join(''):`<p class="meta">${tr('pie.feed_empty')}</p>`);
|
||||||
}
|
}
|
||||||
openModal(h,'pie');}
|
openModal(h,'pie');{const cv=document.querySelector('#modal .pgcv');if(cv)pieGlobeOpen(cv,pieGlobeData);}}
|
||||||
|
|
|
||||||
|
|
@ -3412,8 +3412,11 @@
|
||||||
"pie.found_pitch":"Your own constellation: rockets, thousands of satellites (pies) in shells (crusts), and dishes on the ground. Nothing you have built so far costs this much.",
|
"pie.found_pitch":"Your own constellation: rockets, thousands of satellites (pies) in shells (crusts), and dishes on the ground. Nothing you have built so far costs this much.",
|
||||||
"pie.found_price":"Found the company {price} · {mo}/mo",
|
"pie.found_price":"Found the company {price} · {mo}/mo",
|
||||||
"pie.founder_feed":"The Founder posts",
|
"pie.founder_feed":"The Founder posts",
|
||||||
|
"pie.fp_3am":"Posting at 3 a.m. because sleep is a legacy protocol. Our pies are 40% more delicious than last quarter.",
|
||||||
|
"pie.fp_astro":"Astronomers say our pies photobomb their telescopes. Have they tried looking between them?",
|
||||||
"pie.fp_baked":"{crust} is fully baked. Next stop: Mars. Probably next year.",
|
"pie.fp_baked":"{crust} is fully baked. Next stop: Mars. Probably next year.",
|
||||||
"pie.fp_booster":"The booster tipped over on landing. It was a planned tip. We call it a rapid horizontal recovery.",
|
"pie.fp_booster":"The booster tipped over on landing. It was a planned tip. We call it a rapid horizontal recovery.",
|
||||||
|
"pie.fp_debris":"A minor food fight in {crust}. Crumbs are a sign of a healthy constellation.",
|
||||||
"pie.fp_dish":"Our first pie dish is up. My mum says the signal is great.",
|
"pie.fp_dish":"Our first pie dish is up. My mum says the signal is great.",
|
||||||
"pie.fp_fail":"Today's launch was a huge success. The rocket is now in many places at once.",
|
"pie.fp_fail":"Today's launch was a huge success. The rocket is now in many places at once.",
|
||||||
"pie.fp_found":"Founded {co}. Our mission: put pies in the sky so everyone gets a slice.",
|
"pie.fp_found":"Founded {co}. Our mission: put pies in the sky so everyone gets a slice.",
|
||||||
|
|
@ -3421,6 +3424,8 @@
|
||||||
"pie.fp_promise":"Promise: full coverage by year {n}. Write it down.",
|
"pie.fp_promise":"Promise: full coverage by year {n}. Write it down.",
|
||||||
"pie.fp_rename":"We are {co} now. The old name was holding back the vision.",
|
"pie.fp_rename":"We are {co} now. The old name was holding back the vision.",
|
||||||
"pie.fp_slip":"Full coverage is now year {n}. It was always year {n}. Read the footnotes.",
|
"pie.fp_slip":"Full coverage is now year {n}. It was always year {n}. Read the footnotes.",
|
||||||
|
"pie.fp_spat":"Some government has questions. We love questions. We answer them all, eventually, in a thread.",
|
||||||
|
"pie.fp_storm":"The Sun is jealous of {crust}. Totally normal. Space weather is just weather, but more.",
|
||||||
"pie.fp_test":"Test flight {n} ended in a fireball, exactly as we hoped. We learned so much.",
|
"pie.fp_test":"Test flight {n} ended in a fireball, exactly as we hoped. We learned so much.",
|
||||||
"pie.fp_tour":"Stepping back from Tier 1 to go on a listening tour. Mostly I will be talking.",
|
"pie.fp_tour":"Stepping back from Tier 1 to go on a listening tour. Mostly I will be talking.",
|
||||||
"pie.half_baked":"Half-baked",
|
"pie.half_baked":"Half-baked",
|
||||||
|
|
@ -3499,6 +3504,97 @@
|
||||||
"pie_globe.switch_to_day_view":"Switch to day view",
|
"pie_globe.switch_to_day_view":"Switch to day view",
|
||||||
"pie_globe.switch_to_night_view":"Switch to night view",
|
"pie_globe.switch_to_night_view":"Switch to night view",
|
||||||
"pie_globe.your_pies_in_orbit":"Your pies in orbit, drag to turn the Earth",
|
"pie_globe.your_pies_in_orbit":"Your pies in orbit, drag to turn the Earth",
|
||||||
|
"pie_inc.dig_msg":"A backhoe found the backhaul fiber under the pie dish in {city}. The dish is fine, but its traffic has nowhere to go.",
|
||||||
|
"pie_inc.dig_press":"The press office says: the dish is taking a well-earned break from the ground.",
|
||||||
|
"pie_inc.food_fix":"Buy a Space Roomba",
|
||||||
|
"pie_inc.food_msg":"Two pies in {crust} met at 7 km/s. The crumbs knocked out {n} more, and the cloud makes every launch there {p} dearer for a year.",
|
||||||
|
"pie_inc.food_press":"The press office says: this was a voluntary redistribution of pie.",
|
||||||
|
"pie_inc.founder_dip":"The Founder posted some thoughts on your customers' taste in routers. Every customer's mood drops a little.",
|
||||||
|
"pie_inc.founder_press":"The press office says: the account was hacked by the Founder, who is now in a meeting.",
|
||||||
|
"pie_inc.founder_spike":"The Founder posted a meme about your network and it went viral. Demand is up for a few days.",
|
||||||
|
"pie_inc.laser_msg":"The chaos monkey pointed a mirror at the laser links in {crust}. Pies there talk only through dishes for a few days.",
|
||||||
|
"pie_inc.laser_press":"The press office says: the lasers are resting their eyes.",
|
||||||
|
"pie_inc.rain_msg":"A tropical downpour over {city}: the pie dish there runs at 30% until the clouds move on.",
|
||||||
|
"pie_inc.rain_press":"The press office says: the signal is being washed for your convenience.",
|
||||||
|
"pie_inc.safe_now":"Safe mode now",
|
||||||
|
"pie_inc.storm_msg":"A solar storm is cooking {crust}: up to {p} of its pies may fall out of the sky this week. Safe mode saves most of them, but carries nothing.",
|
||||||
|
"pie_inc.storm_press":"The press office says: pies are designed to return to Earth. Some just do it early.",
|
||||||
|
"pie_inc.t_dig":"Backhoe at the pie dish",
|
||||||
|
"pie_inc.t_food":"Food fight in orbit",
|
||||||
|
"pie_inc.t_founder":"The Founder posted at 3 a.m.",
|
||||||
|
"pie_inc.t_laser":"Laser link snipped",
|
||||||
|
"pie_inc.t_rain":"Rain fade",
|
||||||
|
"pie_inc.t_storm":"Solar storm",
|
||||||
|
"pie_spat.air_b":"{a} and {b} each want their traffic kept off the other's pie dishes, for reasons both call obvious.",
|
||||||
|
"pie_spat.air_c0":"Split the network: dishes in both run at {p} for {n} days",
|
||||||
|
"pie_spat.air_c1":"Refuse: both suspend landing rights for {n} days",
|
||||||
|
"pie_spat.air_p":"The press office says: borders are just latency with paperwork.",
|
||||||
|
"pie_spat.air_r0":"You split the network. Dishes in both countries run at part capacity for {n} days.",
|
||||||
|
"pie_spat.air_r1":"{a} and {b} suspended your landing rights until {d}. On this, at least, they agree.",
|
||||||
|
"pie_spat.air_t":"Not over my airspace",
|
||||||
|
"pie_spat.astro_b":"Astronomers counted {n} of your pies streaking across their pictures, and they are writing a very long letter.",
|
||||||
|
"pie_spat.astro_c0":"Fit VisorSat sunshades ({cost})",
|
||||||
|
"pie_spat.astro_c1":"Suggest the other half of the sky (science customers −{n} mood)",
|
||||||
|
"pie_spat.astro_p":"The press office says: we are helping astronomers discover pies.",
|
||||||
|
"pie_spat.astro_r0":"Every pie gets a little sun visor. The astronomers send a thank-you card, with a footnote.",
|
||||||
|
"pie_spat.astro_r1":"The universities on your network are not amused.",
|
||||||
|
"pie_spat.astro_t":"Astronomers complain",
|
||||||
|
"pie_spat.auto":"Nobody answered in time, so it decided itself.",
|
||||||
|
"pie_spat.band_b":"{a} and {b} both claim the same satellite band. Each delegation brought its national snack to the hearing, and both say they invented it.",
|
||||||
|
"pie_spat.band_c":"Side with {a} ({b} suspends landing rights for {n} days)",
|
||||||
|
"pie_spat.band_p":"The press office says: we support every country's claim to everything.",
|
||||||
|
"pie_spat.band_r":"You sided with {a}. {b} suspended your landing rights until {d}.",
|
||||||
|
"pie_spat.band_r_none":"You picked no side, so {a} and {b} both suspended your landing rights for {n} days.",
|
||||||
|
"pie_spat.band_t":"Spectrum squabble",
|
||||||
|
"pie_spat.decide":"Decide",
|
||||||
|
"pie_spat.decide_by":"Decide by {d}, or it decides itself.",
|
||||||
|
"pie_spat.decided":"Decided. It plays out until it is over.",
|
||||||
|
"pie_spat.eyebrow":"Geopolitics",
|
||||||
|
"pie_spat.grab_b":"A rival constellation's home regulator filed for the best orbits first, in triplicate, at 4:59 on a Friday.",
|
||||||
|
"pie_spat.grab_c0":"Pay filing lawyers ({cost}): your next {n} launches cost {p} more",
|
||||||
|
"pie_spat.grab_c1":"Shrug: your next {n} launches cost {p} more",
|
||||||
|
"pie_spat.grab_p":"The press office says: space is big and we will get the good bits next year.",
|
||||||
|
"pie_spat.grab_r":"Your next {n} launches cost {p} more while the paperwork catches up.",
|
||||||
|
"pie_spat.grab_t":"Orbital land grab",
|
||||||
|
"pie_spat.home_b":"{a} says its customers' data must stay home: their traffic may only land on a pie dish inside the country.",
|
||||||
|
"pie_spat.home_c0":"Build a dish there within {n} days",
|
||||||
|
"pie_spat.home_c1":"Buy an exemption ({cost})",
|
||||||
|
"pie_spat.home_fined":"No dish in {a} in time: a fine of {cost}, and customers there are cross.",
|
||||||
|
"pie_spat.home_p":"The press office says: our data is very homesick anyway.",
|
||||||
|
"pie_spat.home_r0":"{a} waits for a dish of its own until {d}.",
|
||||||
|
"pie_spat.home_r1":"The exemption is stamped, framed and filed.",
|
||||||
|
"pie_spat.home_t":"Data stays home",
|
||||||
|
"pie_spat.home_won":"A pie dish in {a}: the data is home, and the customers there are pleased.",
|
||||||
|
"pie_spat.jam_b":"Someone near the border of {a} and {b} is jamming the sky. Pie dishes there run at {p} until {d}.",
|
||||||
|
"pie_spat.jam_c0":"Buy filters ({cost}): dishes there run at {p}",
|
||||||
|
"pie_spat.jam_c1":"Wait it out at {p}",
|
||||||
|
"pie_spat.jam_p":"The press office says: it is not jamming, it is a very loud weather report.",
|
||||||
|
"pie_spat.jam_r0":"Filters fitted. The dishes are back to {p}.",
|
||||||
|
"pie_spat.jam_r1":"You wait it out. The noise should stop by {d}.",
|
||||||
|
"pie_spat.jam_t":"Jamming near a border",
|
||||||
|
"pie_spat.kill_b":"The government of {a} wants an off switch for your pies during national exam week, so nobody can look up the answers.",
|
||||||
|
"pie_spat.kill_c0":"Comply (customers in {a} −{n} mood)",
|
||||||
|
"pie_spat.kill_c1":"Refuse (landing rights suspended {n} days)",
|
||||||
|
"pie_spat.kill_p":"The press office says: we are big fans of exams and of switches.",
|
||||||
|
"pie_spat.kill_r0":"The switch is installed and labelled do not touch. {n} customers there are not impressed.",
|
||||||
|
"pie_spat.kill_r1":"{a} suspended your landing rights until {d}. Good luck with the exams.",
|
||||||
|
"pie_spat.kill_t":"Kill switch, please",
|
||||||
|
"pie_spat.lic_b":"The licensing office of {a} lost your landing-rights file and has stopped accepting new ones, for now.",
|
||||||
|
"pie_spat.lic_c0":"Send a lobbyist ({cost}): refused for {n} days",
|
||||||
|
"pie_spat.lic_c1":"Queue politely: refused for {n} days",
|
||||||
|
"pie_spat.lic_p":"The press office says: we respect {a}'s commitment to thorough paperwork.",
|
||||||
|
"pie_spat.lic_r":"{a} refuses landing rights until {d}.",
|
||||||
|
"pie_spat.lic_t":"Landing rights refused",
|
||||||
|
"pie_spat.pad_b":"{a} offers you a subsidised launch pad if you build {n} pie dishes there. There will be a ribbon.",
|
||||||
|
"pie_spat.pad_c0":"Deal: {n} dishes in {a} within {d} days",
|
||||||
|
"pie_spat.pad_c1":"Decline politely",
|
||||||
|
"pie_spat.pad_cheque":"{a} sends a cheque for {cost} instead of a pad. The ribbon was lovely.",
|
||||||
|
"pie_spat.pad_failed":"Not enough dishes in time. {a} suspends landing rights until {d}.",
|
||||||
|
"pie_spat.pad_p":"The press office says: we never say no to a ribbon.",
|
||||||
|
"pie_spat.pad_r0":"Build {n} dishes in {a} by {d} and the pad is yours.",
|
||||||
|
"pie_spat.pad_r1":"You declined. Everyone shook hands anyway.",
|
||||||
|
"pie_spat.pad_t":"Launch diplomacy",
|
||||||
|
"pie_spat.pad_won":"Ribbon cut: a free launch pad in {city}.",
|
||||||
"pitcairn.uk_grant_mo":"UK grant {mo}/mo",
|
"pitcairn.uk_grant_mo":"UK grant {mo}/mo",
|
||||||
"pitcairn.uk_grant_mo_once_islanders":"UK grant {mo}/mo once the islanders are online",
|
"pitcairn.uk_grant_mo_once_islanders":"UK grant {mo}/mo once the islanders are online",
|
||||||
"pni_all.additional_per_month":"Additional monthly cost",
|
"pni_all.additional_per_month":"Additional monthly cost",
|
||||||
|
|
|
||||||
5
src/styles/39-pie-spats.css
Normal file
5
src/styles/39-pie-spats.css
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
/* Pie in the Sky spats (85-incidents/65-pie-spats.js): two answers, stacked full width so long labels wrap at 360 px. */
|
||||||
|
.pspat-c{display:flex;flex-direction:column;gap:8px;margin-top:10px}
|
||||||
|
.pspat-c .b{width:100%;min-height:44px;white-space:normal;text-align:left;line-height:1.3}
|
||||||
|
.pspat-l{margin-top:6px}
|
||||||
|
.pspat-l .kv{align-items:center;gap:6px}
|
||||||
|
|
@ -555,6 +555,15 @@ test('O5: launches fail only with chaos on, never in the first 90 days after the
|
||||||
assert.equal(fly(oncall, 89), 20, 'O5: quiet for 90 days');
|
assert.equal(fly(oncall, 89), 20, 'O5: quiet for 90 days');
|
||||||
assert.equal(fly(oncall, 90), 0, 'O5: then chaos can take a launch');
|
assert.equal(fly(oncall, 90), 0, 'O5: then chaos can take a launch');
|
||||||
assert.equal(fly("ACT.modeSet({m:'sandbox'});ACT.start({});if(UI.pendGame)ACT.pitchSkip()", 400), 20, 'O5: chaos none, nothing fails');
|
assert.equal(fly("ACT.modeSet({m:'sandbox'});ACT.start({});if(UI.pendGame)ACT.pitchSkip()", 400), 20, 'O5: chaos none, nothing fails');
|
||||||
|
// orbit incidents and spats: the same gate
|
||||||
|
const g = load();
|
||||||
|
g.ev("beginGame('Pie','fra',{mode:'normal',preset:'oncall',rules:{gates:'open'}});if(UI.pendGame)ACT.pitchSkip();S.cash=1e12;ACT.pieFound()");
|
||||||
|
assert.ok(g.ev('!!S.pie.co'), 'a company to annoy');
|
||||||
|
assert.ok(g.ev("['pieIncDay','pieSpatDayAll'].every(f=>window[f].toString().includes('pieChaos()'))&&pieChaos.toString().includes('chaosMul()')&&pieChaos.toString().includes('PIE_QUIET')"), 'O5: incidents and spats read pieChaos()');
|
||||||
|
assert.equal(g.ev('S.day=S.pie.born+89;pieChaos()'), false, 'O5: quiet for 90 days');
|
||||||
|
assert.equal(g.ev('S.day=S.pie.born+90;pieChaos()'), true, 'O5: then they may come');
|
||||||
|
assert.equal(g.ev("S.rules.chaos='none';pieChaos()"), false, 'O5: never without chaos');
|
||||||
|
assert.deepEqual(g.errors, []);
|
||||||
});
|
});
|
||||||
|
|
||||||
test('O7: a fresh Tier 1 cannot afford a full Shortcrust in its first year', () => {
|
test('O7: a fresh Tier 1 cannot afford a full Shortcrust in its first year', () => {
|
||||||
|
|
|
||||||
188
tests/pie-incidents.test.js
Normal file
188
tests/pie-incidents.test.js
Normal file
|
|
@ -0,0 +1,188 @@
|
||||||
|
// Pie in the Sky incidents (docs/plans/pie-in-the-sky.md, rule O5): seeded, and each incident is forced where luck would decide.
|
||||||
|
const test = require('node:test');
|
||||||
|
const assert = require('node:assert/strict');
|
||||||
|
const { load } = require('./harness');
|
||||||
|
|
||||||
|
// An On-call network in Frankfurt with a rocket company: open gates (as in sandbox) but real chaos, so incidents can fire.
|
||||||
|
const sky = (ev, preset = 'oncall', o = {}) => {
|
||||||
|
ev(`beginGame('Sky','fra',{mode:'normal',preset:'${preset}',rules:${JSON.stringify(Object.assign({ gates: 'open' }, o))}});if(UI.pendGame)ACT.pitchSkip();S.cash=1e12;S.nextFail=1e9;S.nextEvent=1e9;S.monkey&&(S.monkey.next=1e9)`);
|
||||||
|
ev("for(const c of ['sin','jkt','ams','bru'])ACT.buildPop({city:c});ACT.pieFound();ACT.pieFactory();ACT.piePad({city:'sin'});for(const c of ['sin','jkt','ams','bru','fra'])ACT.pieDish({city:c});for(const cc of ['SG','ID','NL','BE','DE'])ACT.pieLic({cc})");
|
||||||
|
ev("pieCohort('short',1200,true);pieCohort('upper',300,false);S.day=S.pie.born+120;compute()");
|
||||||
|
};
|
||||||
|
const close = (ev) => ev('closeModal()');
|
||||||
|
|
||||||
|
test('O5: quiet for 90 days after the unlock, and a quiet ruleset gives a quiet year', () => {
|
||||||
|
const { ev, errors } = load();
|
||||||
|
sky(ev);
|
||||||
|
ev('S.day=S.pie.born;pieIncDay(S.day)');
|
||||||
|
ev('Math.random=()=>0'); // every roll would fire
|
||||||
|
ev('for(let d=0;d<89;d++){S.day=S.pie.born+d;pieIncDay(S.day);pieSpatDayAll(S.day)}');
|
||||||
|
assert.equal(ev("S.inc.filter(i=>i.type.startsWith('pie')).length+Object.keys(S.pie.spat).length"), 0, 'O5: 90 quiet days');
|
||||||
|
ev('S.day=S.pie.born+90;pieIncDay(S.day)');
|
||||||
|
assert.ok(ev("S.inc.some(i=>i.type.startsWith('pie'))||S.stats.survived>0"), 'then chaos may bite');
|
||||||
|
// chaos none: a whole year of dayTick with the dice always saying yes
|
||||||
|
const q = load();
|
||||||
|
sky(q.ev, 'oncall', { chaos: 'none' });
|
||||||
|
q.ev('__reseed(77);for(let i=0;i<360;i++)dayTick()');
|
||||||
|
assert.equal(q.ev("S.inc.filter(i=>i.type.startsWith('pie')).length+Object.keys(S.pie.spat).length+(S.stats.pieSpat||0)"), 0, 'M3: chaos none, nothing in orbit');
|
||||||
|
assert.deepEqual(errors, []);
|
||||||
|
assert.deepEqual(q.errors, []);
|
||||||
|
});
|
||||||
|
|
||||||
|
test('a seeded year in orbit is the same every time, and things do happen', () => {
|
||||||
|
const run = () => {
|
||||||
|
const g = load();
|
||||||
|
sky(g.ev, 'bgp');
|
||||||
|
g.ev('__reseed(4242);for(let i=0;i<360;i++){dayTick();for(const k in S.pie.spat)if(S.pie.spat[k].st===\'ask\')pieSpatChoose(k,1,false)}');
|
||||||
|
assert.deepEqual(g.errors, []);
|
||||||
|
return g.ev("JSON.stringify([S.stats.by,S.stats.pieSpat||0,Object.keys(CRUSTS).map(pieLive)])");
|
||||||
|
};
|
||||||
|
const a = run();
|
||||||
|
assert.equal(a, run(), 'deterministic per seed');
|
||||||
|
assert.match(a, /pie/, 'a year of BGP at 3 a.m. brings something to orbit');
|
||||||
|
});
|
||||||
|
|
||||||
|
test('solar storm: a crust loses 5 to 40% in a week, safe mode saves most of it', () => {
|
||||||
|
const storm = (safe) => {
|
||||||
|
const { ev, errors } = load();
|
||||||
|
sky(ev);
|
||||||
|
ev(`window.__n0={};for(const id in CRUSTS)__n0[id]=pieLive(id);S.pie.safe=${safe};Math.random=()=>0.99;pieIncFire('storm')`);
|
||||||
|
const i = ev("JSON.stringify(S.inc.find(i=>i.type==='piestorm'))");
|
||||||
|
const o = JSON.parse(i), cr = o.ref, n0 = ev(`__n0['${cr}']`);
|
||||||
|
assert.ok(o.f >= 0.05 && o.f <= 0.4, `loss share ${o.f}`);
|
||||||
|
assert.equal(o.until - ev('S.day'), 7, 'a week');
|
||||||
|
assert.ok(ev("S.log.some(e=>/press office/i.test(e.t))"), 'the press office has a line');
|
||||||
|
ev('for(let d=0;d<7;d++){S.day++;pieIncDay(S.day)}');
|
||||||
|
const lost = 1 - ev(`pieLive('${cr}')`) / n0;
|
||||||
|
assert.deepEqual(errors, []);
|
||||||
|
return [lost, o.f];
|
||||||
|
};
|
||||||
|
const [open, f] = storm(false), [safe] = storm(true);
|
||||||
|
assert.ok(Math.abs(open - f) < 0.02, `about ${f} lost without safe mode (${open})`);
|
||||||
|
assert.ok(safe < open / 2, `safe mode saves most (${safe} vs ${open})`);
|
||||||
|
});
|
||||||
|
|
||||||
|
test('food fight: a slice gone, launches dearer for a year, a Space Roomba fixes it', () => {
|
||||||
|
const { ev, errors } = load();
|
||||||
|
sky(ev);
|
||||||
|
const before = ev("pieQuote('falcon','short').cost");
|
||||||
|
const n0 = ev("pieLive('short')+pieLive('upper')");
|
||||||
|
ev("Math.random=()=>0;pieIncFire('food')");
|
||||||
|
const i = JSON.parse(ev("JSON.stringify(S.inc.find(i=>i.type==='piefood'))"));
|
||||||
|
assert.ok(i, 'debris');
|
||||||
|
assert.equal(i.until - ev('S.day'), 360, 'a year');
|
||||||
|
assert.ok(ev("pieLive('short')+pieLive('upper')") < n0, 'a slice of the crust is gone');
|
||||||
|
ev("UI.pieIns=false;UI.pieLas=false");
|
||||||
|
const q = ev(`pieQuote('falcon','${i.ref}').cost`), q0 = i.ref === 'short' ? before : null;
|
||||||
|
if (q0) assert.ok(q > q0, `launches cost more (${q} > ${q0})`);
|
||||||
|
ev(`ACT.fixInc({id:'${i.id}'})`);
|
||||||
|
assert.equal(ev("S.inc.some(i=>i.type==='piefood')"), false, 'the Roomba cleans it up');
|
||||||
|
if (q0) assert.equal(ev(`pieQuote('falcon','${i.ref}').cost`), q0, 'and prices are back');
|
||||||
|
assert.deepEqual(errors, []);
|
||||||
|
});
|
||||||
|
|
||||||
|
test('rain fade: a tropical dish runs at 30% for a few days', () => {
|
||||||
|
const { ev, errors } = load();
|
||||||
|
sky(ev);
|
||||||
|
const g = (c) => ev(`(pieDishes().find(x=>x.city==='${c}')||{}).g`);
|
||||||
|
const sin = g('sin'), ams = g('ams');
|
||||||
|
ev("Math.random=()=>0;pieIncFire('rain')");
|
||||||
|
const c = ev("S.inc.find(i=>i.type==='pierain').ref");
|
||||||
|
assert.ok(['sin', 'jkt'].includes(c), 'only in the tropics');
|
||||||
|
assert.equal(g(c), Math.round(sin * 0.3 * 1000) / 1000 || sin * 0.3);
|
||||||
|
assert.equal(g('ams'), ams, 'Amsterdam is dry');
|
||||||
|
ev('S.day+=10;dayTick()');
|
||||||
|
assert.equal(g(c), sin, 'the clouds move on');
|
||||||
|
assert.deepEqual(errors, []);
|
||||||
|
});
|
||||||
|
|
||||||
|
test('backhoe at the dish: its backhaul is down until fixed or healed', () => {
|
||||||
|
const { ev, errors } = load();
|
||||||
|
sky(ev);
|
||||||
|
const n = ev('pieDishes().length');
|
||||||
|
ev("Math.random=()=>0;pieIncFire('dig')");
|
||||||
|
const i = JSON.parse(ev("JSON.stringify(S.inc.find(i=>i.type==='piedig'))"));
|
||||||
|
assert.equal(ev('pieDishes().length'), n - 1, 'one dish carries nothing');
|
||||||
|
assert.ok(i.cost > 0);
|
||||||
|
ev(`ACT.fixInc({id:'${i.id}'})`);
|
||||||
|
assert.equal(ev('pieDishes().length'), n, 'a rush splice brings it back');
|
||||||
|
ev("pieIncFire('dig')");
|
||||||
|
ev('for(let d=0;d<4;d++)dayTick()');
|
||||||
|
assert.equal(ev('pieDishes().length'), n, 'or it heals by itself');
|
||||||
|
assert.deepEqual(errors, []);
|
||||||
|
});
|
||||||
|
|
||||||
|
test('astronomers: pay for VisorSat, or science customers sulk', () => {
|
||||||
|
const run = (c) => {
|
||||||
|
const { ev, errors } = load();
|
||||||
|
sky(ev);
|
||||||
|
ev("S.biz.push({id:'u1',type:'edu',city:'fra',bw:20,rate:90,mood:80,since:0,name:'Uni'},{id:'d1',type:'dia',city:'fra',bw:1,rate:600,mood:80,since:0,name:'Shop'})");
|
||||||
|
ev("Math.random=()=>0;pieIncFire('astro')");
|
||||||
|
assert.equal(ev("S.pie.spat.astro.st"), 'ask');
|
||||||
|
const cash = ev('S.cash');
|
||||||
|
ev(`ACT.pieSpatOpen({id:'astro'})`);
|
||||||
|
assert.ok(ev("!!document.querySelector('#modal [data-act=pieSpatPick]')"), 'a sheet with the choices');
|
||||||
|
ev(`ACT.pieSpatPick({id:'astro',c:${c}})`);
|
||||||
|
const r = { paid: cash - ev('S.cash'), edu: ev("S.biz.find(b=>b.id==='u1').mood"), dia: ev("S.biz.find(b=>b.id==='d1').mood") };
|
||||||
|
ev('dayTick()');
|
||||||
|
assert.equal(ev('!!S.pie.spat.astro'), false, 'over');
|
||||||
|
close(ev);
|
||||||
|
assert.deepEqual(errors, []);
|
||||||
|
return r;
|
||||||
|
};
|
||||||
|
const pay = run(0), no = run(1);
|
||||||
|
assert.ok(pay.paid > 0 && pay.edu === 80, 'VisorSat costs money and keeps the peace');
|
||||||
|
assert.ok(no.paid <= 0 && no.edu === 60 && no.dia === 80, 'only science customers lose mood');
|
||||||
|
});
|
||||||
|
|
||||||
|
test('the Founder posts at 3 a.m.: a mood dip or a demand spike', () => {
|
||||||
|
const { ev, errors } = load();
|
||||||
|
sky(ev);
|
||||||
|
ev("S.biz.push({id:'d1',type:'dia',city:'fra',bw:1,rate:600,mood:80,since:0,name:'Shop'})");
|
||||||
|
ev("Math.random=()=>0.1;pieIncFire('founder')");
|
||||||
|
assert.equal(ev("S.biz[0].mood"), 75, 'a dip');
|
||||||
|
ev("Math.random=()=>0.9;pieIncFire('founder')");
|
||||||
|
assert.ok(ev('S.ev.viral>S.day'), 'or a spike');
|
||||||
|
assert.equal(ev("S.pie.founder.posts[0].k"), 'pie.fp_3am');
|
||||||
|
assert.deepEqual(errors, []);
|
||||||
|
});
|
||||||
|
|
||||||
|
test('F4: the chaos monkey snips a laser link while it visits, healed within a week', () => {
|
||||||
|
const { ev, errors } = load();
|
||||||
|
sky(ev);
|
||||||
|
assert.ok(ev("pieLiveLas('short')") > 0);
|
||||||
|
ev("S.monkey={on:1,start:S.day,until:S.day+100,snip:1e9,n:0,hurt:0,c:'fra',next:0};Math.random=()=>0.01");
|
||||||
|
assert.equal(ev('mkOn()'), true);
|
||||||
|
ev('pieIncDay(S.day)');
|
||||||
|
const i = JSON.parse(ev("JSON.stringify(S.inc.find(i=>i.type==='pielaser'))"));
|
||||||
|
assert.ok(i, 'snipped');
|
||||||
|
assert.ok(i.until - ev('S.day') <= 7, 'heals within a week');
|
||||||
|
assert.equal(ev(`pieLiveLas('${i.ref}')`), 0, 'no lasers in that crust meanwhile');
|
||||||
|
ev('Math.random=()=>0.99;for(let d=0;d<8;d++)dayTick()');
|
||||||
|
assert.ok(ev(`pieLiveLas('${i.ref}')`) > 0, 'lasers back');
|
||||||
|
// and never outside a monkey visit
|
||||||
|
ev("S.monkey.on=0;S.inc=S.inc.filter(i=>i.type!=='pielaser');Math.random=()=>0.01;pieIncDay(S.day)");
|
||||||
|
assert.equal(ev("S.inc.some(i=>i.type==='pielaser')"), false);
|
||||||
|
assert.deepEqual(errors, []);
|
||||||
|
});
|
||||||
|
|
||||||
|
test('the booster that falls over on the drone ship is the foundation\'s', () => {
|
||||||
|
const { ev } = load();
|
||||||
|
assert.ok(ev("pieFly.toString().includes('fp_booster')"));
|
||||||
|
});
|
||||||
|
|
||||||
|
test('sanitize drops orbit incidents that make no sense, and old saves are untouched', () => {
|
||||||
|
const { ev, errors } = load();
|
||||||
|
sky(ev);
|
||||||
|
ev("Math.random=()=>0;pieIncFire('storm');pieIncFire('dig')");
|
||||||
|
ev("S.inc.push({id:'x1',type:'piestorm',ref:'nope',until:S.day+3,msg:'',cost:0},{id:'x2',type:'pierain',ref:'atlantis',until:S.day+3,msg:'',cost:0},{id:'x3',type:'piestorm',ref:'short',start:-5,until:1e9,f:9,msg:'',cost:0})");
|
||||||
|
ev('S=migrate(JSON.parse(JSON.stringify(S)));compute()');
|
||||||
|
assert.equal(ev("S.inc.filter(i=>i.type.startsWith('pie')).length"), 3);
|
||||||
|
assert.ok(ev("S.inc.filter(i=>i.type==='piestorm').every(i=>i.f<=0.4&&i.until<=S.day+400)"), 'clamped');
|
||||||
|
// an old save: no pie, no orbit incidents survive
|
||||||
|
ev("const o=JSON.parse(JSON.stringify(S));delete o.pieV;delete o.pie;S=migrate(o)");
|
||||||
|
assert.equal(ev("S.inc.some(i=>i.type.startsWith('pie'))"), false);
|
||||||
|
assert.equal(ev('S.pie'), null);
|
||||||
|
ev('for(let i=0;i<30;i++)dayTick()');
|
||||||
|
assert.deepEqual(errors, []);
|
||||||
|
});
|
||||||
267
tests/pie-spats.test.js
Normal file
267
tests/pie-spats.test.js
Normal file
|
|
@ -0,0 +1,267 @@
|
||||||
|
// Pie in the Sky geopolitical spats (docs/plans/pie-in-the-sky.md): seeded; each spat is started directly, with Math.random
|
||||||
|
// pinned so the country it picks is known.
|
||||||
|
const test = require('node:test');
|
||||||
|
const assert = require('node:assert/strict');
|
||||||
|
const { load } = require('./harness');
|
||||||
|
|
||||||
|
// On-call with open gates: real chaos, everything buildable. Dishes in Amsterdam (NL), Brussels (BE), Singapore, Frankfurt.
|
||||||
|
const sky = (ev, o = {}) => {
|
||||||
|
ev(`beginGame('Sky','fra',{mode:'normal',preset:'oncall',rules:${JSON.stringify(Object.assign({ gates: 'open' }, o))}});if(UI.pendGame)ACT.pitchSkip();S.cash=1e12;S.nextFail=1e9;S.nextEvent=1e9;S.monkey&&(S.monkey.next=1e9)`);
|
||||||
|
ev("for(const c of ['sin','ams','bru'])ACT.buildPop({city:c});ACT.pieFound();ACT.pieFactory();ACT.piePad({city:'sin'});for(const c of ['ams','bru','fra','sin'])ACT.pieDish({city:c});for(const cc of ['NL','BE','DE','SG'])ACT.pieLic({cc})");
|
||||||
|
ev("pieCohort('short',1200,true);S.day=S.pie.born+120;compute();S.pie.stock=400");
|
||||||
|
};
|
||||||
|
// Start spat id against country cc (the candidate list is pinned to it).
|
||||||
|
const start = (ev, id, cc) => ev(`{const D=PIE_SPAT_DEF['${id}'],c=D.can;${cc ? `D.can=()=>c().includes('${cc}')?['${cc}']:[];` : ''}const r=pieSpatStart('${id}');D.can=c;r}`);
|
||||||
|
const sp = (ev, id) => JSON.parse(ev(`JSON.stringify(S.pie.spat['${id}']||null)`));
|
||||||
|
const lic = (ev, cc) => ev(`pieLicOk('${cc}')`);
|
||||||
|
const days = (ev, n) => ev(`for(let i=0;i<${n};i++)dayTick()`);
|
||||||
|
|
||||||
|
test('every spat asks with two answers on a phone-sized sheet, and the NOC lists it', () => {
|
||||||
|
const { dom, ev, errors } = load();
|
||||||
|
sky(ev);
|
||||||
|
ev("window.innerWidth=360;ACT.buildPop({city:'lon'})");
|
||||||
|
for (const [id, cc] of [['air', 'NL'], ['astro'], ['band', 'NL'], ['grab'], ['home', 'GB'], ['jam', 'NL'], ['kill', 'DE'], ['lic', 'SG'], ['pad']]) {
|
||||||
|
ev('S.pie.spat={};S.pie.lic={};for(const cc of [\'NL\',\'BE\',\'DE\',\'SG\'])S.pie.lic[cc]={state:\'ok\',until:S.day+360}');
|
||||||
|
assert.equal(start(ev, id, cc), true, `${id} starts`);
|
||||||
|
assert.ok(ev("S.log[0].t.length>10"), `${id} is announced`);
|
||||||
|
ev(`ACT.pieSpatOpen({id:'${id}'})`);
|
||||||
|
const b = dom.window.document.querySelectorAll('#modal [data-act=pieSpatPick]');
|
||||||
|
assert.equal(b.length, 2, `${id}: two choices`);
|
||||||
|
assert.ok(/press office/i.test(dom.window.document.querySelector('#modal').textContent), `${id}: a press office line`);
|
||||||
|
assert.doesNotMatch(dom.window.document.querySelector('#modal').textContent, /pie_spat\.|undefined|NaN/, `${id}: no raw labels`);
|
||||||
|
ev("UI.started=true;UI.left='noc';UI.leftOpen=true;renderLeft()");
|
||||||
|
assert.ok(ev(`!!document.querySelector('[data-act=pieSpatOpen][data-args*="${id}"]')`), `${id}: on the NOC card`);
|
||||||
|
}
|
||||||
|
ev('closeModal()');
|
||||||
|
assert.deepEqual(errors, []);
|
||||||
|
});
|
||||||
|
|
||||||
|
test('landing rights refused, then given back with the days you had', () => {
|
||||||
|
const { ev, errors } = load();
|
||||||
|
sky(ev);
|
||||||
|
const left = ev("S.pie.lic.SG.until-S.day");
|
||||||
|
start(ev, 'lic', 'SG');
|
||||||
|
ev("ACT.pieSpatPick({id:'lic',c:1})");
|
||||||
|
assert.equal(ev("S.pie.lic.SG.state"), 'refused', "a 'refused' state");
|
||||||
|
assert.equal(lic(ev, 'SG'), false);
|
||||||
|
assert.equal(ev("pieDishes().some(x=>x.cc==='SG')"), false, 'the dish there carries nothing');
|
||||||
|
ev("ACT.pieLic({cc:'SG'})");
|
||||||
|
assert.equal(lic(ev, 'SG'), false, 'cannot buy your way past it');
|
||||||
|
const until = sp(ev, 'lic').until, n = until - ev('S.day');
|
||||||
|
assert.ok(n >= 90 && n <= 180, `refused 90 to 180 days (${n})`);
|
||||||
|
days(ev, n + 1);
|
||||||
|
assert.equal(lic(ev, 'SG'), true, 'back');
|
||||||
|
assert.equal(ev("S.pie.lic.SG.until-S.day"), left - 1, 'with the days you had left');
|
||||||
|
assert.deepEqual(errors, []);
|
||||||
|
});
|
||||||
|
|
||||||
|
test('the lobbyist shortens a refusal to 30 days', () => {
|
||||||
|
const { ev, errors } = load();
|
||||||
|
sky(ev);
|
||||||
|
start(ev, 'lic', 'SG');
|
||||||
|
const cash = ev('S.cash');
|
||||||
|
ev("ACT.pieSpatPick({id:'lic',c:0})");
|
||||||
|
assert.ok(ev('S.cash') < cash);
|
||||||
|
assert.equal(sp(ev, 'lic').until - ev('S.day'), 30);
|
||||||
|
assert.deepEqual(errors, []);
|
||||||
|
});
|
||||||
|
|
||||||
|
test('spectrum squabble: neighbours, pick a side, the other suspends for 180 days', () => {
|
||||||
|
const { ev, errors } = load();
|
||||||
|
sky(ev);
|
||||||
|
start(ev, 'band', 'NL');
|
||||||
|
const o = sp(ev, 'band');
|
||||||
|
assert.equal(o.cc, 'NL');
|
||||||
|
assert.equal(o.cc2, 'BE', 'the neighbour comes from the city table');
|
||||||
|
ev("ACT.pieSpatPick({id:'band',c:0})");
|
||||||
|
assert.equal(lic(ev, 'NL'), true, 'the side you took keeps you');
|
||||||
|
assert.equal(ev("S.pie.lic.BE.state"), 'sus', "a 'sus' state");
|
||||||
|
assert.equal(sp(ev, 'band').until - ev('S.day'), 180);
|
||||||
|
days(ev, 181);
|
||||||
|
assert.equal(lic(ev, 'BE'), true, 'forgiven after 180 days');
|
||||||
|
// no answer: both suspend for 90
|
||||||
|
ev('S.pie.spat={}');
|
||||||
|
start(ev, 'band', 'NL');
|
||||||
|
days(ev, 21);
|
||||||
|
assert.equal(lic(ev, 'NL') || lic(ev, 'BE'), false, 'no side: both annoyed');
|
||||||
|
assert.deepEqual(errors, []);
|
||||||
|
});
|
||||||
|
|
||||||
|
test('kill switch: comply costs mood there, refuse suspends 90 days', () => {
|
||||||
|
const run = (c) => {
|
||||||
|
const { ev, errors } = load();
|
||||||
|
sky(ev);
|
||||||
|
ev("S.biz.push({id:'b1',type:'dia',city:'fra',bw:1,rate:600,mood:80,since:0,name:'Shop'},{id:'b2',type:'dia',city:'ams',bw:1,rate:600,mood:80,since:0,name:'Shop2'})");
|
||||||
|
start(ev, 'kill', 'DE');
|
||||||
|
ev(`ACT.pieSpatPick({id:'kill',c:${c}})`);
|
||||||
|
const r = { de: ev("S.biz[0].mood"), nl: ev("S.biz[1].mood"), lic: lic(ev, 'DE'), n: (sp(ev, 'kill') || {}).until - ev('S.day') };
|
||||||
|
assert.deepEqual(errors, []);
|
||||||
|
return r;
|
||||||
|
};
|
||||||
|
const yes = run(0), no = run(1);
|
||||||
|
assert.deepEqual([yes.de, yes.nl, yes.lic], [65, 80, true], 'comply: customers there lose 15');
|
||||||
|
assert.deepEqual([no.de, no.lic, no.n], [80, false, 90], 'refuse: licence suspended 90 days');
|
||||||
|
});
|
||||||
|
|
||||||
|
test('data stays home: a dish in the country settles it, or a fine at the end', () => {
|
||||||
|
const { ev, errors } = load();
|
||||||
|
sky(ev);
|
||||||
|
ev("ACT.buildPop({city:'lon'});S.biz.push({id:'b1',type:'dia',city:'lon',bw:1,rate:600,mood:80,since:0,name:'Shop'})");
|
||||||
|
start(ev, 'home', 'GB');
|
||||||
|
ev("ACT.pieSpatPick({id:'home',c:0})");
|
||||||
|
assert.equal(ev("pieSpatHome('GB')"), true, 'British customers must land in Britain');
|
||||||
|
ev("ACT.pieDish({city:'lon'});S.biz[0].mood=50;PIE_SPAT_DEF.home.day(S.pie.spat.home,S.day)");
|
||||||
|
assert.equal(ev("pieSpatHome('GB')"), false, 'a dish there settles it');
|
||||||
|
assert.equal(ev('S.biz[0].mood'), 55, 'and the customers there are pleased');
|
||||||
|
// and when nobody builds one
|
||||||
|
ev("S.pie.dishes=S.pie.dishes.filter(x=>x.city!=='lon');S.pie.spat={}");
|
||||||
|
start(ev, 'home', 'GB');
|
||||||
|
ev("ACT.pieSpatPick({id:'home',c:0})");
|
||||||
|
const spent = ev('S.cash');
|
||||||
|
days(ev, 91);
|
||||||
|
assert.equal(ev('!!S.pie.spat.home'), false);
|
||||||
|
assert.ok(ev("S.log.some(e=>/a fine of/.test(e.t))"), 'fined');
|
||||||
|
assert.ok(ev('S.cash') < spent - 1e6);
|
||||||
|
assert.deepEqual(errors, []);
|
||||||
|
});
|
||||||
|
|
||||||
|
test('orbital land grab: the next launches cost more, then prices are back', () => {
|
||||||
|
const { ev, errors } = load();
|
||||||
|
sky(ev);
|
||||||
|
const q0 = ev("pieQuote('falcon','short').cost");
|
||||||
|
start(ev, 'grab');
|
||||||
|
ev("ACT.pieSpatPick({id:'grab',c:1})");
|
||||||
|
const q1 = ev("pieQuote('falcon','short').cost");
|
||||||
|
assert.ok(q1 > q0, `dearer (${q1} > ${q0})`);
|
||||||
|
for (let i = 0; i < 5; i++) ev("S.pie.pads[0].next=0;ACT.pieLaunch({rk:'falcon',cr:'short'})");
|
||||||
|
assert.equal(ev('S.pie.spat.grab.left'), 0);
|
||||||
|
ev('dayTick()');
|
||||||
|
assert.equal(ev('!!S.pie.spat.grab'), false, 'over after five launches');
|
||||||
|
ev('S.pie.pads[0].next=0');
|
||||||
|
assert.equal(ev("pieQuote('falcon','short').cost"), q0);
|
||||||
|
// lawyers cut the surcharge
|
||||||
|
start(ev, 'grab');
|
||||||
|
ev("ACT.pieSpatPick({id:'grab',c:0})");
|
||||||
|
assert.ok(ev("pieQuote('falcon','short').cost") < q1);
|
||||||
|
ev('closeModal()');
|
||||||
|
assert.deepEqual(errors, []);
|
||||||
|
});
|
||||||
|
|
||||||
|
test('jamming near a border: dishes there drop for some days, filters help', () => {
|
||||||
|
const { ev, errors } = load();
|
||||||
|
sky(ev);
|
||||||
|
const g = (c) => ev(`(pieDishes().find(x=>x.city==='${c}')||{g:0}).g`);
|
||||||
|
const ams = g('ams'), sin = g('sin');
|
||||||
|
start(ev, 'jam', 'NL');
|
||||||
|
const o = sp(ev, 'jam'), n = o.until - ev('S.day');
|
||||||
|
assert.ok(n >= 5 && n <= 10, `some days (${n})`);
|
||||||
|
assert.equal(g('ams'), ams * 0.4);
|
||||||
|
assert.equal(g('bru'), ams * 0.4, 'both sides of the border');
|
||||||
|
assert.equal(g('sin'), sin, 'far away is fine');
|
||||||
|
ev("ACT.pieSpatPick({id:'jam',c:0})");
|
||||||
|
assert.equal(g('ams'), ams * 0.8, 'filters');
|
||||||
|
days(ev, n + 1);
|
||||||
|
assert.equal(g('ams'), ams, 'quiet again');
|
||||||
|
assert.deepEqual(errors, []);
|
||||||
|
});
|
||||||
|
|
||||||
|
test('launch diplomacy: three dishes there bring a free pad', () => {
|
||||||
|
const { ev, errors } = load();
|
||||||
|
sky(ev);
|
||||||
|
ev("for(const c of ['bom','maa','del'])ACT.buildPop({city:c})");
|
||||||
|
start(ev, 'pad', 'IN');
|
||||||
|
ev("ACT.pieSpatPick({id:'pad',c:0})");
|
||||||
|
const pads = ev('S.pie.pads.length');
|
||||||
|
for (const c of ['bom', 'maa', 'del']) ev(`ACT.pieDish({city:'${c}'})`);
|
||||||
|
ev('dayTick()');
|
||||||
|
assert.equal(ev('S.pie.pads.length'), pads + 1, 'a pad, free');
|
||||||
|
assert.ok(ev("S.pie.pads.some(p=>CITY[p.city].cc==='IN')"));
|
||||||
|
// a broken promise suspends landing rights
|
||||||
|
ev("S.pie.spat={};S.pie.pads=S.pie.pads.filter(p=>CITY[p.city].cc!=='IN');S.pie.dishes=S.pie.dishes.filter(x=>CITY[x.city].cc!=='IN');ACT.pieLic({cc:'IN'})");
|
||||||
|
start(ev, 'pad', 'IN');
|
||||||
|
ev("ACT.pieSpatPick({id:'pad',c:0})");
|
||||||
|
days(ev, 181);
|
||||||
|
assert.equal(ev("S.pie.lic.IN.state"), 'sus');
|
||||||
|
assert.deepEqual(errors, []);
|
||||||
|
});
|
||||||
|
|
||||||
|
test('not over my airspace: split the network, or both suspend', () => {
|
||||||
|
const run = (c) => {
|
||||||
|
const { ev, errors } = load();
|
||||||
|
sky(ev);
|
||||||
|
const ams = ev("pieDishes().find(x=>x.city==='ams').g");
|
||||||
|
start(ev, 'air', 'NL');
|
||||||
|
ev(`ACT.pieSpatPick({id:'air',c:${c}})`);
|
||||||
|
const r = { blk: ev("pieAirBlock('NL','BE')"), g: ev("(pieDishes().find(x=>x.city==='ams')||{g:0}).g") / ams, nl: lic(ev, 'NL'), be: lic(ev, 'BE'), n: sp(ev, 'air').until - ev('S.day') };
|
||||||
|
days(ev, r.n + 1);
|
||||||
|
r.after = lic(ev, 'NL') && lic(ev, 'BE') && !ev("pieAirBlock('NL','BE')");
|
||||||
|
assert.deepEqual(errors, []);
|
||||||
|
return r;
|
||||||
|
};
|
||||||
|
assert.deepEqual(run(0), { blk: true, g: 0.75, nl: true, be: true, n: 120, after: true });
|
||||||
|
assert.deepEqual(run(1), { blk: false, g: 0, nl: false, be: false, n: 60, after: true });
|
||||||
|
});
|
||||||
|
|
||||||
|
test('an unanswered spat decides itself on its deadline, deterministically', () => {
|
||||||
|
const run = () => {
|
||||||
|
const { ev, errors } = load();
|
||||||
|
sky(ev, { chaos: 'spicy' });
|
||||||
|
ev('__reseed(99);for(let i=0;i<500;i++)dayTick()');
|
||||||
|
assert.deepEqual(errors, []);
|
||||||
|
return ev("JSON.stringify([S.stats.pieSpat||0,S.pie.lic,Object.keys(S.pie.spat)])");
|
||||||
|
};
|
||||||
|
const a = run();
|
||||||
|
assert.equal(a, run());
|
||||||
|
assert.ok(JSON.parse(a)[0] >= 1, 'spats happen with chaos on');
|
||||||
|
});
|
||||||
|
|
||||||
|
test('quiet: no spat in the first 90 days, nor ever without chaos', () => {
|
||||||
|
const { ev, errors } = load();
|
||||||
|
sky(ev);
|
||||||
|
ev('Math.random=()=>0;S.day=S.pie.born+10;pieSpatDayAll(S.day)');
|
||||||
|
assert.equal(ev('Object.keys(S.pie.spat).length'), 0, 'O5');
|
||||||
|
ev('S.day=S.pie.born+100;pieSpatDayAll(S.day)');
|
||||||
|
assert.equal(ev('Object.keys(S.pie.spat).length'), 1, 'then they come');
|
||||||
|
const q = load();
|
||||||
|
sky(q.ev, { chaos: 'none' });
|
||||||
|
q.ev('Math.random=()=>0;for(let d=0;d<400;d++){S.day++;pieSpatDayAll(S.day)}');
|
||||||
|
assert.equal(q.ev('Object.keys(S.pie.spat).length'), 0, 'chaos none');
|
||||||
|
// a sandbox (chaos none) neither
|
||||||
|
const s = load();
|
||||||
|
s.ev("ACT.modeSet({m:'sandbox'});ACT.start({});if(UI.pendGame)ACT.pitchSkip();ACT.pieFound();Math.random=()=>0;for(let d=0;d<400;d++){S.day++;pieSpatDayAll(S.day);pieIncDay(S.day)}");
|
||||||
|
assert.equal(s.ev('Object.keys(S.pie.spat).length+S.inc.length'), 0, 'sandbox');
|
||||||
|
assert.deepEqual(errors, []);
|
||||||
|
assert.deepEqual(q.errors, []);
|
||||||
|
assert.deepEqual(s.errors, []);
|
||||||
|
});
|
||||||
|
|
||||||
|
test('sanitize repairs broken spat state; old saves are unaffected', () => {
|
||||||
|
const { ev, errors } = load();
|
||||||
|
sky(ev);
|
||||||
|
start(ev, 'band', 'NL');
|
||||||
|
ev("S.pie.spat.air={st:'on',cc:'NL',cc2:'NL',until:S.day+5}"); // same country twice
|
||||||
|
ev("S.pie.spat.kill={st:'weird',cc:'XX',until:S.day+5}"); // no such country
|
||||||
|
ev("S.pie.spat.jam={st:'on',cc:'NL',cc2:'BE',until:1e12,ask:-4,c:7,hold:{NL:-1,ZZ:5}}");
|
||||||
|
ev("S.pie.spat.home={st:'ask',cc:'DE',until:S.day+30,ask:S.day+20,evil:'<script>'}");
|
||||||
|
ev("S.pie.spat.nope={st:'on'};S.pie.spat.grab=[1,2]");
|
||||||
|
ev('S=migrate(JSON.parse(JSON.stringify(S)));compute()');
|
||||||
|
const s = JSON.parse(ev('JSON.stringify(S.pie.spat)'));
|
||||||
|
assert.deepEqual(Object.keys(s).sort(), ['band', 'home', 'jam']);
|
||||||
|
assert.ok(s.jam.until <= ev('S.day') + 720 && s.jam.c === 1 && s.jam.ask >= 0, 'clamped');
|
||||||
|
assert.deepEqual(s.jam.hold, { NL: 0 });
|
||||||
|
assert.equal(s.home.evil, undefined);
|
||||||
|
days(ev, 30);
|
||||||
|
// an old save: no pie at all, and nothing new to answer
|
||||||
|
ev("const o=JSON.parse(JSON.stringify(S));delete o.pieV;delete o.pie;S=migrate(o);for(let i=0;i<30;i++)dayTick()");
|
||||||
|
assert.equal(ev('S.pie'), null);
|
||||||
|
assert.deepEqual(errors, []);
|
||||||
|
});
|
||||||
|
|
||||||
|
test('answers and countries never name a person; countries come from the city table', () => {
|
||||||
|
const { ev, errors } = load();
|
||||||
|
// every country a spat can pick is on the map
|
||||||
|
const ccs = JSON.parse(ev('JSON.stringify(Object.keys(pieCcAll()))'));
|
||||||
|
assert.ok(ccs.includes('NL') && ccs.includes('BE'));
|
||||||
|
assert.equal(ev("pieNb('NL')"), 'BE');
|
||||||
|
assert.deepEqual(errors, []);
|
||||||
|
});
|
||||||
Loading…
Add table
Add a link
Reference in a new issue