From 74aba3e818d892ff157c64c6071389b072665116 Mon Sep 17 00:00:00 2001 From: maxswa Date: Thu, 3 Jun 2021 22:19:03 -0400 Subject: [PATCH] Add TOB hard mode. --- README.md | 95 +++++++++++++++++++------------------- __tests__/hiscores.test.ts | 2 + src/types.ts | 1 + src/utils/constants.ts | 2 + 4 files changed, 53 insertions(+), 47 deletions(-) diff --git a/README.md b/README.md index da51e96..385763a 100644 --- a/README.md +++ b/README.md @@ -119,53 +119,54 @@ Activities consist of all levels of clue scrolls as well as minigames and bosses ### Bosses -| Boss Name | Param | -| -------------------------------- | :----------------------------: | -| Abyssal Sire | `abyssalSire` | -| Alchemical Hydra | `alchemicalHydra` | -| Barrows Chests | `barrows` | -| Bryophyta | `bryophyta` | -| Callisto | `callisto` | -| Cerberus | `cerberus` | -| Chambers Of Xeric | `chambersOfXeric` | -| Chambers Of Xeric Challenge Mode | `chambersOfXericChallengeMode` | -| Chaos Elemental | `chaosElemental` | -| Chaos Fanatic | `chaosFanatic` | -| Commander Zilyana | `commanderZilyana` | -| Corporeal Beast | `corporealBeast` | -| Crazy Archaeologist | `crazyArchaeologist` | -| Dagannoth Prime | `dagannothPrime` | -| Dagannoth Rex | `dagannothRex` | -| Dagannoth Supreme | `dagannothSupreme` | -| Deranged Archaeologist | `derangedArchaeologist` | -| General Graardor | `generalGraardor` | -| Giant Mole | `giantMole` | -| Grotesque Guardians | `grotesqueGuardians` | -| Hespori | `hespori` | -| Kalphite Queen | `kalphiteQueen` | -| King Black Dragon | `kingBlackDragon` | -| Kraken | `kraken` | -| Kreearra | `kreeArra` | -| K'ril Tsutsaroth | `krilTsutsaroth` | -| Mimic | `mimic` | -| The Nightmare of Ashihama | `nightmare` | -| Obor | `obor` | -| Sarachnis | `sarachnis` | -| Scorpia | `scorpia` | -| Skotizo | `skotizo` | -| Tempoross | `tempoross` | -| Gauntlet | `gauntlet` | -| Corrupted Gauntlet | `corruptedGauntlet` | -| Theatre Of Blood | `theatreOfBlood` | -| Thermonuclear Smoke Devil | `thermonuclearSmokeDevil` | -| TzKal-Zuk | `tzKalZuk` | -| TzTok-Jad | `tzTokJad` | -| Venenatis | `venenatis` | -| Vetion | `vetion` | -| Vorkath | `vorkath` | -| Wintertodt | `wintertodt` | -| Zalcano | `zalcano` | -| Zulrah | `zulrah` | +| Boss Name | Param | +| --------------------------------- | :----------------------------: | +| Abyssal Sire | `abyssalSire` | +| Alchemical Hydra | `alchemicalHydra` | +| Barrows Chests | `barrows` | +| Bryophyta | `bryophyta` | +| Callisto | `callisto` | +| Cerberus | `cerberus` | +| Chambers Of Xeric | `chambersOfXeric` | +| Chambers Of Xeric: Challenge Mode | `chambersOfXericChallengeMode` | +| Chaos Elemental | `chaosElemental` | +| Chaos Fanatic | `chaosFanatic` | +| Commander Zilyana | `commanderZilyana` | +| Corporeal Beast | `corporealBeast` | +| Crazy Archaeologist | `crazyArchaeologist` | +| Dagannoth Prime | `dagannothPrime` | +| Dagannoth Rex | `dagannothRex` | +| Dagannoth Supreme | `dagannothSupreme` | +| Deranged Archaeologist | `derangedArchaeologist` | +| General Graardor | `generalGraardor` | +| Giant Mole | `giantMole` | +| Grotesque Guardians | `grotesqueGuardians` | +| Hespori | `hespori` | +| Kalphite Queen | `kalphiteQueen` | +| King Black Dragon | `kingBlackDragon` | +| Kraken | `kraken` | +| Kreearra | `kreeArra` | +| K'ril Tsutsaroth | `krilTsutsaroth` | +| Mimic | `mimic` | +| The Nightmare of Ashihama | `nightmare` | +| Obor | `obor` | +| Sarachnis | `sarachnis` | +| Scorpia | `scorpia` | +| Skotizo | `skotizo` | +| Tempoross | `tempoross` | +| The Gauntlet | `gauntlet` | +| The Corrupted Gauntlet | `corruptedGauntlet` | +| Theatre Of Blood | `theatreOfBlood` | +| Theatre Of Blood: Hard Mode | `theatreOfBloodHardMode` | +| Thermonuclear Smoke Devil | `thermonuclearSmokeDevil` | +| TzKal-Zuk | `tzKalZuk` | +| TzTok-Jad | `tzTokJad` | +| Venenatis | `venenatis` | +| Vetion | `vetion` | +| Vorkath | `vorkath` | +| Wintertodt | `wintertodt` | +| Zalcano | `zalcano` | +| Zulrah | `zulrah` | ## What you'll get diff --git a/__tests__/hiscores.test.ts b/__tests__/hiscores.test.ts index b6068a9..412a06a 100644 --- a/__tests__/hiscores.test.ts +++ b/__tests__/hiscores.test.ts @@ -122,6 +122,7 @@ test('Parse CSV to json', () => { 63,375 2870,6 6984,138 + 23,923141 4043,2000 489,8 967,47 @@ -212,6 +213,7 @@ test('Parse CSV to json', () => { gauntlet: { rank: 63, score: 375 }, corruptedGauntlet: { rank: 2870, score: 6 }, theatreOfBlood: { rank: 6984, score: 138 }, + theatreOfBloodHardMode: { rank: 23, score: 923141 }, thermonuclearSmokeDevil: { rank: 4043, score: 2000 }, tzKalZuk: { rank: 489, score: 8 }, tzTokJad: { rank: 967, score: 47 }, diff --git a/src/types.ts b/src/types.ts index d1a578e..e0186d0 100644 --- a/src/types.ts +++ b/src/types.ts @@ -98,6 +98,7 @@ export type Boss = | 'gauntlet' | 'corruptedGauntlet' | 'theatreOfBlood' + | 'theatreOfBloodHardMode' | 'thermonuclearSmokeDevil' | 'tzKalZuk' | 'tzTokJad' diff --git a/src/utils/constants.ts b/src/utils/constants.ts index 1d0766a..f876b3e 100644 --- a/src/utils/constants.ts +++ b/src/utils/constants.ts @@ -106,6 +106,7 @@ export const BOSSES: Boss[] = [ 'gauntlet', 'corruptedGauntlet', 'theatreOfBlood', + 'theatreOfBloodHardMode', 'thermonuclearSmokeDevil', 'tzKalZuk', 'tzTokJad', @@ -173,6 +174,7 @@ export const FORMATTED_BOSS_NAMES: FormattedBossNames = { gauntlet: 'The Gauntlet', corruptedGauntlet: 'The Corrupted Gauntlet', theatreOfBlood: 'Theatre of Blood', + theatreOfBloodHardMode: 'Theatre of Blood: Hard Mode', thermonuclearSmokeDevil: 'Thermonuclear Smoke Devil', tzKalZuk: 'TzKal-Zuk', tzTokJad: 'TzTok-Jad',