Badges: Met the Backhoe becomes Met the Chaos Monkey
Earned on the monkey's first visit instead of any fiber cut; the badge keeps its id, so ones already earned carry over. Monkey-proof gets a shield. The monkey's cheer also cancels a spray still pending from its last hop.
This commit is contained in:
parent
f4486ee955
commit
cbb7ca8772
12 changed files with 30 additions and 17 deletions
|
|
@ -8,7 +8,7 @@ All notable changes to this project are documented here. The project follows
|
|||
|
||||
## [2.0.0] — 2026-10-29
|
||||
|
||||
- A chaos monkey now and then moves into your network in On-call and BGP at 3 a.m., and snips a tube every couple of weeks for 120 to 240 days, tubes with no backup path first. Its snips replace the usual random outages while it is here; get through the visit without a customer noticing for a resilience bonus and a new badge, or throw it a banana to send it home early.
|
||||
- A chaos monkey now and then moves into your network in On-call and BGP at 3 a.m., and snips a tube every couple of weeks for 120 to 240 days, tubes with no backup path first. Its snips replace the usual random outages while it is here; get through the visit without a customer noticing for a resilience bonus and a new badge, or throw it a banana to send it home early. The "Met the Backhoe" badge is now "Met the Chaos Monkey", earned on its first visit; badges you already have stay yours.
|
||||
- The peering inbox is gone: your peering policy now answers every peering request for you. Open accepts everyone, Selective accepts small networks on the exchange and newcomers with an up-to-date PeeringDB and quietly declines the rest, and Closed declines them all; once a week the NOC log sums it up, like "Peering desk: 7 new sessions at DE-KICKS and HAMS-IX, 3 declined (Selective)". Max-prefix alerts, the button that raised every limit at once, max-prefix outages at exchanges, your peering reputation and the Large Peering Model are gone too. The policy picker sits in the Networks tab, saved games keep their policy, and a game that hired the AI simply stops paying for it.
|
||||
- Scenario tuning: every handmade scenario now asks for what its story is about, with shorter clocks where it was won in a tenth of the time. Mind the Gap, Cape to Cairo and Order and Progress count cities and IX.brrr ports only when your network joins them up; Fibre to the Basement also wants 500 Gbps served; in Anchors Away nobody sells transit in Tallinn and ships really do drag their anchors over the Baltic links, while the Great Firewall's losses no longer break your 99.5% streak; in the Cogentle Spat, Goggle wants a lot more of your traffic before it peers; Flood Season's terabit floods count when your scrubbing or Flowspec took them; Stepping Stones and Mid-Atlantic Accent start with 5M, enough to light the whole 1.6T chain. Gangnam Style Peering is now really about sender pays: Seoul transit carries a fee on every Gbps, the three incumbents only peer over a paid PNI, and Korean users notice every millisecond, so you win by hauling cheap Tokyo transit while keeping Seoul fast and in profit.
|
||||
- Customers now call when your network can already serve them, not only when your level says so (#187). A fast path between two finance cities brings trading firms, lit dark fiber brings AI interconnects, two diverse paths in one country bring sovereign clouds and broadband in a big city brings cloud gaming, each at its smallest size and with a note on what they spotted; your level still makes them bigger and more frequent.
|
||||
|
|
|
|||
|
|
@ -37,6 +37,7 @@
|
|||
"badges.fire_the_hackback_3000tm_and_flatten":"Feuere den HackBack 3000™ ab und plätte einen Unschuldigen.",
|
||||
"badges.friend_of_giants":"Freund der Riesen",
|
||||
"badges.get_a_subsea_cable_bitten_by":"Lass ein Seekabel von einem Hai anknabbern.",
|
||||
"badges.get_a_visit_from_the_chaos_monkey":"Bekomme Besuch vom Chaos-Affen.",
|
||||
"badges.get_bitten_by_sharks_3_times":"Werde in einem Spiel dreimal von Haien gebissen.",
|
||||
"badges.get_de_peered_by_a_big":"Werde von einem großen Netz de-peert.",
|
||||
"badges.go_transit_free":"Werde transitfrei.",
|
||||
|
|
@ -44,7 +45,6 @@
|
|||
"badges.got_total_this_game_ever_ever":"{got}/{total} in diesem Spiel · {ever} insgesamt",
|
||||
"badges.haggle_a_de_kicks_quote_down":"Handle ein DE-KICKS-Angebot herunter.",
|
||||
"badges.have_a_cable_cut_by_a":"Lass ein Kabel von einem schleifenden Anker kappen.",
|
||||
"badges.have_a_fiber_cut":"Erlebe einen Faserbruch.",
|
||||
"badges.have_a_second_site_in_3":"Habe in 3 Städten einen zweiten Standort.",
|
||||
"badges.have_auto_te_move_100_gbps":"Lass Auto-TE auf einen Schlag 100 Gbps auf Ausweichpfade verschieben.",
|
||||
"badges.have_pops_in_50_cities":"Habe POPs in 50 Städten.",
|
||||
|
|
@ -67,7 +67,7 @@
|
|||
"badges.live_through_the_day_half_the":"Überlebe den Tag, an dem das halbe Internet ausfiel.",
|
||||
"badges.lose_a_metro_ring_to_one":"Verliere einen Metro-Ring an einen einzigen Bagger.",
|
||||
"badges.lose_fiber_to_a_llama_herd":"Verliere Glasfaser an eine Lamaherde.",
|
||||
"badges.met_the_backhoe":"Den Bagger kennengelernt",
|
||||
"badges.met_the_chaos_monkey":"Den Chaos-Affen kennengelernt",
|
||||
"badges.monkey_proof":"Affensicher",
|
||||
"badges.never_paid_list_price":"Nie den Listenpreis bezahlt",
|
||||
"badges.opt_out_of_3_auto_enrolled":"Kündige 3 automatisch gebuchte Zusatzleistungen.",
|
||||
|
|
|
|||
|
|
@ -35,6 +35,7 @@
|
|||
"badges.fire_the_hackback_3000tm_and_flatten":"Dispara el HackBack 3000™ y arrasa a un inocente.",
|
||||
"badges.friend_of_giants":"Amigo de gigantes",
|
||||
"badges.get_a_subsea_cable_bitten_by":"Haz que un tiburón muerda un cable submarino.",
|
||||
"badges.get_a_visit_from_the_chaos_monkey":"Recibe la visita del mono del caos.",
|
||||
"badges.get_bitten_by_sharks_3_times":"Que te muerdan los tiburones 3 veces en una partida.",
|
||||
"badges.get_de_peered_by_a_big":"Que una red grande te quite el peering.",
|
||||
"badges.go_transit_free":"Sé libre de tránsito.",
|
||||
|
|
@ -42,7 +43,6 @@
|
|||
"badges.got_total_this_game_ever_ever":"{got}/{total} en esta partida · {ever} en total",
|
||||
"badges.haggle_a_de_kicks_quote_down":"Regatea a la baja una oferta de DE-KICKS.",
|
||||
"badges.have_a_cable_cut_by_a":"Que un ancla arrastrada corte un cable.",
|
||||
"badges.have_a_fiber_cut":"Sufre un corte de fibra.",
|
||||
"badges.have_a_second_site_in_3":"Ten una segunda sede en 3 áreas metropolitanas.",
|
||||
"badges.have_auto_te_move_100_gbps":"Haz que Auto-TE mueva 100 Gbps a rutas alternativas de golpe.",
|
||||
"badges.have_pops_in_50_cities":"Ten POPs en 50 ciudades.",
|
||||
|
|
@ -65,7 +65,7 @@
|
|||
"badges.live_through_the_day_half_the":"Sobrevive al día en que se cayó medio internet.",
|
||||
"badges.lose_a_metro_ring_to_one":"Pierde un anillo metropolitano por culpa de una sola retroexcavadora.",
|
||||
"badges.lose_fiber_to_a_llama_herd":"Pierde fibra por culpa de una manada de llamas.",
|
||||
"badges.met_the_backhoe":"Conoció a la retroexcavadora",
|
||||
"badges.met_the_chaos_monkey":"Conoció al mono del caos",
|
||||
"badges.monkey_proof":"A prueba de monos",
|
||||
"badges.never_paid_list_price":"Nunca pagó precio de lista",
|
||||
"badges.opt_out_of_3_auto_enrolled":"Rechaza 3 complementos de alta automática.",
|
||||
|
|
|
|||
|
|
@ -35,6 +35,7 @@
|
|||
"badges.fire_the_hackback_3000tm_and_flatten":"Lance le HackBack 3000™ et écrase un innocent.",
|
||||
"badges.friend_of_giants":"Ami des géants",
|
||||
"badges.get_a_subsea_cable_bitten_by":"Fais mordre un câble sous-marin par un requin.",
|
||||
"badges.get_a_visit_from_the_chaos_monkey":"Reçois la visite du singe du chaos.",
|
||||
"badges.get_bitten_by_sharks_3_times":"Fais-toi mordre par des requins 3 fois dans une même partie.",
|
||||
"badges.get_de_peered_by_a_big":"Fais-toi couper le peering par un gros réseau.",
|
||||
"badges.go_transit_free":"Deviens transit-free.",
|
||||
|
|
@ -42,7 +43,6 @@
|
|||
"badges.got_total_this_game_ever_ever":"{got}/{total} dans cette partie · {ever} au total",
|
||||
"badges.haggle_a_de_kicks_quote_down":"Fais baisser un devis DE-KICKS en négociant.",
|
||||
"badges.have_a_cable_cut_by_a":"Fais couper un câble par une ancre qui traîne.",
|
||||
"badges.have_a_fiber_cut":"Subis une coupure de fibre.",
|
||||
"badges.have_a_second_site_in_3":"Aie un second site dans 3 métropoles.",
|
||||
"badges.have_auto_te_move_100_gbps":"Fais déplacer 100 Gbps d’un coup sur des chemins alternatifs par l’Auto-TE.",
|
||||
"badges.have_pops_in_50_cities":"Aie des POP dans 50 villes.",
|
||||
|
|
@ -65,7 +65,7 @@
|
|||
"badges.live_through_the_day_half_the":"Survis au jour où la moitié d’internet est tombée.",
|
||||
"badges.lose_a_metro_ring_to_one":"Perds un anneau métropolitain à cause d’une seule pelleteuse.",
|
||||
"badges.lose_fiber_to_a_llama_herd":"Perds de la fibre à cause d’un troupeau de lamas.",
|
||||
"badges.met_the_backhoe":"Rencontre du troisième godet",
|
||||
"badges.met_the_chaos_monkey":"Rencontre avec le singe du chaos",
|
||||
"badges.monkey_proof":"À l'épreuve des singes",
|
||||
"badges.never_paid_list_price":"Jamais au prix catalogue",
|
||||
"badges.opt_out_of_3_auto_enrolled":"Désactive 3 options souscrites d’office.",
|
||||
|
|
|
|||
|
|
@ -35,6 +35,7 @@
|
|||
"badges.fire_the_hackback_3000tm_and_flatten":"Spara con l’HackBack 3000™ e travolgi un innocente.",
|
||||
"badges.friend_of_giants":"Amico dei giganti",
|
||||
"badges.get_a_subsea_cable_bitten_by":"Fatti mordere un cavo sottomarino da uno squalo.",
|
||||
"badges.get_a_visit_from_the_chaos_monkey":"Ricevi la visita della scimmia del caos.",
|
||||
"badges.get_bitten_by_sharks_3_times":"Fatti mordere dagli squali 3 volte in una partita.",
|
||||
"badges.get_de_peered_by_a_big":"Fatti togliere il peering da una grande rete.",
|
||||
"badges.go_transit_free":"Diventa transit-free.",
|
||||
|
|
@ -42,7 +43,6 @@
|
|||
"badges.got_total_this_game_ever_ever":"{got}/{total} in questa partita · {ever} in totale",
|
||||
"badges.haggle_a_de_kicks_quote_down":"Tira giù un preventivo DE-KICKS trattando.",
|
||||
"badges.have_a_cable_cut_by_a":"Fatti tagliare un cavo da un’ancora trascinata.",
|
||||
"badges.have_a_fiber_cut":"Subisci un taglio di fibra.",
|
||||
"badges.have_a_second_site_in_3":"Apri un secondo sito in 3 città.",
|
||||
"badges.have_auto_te_move_100_gbps":"Fai spostare all’Auto-TE 100 Gbps su percorsi alternativi in un colpo solo.",
|
||||
"badges.have_pops_in_50_cities":"Apri POP in 50 città.",
|
||||
|
|
@ -65,7 +65,7 @@
|
|||
"badges.live_through_the_day_half_the":"Sopravvivi al giorno in cui è caduta mezza internet.",
|
||||
"badges.lose_a_metro_ring_to_one":"Perdi un anello metro per colpa di una sola ruspa.",
|
||||
"badges.lose_fiber_to_a_llama_herd":"Perdi la fibra per colpa di un branco di lama.",
|
||||
"badges.met_the_backhoe":"Incontro con la ruspa",
|
||||
"badges.met_the_chaos_monkey":"Incontro con la scimmia del caos",
|
||||
"badges.monkey_proof":"A prova di scimmia",
|
||||
"badges.never_paid_list_price":"Mai pagato il listino",
|
||||
"badges.opt_out_of_3_auto_enrolled":"Disattiva 3 add-on attivati d’ufficio.",
|
||||
|
|
|
|||
|
|
@ -35,6 +35,7 @@
|
|||
"badges.fire_the_hackback_3000tm_and_flatten":"Dispare o HackBack 3000™ e derrube um inocente.",
|
||||
"badges.friend_of_giants":"Amigo dos gigantes",
|
||||
"badges.get_a_subsea_cable_bitten_by":"Tenha um cabo submarino mordido por um tubarão.",
|
||||
"badges.get_a_visit_from_the_chaos_monkey":"Receba a visita do macaco do caos.",
|
||||
"badges.get_bitten_by_sharks_3_times":"Seja mordido por tubarões 3 vezes numa partida.",
|
||||
"badges.get_de_peered_by_a_big":"Leve um corte de peering de uma rede grande.",
|
||||
"badges.go_transit_free":"Fique transit-free.",
|
||||
|
|
@ -42,7 +43,6 @@
|
|||
"badges.got_total_this_game_ever_ever":"{got}/{total} nesta partida · {ever} no total",
|
||||
"badges.haggle_a_de_kicks_quote_down":"Pechinche um orçamento da DE-KICKS.",
|
||||
"badges.have_a_cable_cut_by_a":"Tenha um cabo cortado por uma âncora arrastada.",
|
||||
"badges.have_a_fiber_cut":"Sofra um corte de fibra.",
|
||||
"badges.have_a_second_site_in_3":"Tenha um segundo site em 3 cidades.",
|
||||
"badges.have_auto_te_move_100_gbps":"Faça o Auto-TE mover 100 Gbps para caminhos alternativos de uma vez.",
|
||||
"badges.have_pops_in_50_cities":"Tenha POPs em 50 cidades.",
|
||||
|
|
@ -65,7 +65,7 @@
|
|||
"badges.live_through_the_day_half_the":"Sobreviva ao dia em que metade da internet caiu.",
|
||||
"badges.lose_a_metro_ring_to_one":"Perca um anel metro para uma única retroescavadeira.",
|
||||
"badges.lose_fiber_to_a_llama_herd":"Perca fibra para um rebanho de lhamas.",
|
||||
"badges.met_the_backhoe":"Conheceu a retroescavadeira",
|
||||
"badges.met_the_chaos_monkey":"Conheceu o macaco do caos",
|
||||
"badges.monkey_proof":"À prova de macaco",
|
||||
"badges.never_paid_list_price":"Nunca paguei preço de tabela",
|
||||
"badges.opt_out_of_3_auto_enrolled":"Cancele 3 add-ons ativados sem você pedir.",
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ function mkTick(d){const M=S.monkey;if(!M)return;
|
|||
if(d>=M.until){mkLeave();return;}
|
||||
if(d>=M.snip){mkSnip();M.snip=d+(mkSpicy()?rint(9,7):rint(14,11));}}
|
||||
function mkArrive(d){const M=S.monkey,cs=Object.keys(S.pops),len=mkSpicy()?rint(180,61):rint(120,121);
|
||||
S.stats.mkMet=(S.stats.mkMet||0)+1;
|
||||
Object.assign(M,{on:1,start:d,until:d+len,snip:d+3,n:0,hurt:0,c:cs.length?pick(cs):S.home});
|
||||
toast(tr('chaos_monkey.arrived',{n:len}),'bad',[{l:tr('chaos_monkey.banana',{cost:fmt$(mkBananaCost())}),act:'mkBanana',args:{}}],{a:'tab',v:'noc'});sfx('alert');track('monkey_arrive');
|
||||
if(typeof mkStart==='function'&&CITY[M.c])mkStart(M.c);}
|
||||
|
|
|
|||
|
|
@ -4,7 +4,8 @@ const RARITY={c:{n:tr('common.common'),col:'#16A866'},r:{n:tr('common.rare'),col
|
|||
const st=()=>S.stats||{};
|
||||
const BADGES=[
|
||||
{id:'hello',i:'👋',t:tr('common.hello_neighbour'),d:tr('badges.bring_up_your_first_peering_session'),r:'c',ok:()=>R.sessions>=1},
|
||||
{id:'backhoe',i:'🚜',t:tr('badges.met_the_backhoe'),d:tr('badges.have_a_fiber_cut'),r:'c',ok:()=>(st().by||{}).cut>=1},
|
||||
// Keeps its old id so badges already earned (in saves and the hall of fame) carry over.
|
||||
{id:'backhoe',i:'🐒',t:tr('badges.met_the_chaos_monkey'),d:tr('badges.get_a_visit_from_the_chaos_monkey'),r:'c',ok:()=>(st().mkMet||0)>=1},
|
||||
{id:'debt',i:'🏦',t:tr('badges.in_debt_we_trust'),d:tr('badges.take_out_a_loan'),r:'c',ok:()=>(st().loans||0)>=1||(S.loans||[]).length>0},
|
||||
{id:'twins',i:'👯',t:tr('common.twins'),d:tr('badges.run_two_routers_in_one_pop'),r:'c',ok:()=>Object.values(S.pops).some(p=>(p.routers||1)>=2)},
|
||||
{id:'shark',i:'🦈',t:tr('common.shark_week'),d:tr('badges.get_a_subsea_cable_bitten_by'),r:'r',ok:()=>(st().sharks||0)>=1},
|
||||
|
|
@ -68,7 +69,7 @@ const BADGES=[
|
|||
{id:'toaster',i:'🍞',t:tr('common.toaster_wrangler'),d:tr('badges.weather_a_ddos_with_your_defences'),r:'c',ok:()=>(st().ddosHeld||0)>=1},
|
||||
{id:'cleanpipe',i:'🚿',t:tr('common.clean_pipes'),d:tr('badges.turn_on_a_transit_clean_pipe'),r:'r',ok:()=>S.transit.some(t=>t.clean)},
|
||||
{id:'lamb',i:'🐐',t:tr('common.sacrificial_lamb'),d:tr('badges.run_a_sacrificial_pni_choke_point'),r:'r',ok:()=>S.pni.some(p=>p.sacrif)},
|
||||
{id:'monkey',i:'🐒',t:tr('badges.monkey_proof'),d:tr('badges.outlast_a_chaos_monkey_visit'),r:'e',ok:()=>(st().mkSurv||0)>=1},
|
||||
{id:'monkey',i:'🛡️',t:tr('badges.monkey_proof'),d:tr('badges.outlast_a_chaos_monkey_visit'),r:'e',ok:()=>(st().mkSurv||0)>=1},
|
||||
{id:'flood',i:'🌊',t:tr('badges.held_the_flood'),d:tr('badges.weather_a_multi_terabit_ddos'),r:'e',ok:()=>(st().ddosMonster||0)>=1},
|
||||
{id:'skynot',i:'🤖',t:tr('common.skynot_smiles'),d:tr('badges.land_a_hackback_3000tm_that_actually'),r:'e',secret:true,ok:()=>(st().hackWin||0)>=1},
|
||||
{id:'zero',i:'🕳️',t:tr('badges.zero_peers_given'),d:tr('badges.reach_tier_2_with_every_single'),r:'l',secret:true,ok:()=>isTier2()&&!Object.keys(S.peers).length&&!S.pni.length},
|
||||
|
|
|
|||
|
|
@ -13,7 +13,8 @@ function mkRun(l,dur,bad){const m=UI.mk;if(!m)return;const [x,y]=mkMid(l);m.fx=m
|
|||
function mkSpray(m){for(let i=0;i<(m.bad?26:16);i++){const a=Math.PI*2*i/(m.bad?26:16)+((i*37)%10)/10,v=0.05+((i*53)%10)/180;
|
||||
m.spray.push({x:m.tx,y:m.ty,vx:Math.cos(a)*v,vy:Math.sin(a)*v-0.06,c:m.bad?(i%3?'#FF4D5E':'#FFD23F'):MK_COLS[i%MK_COLS.length],t:animT,s:i%4===0?(m.bad?'💥':'✂️'):null});}}
|
||||
// It is over: a cheer when everything held, a tantrum where it broke; with bye it then leaves the map.
|
||||
function mkEnd(ok,bye){const m=UI.mk;if(!m)return;m.mood=ok?'cheer':'dance';m.t0=animT;m.bye=bye?animT:0;}
|
||||
function mkEnd(ok,bye){const m=UI.mk;if(!m)return;// a pending spray (the review was skipped mid-run) would override the cheer
|
||||
m.sprayAt=null;m.mood=ok?'cheer':'dance';m.t0=animT;m.bye=bye?animT:0;}
|
||||
function mkStop(){UI.mk=null;}
|
||||
function mkDraw(ks){const m=UI.mk;if(!m)return;if(m.bye&&animT-m.bye>2600){mkStop();return;}
|
||||
if(m.mood==='snip'&&animT-m.t0>1500){m.mood='stand';m.t0=animT;}
|
||||
|
|
|
|||
|
|
@ -36,6 +36,7 @@
|
|||
"badges.fire_the_hackback_3000tm_and_flatten":"Fire the HackBack 3000™ and flatten an innocent.",
|
||||
"badges.friend_of_giants":"Friend of Giants",
|
||||
"badges.get_a_subsea_cable_bitten_by":"Get a subsea cable bitten by a shark.",
|
||||
"badges.get_a_visit_from_the_chaos_monkey":"Get a visit from the chaos monkey.",
|
||||
"badges.get_bitten_by_sharks_3_times":"Get bitten by sharks 3 times in one game.",
|
||||
"badges.get_de_peered_by_a_big":"Get de-peered by a big network.",
|
||||
"badges.go_transit_free":"Go transit-free.",
|
||||
|
|
@ -43,7 +44,6 @@
|
|||
"badges.got_total_this_game_ever_ever":"{got}/{total} this game · {ever} ever",
|
||||
"badges.haggle_a_de_kicks_quote_down":"Haggle a DE-KICKS quote down.",
|
||||
"badges.have_a_cable_cut_by_a":"Have a cable cut by a dragged anchor.",
|
||||
"badges.have_a_fiber_cut":"Have a fiber cut.",
|
||||
"badges.have_a_second_site_in_3":"Have a second site in 3 metros.",
|
||||
"badges.have_auto_te_move_100_gbps":"Have Auto-TE move 100 Gbps onto alternate paths at once.",
|
||||
"badges.have_pops_in_50_cities":"Have POPs in 50 cities.",
|
||||
|
|
@ -66,7 +66,7 @@
|
|||
"badges.live_through_the_day_half_the":"Live through the day half the internet went down.",
|
||||
"badges.lose_a_metro_ring_to_one":"Lose a metro ring to one backhoe.",
|
||||
"badges.lose_fiber_to_a_llama_herd":"Lose fiber to a llama herd.",
|
||||
"badges.met_the_backhoe":"Met the Backhoe",
|
||||
"badges.met_the_chaos_monkey":"Met the Chaos Monkey",
|
||||
"badges.monkey_proof":"Monkey-proof",
|
||||
"badges.never_paid_list_price":"Never Paid List Price",
|
||||
"badges.opt_out_of_3_auto_enrolled":"Opt out of 3 auto-enrolled add-ons.",
|
||||
|
|
|
|||
|
|
@ -97,3 +97,13 @@ test('saves keep the monkey; old and broken saves are repaired', () => {
|
|||
ev('for(let i=0;i<5;i++)dayTick()');
|
||||
assert.deepEqual(errors, []);
|
||||
});
|
||||
|
||||
test('"Met the Chaos Monkey" comes from a visit, not from an ordinary fiber cut', () => {
|
||||
const { ev, errors } = net('oncall');
|
||||
ev("fireFailure('cut');checkBadges()");
|
||||
assert.equal(ev('S.ach.backhoe===undefined'), true, 'a cut alone is not the monkey');
|
||||
ev('S.monkey.next=S.day;dayTick();checkBadges()');
|
||||
assert.notEqual(ev('S.ach.backhoe'), undefined);
|
||||
assert.equal(ev("BADGES.find(b=>b.id==='backhoe').t"), 'Met the Chaos Monkey');
|
||||
assert.deepEqual(errors, []);
|
||||
});
|
||||
|
|
|
|||
|
|
@ -154,7 +154,7 @@ test('rare badges hook into incidents and deals', () => {
|
|||
const { ev, errors } = load();
|
||||
base(ev);
|
||||
ev("addInc({type:'cut',ref:'x',until:S.day+1,msg:'A crocodile took a bite. A ship dragged its anchor.'});checkGoals()");
|
||||
assert.ok(ev("S.ach.croc!==undefined&&S.ach.anchor!==undefined&&S.ach.backhoe!==undefined"));
|
||||
assert.ok(ev("S.ach.croc!==undefined&&S.ach.anchor!==undefined&&S.ach.backhoe===undefined"), "a cut alone earns no Met the Chaos Monkey");
|
||||
ev("S.stats.survived=100;checkGoals()");
|
||||
assert.ok(ev("S.ach.unbreak!==undefined"));
|
||||
assert.equal(ev("BADGES.length>=46&&new Set(BADGES.map(b=>b.id)).size===BADGES.length"), true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue