diff --git a/CHANGELOG.md b/CHANGELOG.md index b16be45..86826e4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,11 @@ All notable changes to this project are documented here. The project follows ## [Unreleased] +## [1.18.2] — 2026-10-25 + +- A new legendary badge, A Petabit a Second, for serving a full petabit per + second (a thousand terabits) of happy traffic. + ## [1.18.1] — 2026-10-25 - New goal and badges for DDoS defence: a goal to stand up your first diff --git a/package-lock.json b/package-lock.json index fdfb7ba..ea84fb5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "seriesoftubes", - "version": "1.18.1", + "version": "1.18.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "seriesoftubes", - "version": "1.18.1", + "version": "1.18.2", "devDependencies": { "jsdom": "24.1.3" }, diff --git a/package.json b/package.json index 9395690..131b944 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "seriesoftubes", - "version": "1.18.1", + "version": "1.18.2", "description": "A cartoon browser game about building the internet.", "private": true, "license": "MIT", diff --git a/site/i18n/it.js b/site/i18n/it.js index df913d2..b00f376 100644 --- a/site/i18n/it.js +++ b/site/i18n/it.js @@ -1149,6 +1149,8 @@ "Reach Tier 1 within two years.":"Raggiungi il Tier 1 entro due anni.", "Hundred Terabits":"Cento terabit", "Serve 100 Tbps.":"Servi 100 Tbps.", +"A Petabit a Second":"Un petabit al secondo", +"Serve 1 Pbps: a thousand terabits of happy traffic.":"Servi 1 Pbps: mille terabit di traffico felice.", "Llama Drama":"Dramma lama", "Lose fiber to a llama herd.":"Perdi la fibra per colpa di un branco di lama.", "Hallway Track":"Chiacchiere di corridoio", diff --git a/site/index.html b/site/index.html index 282813b..ddcaff8 100644 --- a/site/index.html +++ b/site/index.html @@ -2337,6 +2337,7 @@ const BADGES=[ {id:'gigawatt',i:'⚛️',t:tr('Gigawatt Landlord'),d:tr('Hold an AI WAN, a training run, an ingest and a fiber-pairs deal at the same time.'),r:'l',ok:()=>['aiwan','mtrain','ingest','pairs'].every(t=>S.biz.some(b=>b.type===t))}, {id:'blitz',i:'🚀',t:tr('Blitz'),d:tr('Reach Tier 1 within two years.'),r:'l',ok:()=>!!S.won&&S.day<=730}, {id:'peta',i:'🌌',t:tr('Hundred Terabits'),d:tr('Serve 100 Tbps.'),r:'l',ok:()=>R.served>=100000}, + {id:'petabit',i:'🪐',t:tr('A Petabit a Second'),d:tr('Serve 1 Pbps: a thousand terabits of happy traffic.'),r:'l',ok:()=>R.served>=1e6}, {id:'llama',i:'🦙',t:tr('Llama Drama'),d:tr('Lose fiber to a llama herd.'),r:'l',secret:true,ok:()=>!!(st().f||{}).llama}, {id:'hallway',i:'🎤',t:tr('Hallway Track'),d:tr('Attend a conference.'),r:'r',ok:()=>(st().confs||0)>=1}, {id:'beer',i:'🍺',t:tr('Peering Over Beer'),d:tr('Set up a PNI while the conference glow lasts.'),r:'e',ok:()=>!!st().beerPni}, diff --git a/tests/game.test.js b/tests/game.test.js index b0bfdf9..d27433a 100644 --- a/tests/game.test.js +++ b/tests/game.test.js @@ -295,4 +295,7 @@ test('DDoS goal and badges unlock from the right state', () => { assert.equal(ev('S.stats.hackWin'), 1, 'a winning hack-back is recorded'); assert.equal(okb('skynot'), true, 'and earns Skynot Smiles'); assert.ok(ev("new Set(BADGES.map(b=>b.id)).size===BADGES.length"), 'badge ids stay unique'); + // The petabit badge needs a full 1 Pbps of served traffic. + assert.equal(ev("R.served=999999;BADGES.find(b=>b.id==='petabit').ok()"), false, 'just under a petabit is not enough'); + assert.equal(ev("R.served=1e6;BADGES.find(b=>b.id==='petabit').ok()"), true, 'a petabit per second earns it'); });