Add a petabit-per-second badge (1.18.2)
A new legendary badge for serving 1 Pbps — a thousand terabits — the tier above Hundred Terabits. Italian and a test included.
This commit is contained in:
parent
c445fbd0ba
commit
6b5fe3f14c
6 changed files with 14 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
4
package-lock.json
generated
4
package-lock.json
generated
|
|
@ -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"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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},
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue