From 1ef73b6b0ca4495d2a83e516adc6dbdaa118edf7 Mon Sep 17 00:00:00 2001 From: maxswa Date: Wed, 24 Aug 2022 07:48:05 -0400 Subject: [PATCH] Add Tombs of Amascut. --- README.md | 2 ++ __tests__/hiscores.test.ts | 10 ++++++++-- __tests__/lynxTitanStats.csv | 2 ++ src/types.ts | 2 ++ src/utils/constants.ts | 4 ++++ 5 files changed, 18 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index acbd88f..85b0a47 100644 --- a/README.md +++ b/README.md @@ -163,6 +163,8 @@ Activities consist of all levels of clue scrolls as well as minigames and bosses | Theatre Of Blood | `theatreOfBlood` | | Theatre Of Blood: Hard Mode | `theatreOfBloodHardMode` | | Thermonuclear Smoke Devil | `thermonuclearSmokeDevil` | +| Tombs of Amascut | `tombsOfAmascut` | +| Tombs of Amascut: Expert Mode | `tombsOfAmascutExpertMode` | | TzKal-Zuk | `tzKalZuk` | | TzTok-Jad | `tzTokJad` | | Venenatis | `venenatis` | diff --git a/__tests__/hiscores.test.ts b/__tests__/hiscores.test.ts index 5b76930..2ea8d1e 100644 --- a/__tests__/hiscores.test.ts +++ b/__tests__/hiscores.test.ts @@ -130,6 +130,8 @@ test('Parse CSV to json', () => { 6984,138 23,923141 4043,2000 + 4073,1020 + 289,13070 489,8 967,47 11155,223 @@ -225,6 +227,8 @@ test('Parse CSV to json', () => { theatreOfBlood: { rank: 6984, score: 138 }, theatreOfBloodHardMode: { rank: 23, score: 923141 }, thermonuclearSmokeDevil: { rank: 4043, score: 2000 }, + tombsOfAmascut: { rank: 4073, score: 1020 }, + tombsOfAmascutExpertMode: { rank: 289, score: 13070 }, tzKalZuk: { rank: 489, score: 8 }, tzTokJad: { rank: 967, score: 47 }, venenatis: { rank: 11155, score: 223 }, @@ -240,9 +244,11 @@ test('Parse CSV to json', () => { }); test('Parse CSV with unknown activity', () => { - const statsWithUnknownActivity = lynxTitanStats + ` + const statsWithUnknownActivity = `${lynxTitanStats} -1,-1`; - expect(() => parseStats(statsWithUnknownActivity)).toThrow(INVALID_FORMAT_ERROR); + expect(() => parseStats(statsWithUnknownActivity)).toThrow( + INVALID_FORMAT_ERROR + ); }); test('Parse invalid CSV', () => { diff --git a/__tests__/lynxTitanStats.csv b/__tests__/lynxTitanStats.csv index 7e60d96..f1a83e8 100644 --- a/__tests__/lynxTitanStats.csv +++ b/__tests__/lynxTitanStats.csv @@ -83,4 +83,6 @@ -1,-1 -1,-1 -1,-1 +-1,-1 +-1,-1 -1,-1 \ No newline at end of file diff --git a/src/types.ts b/src/types.ts index 01c8f9f..330e75d 100644 --- a/src/types.ts +++ b/src/types.ts @@ -102,6 +102,8 @@ export type Boss = | 'theatreOfBlood' | 'theatreOfBloodHardMode' | 'thermonuclearSmokeDevil' + | 'tombsOfAmascut' + | 'tombsOfAmascutExpertMode' | 'tzKalZuk' | 'tzTokJad' | 'venenatis' diff --git a/src/utils/constants.ts b/src/utils/constants.ts index 7925b73..b624c5c 100644 --- a/src/utils/constants.ts +++ b/src/utils/constants.ts @@ -110,6 +110,8 @@ export const BOSSES: Boss[] = [ 'theatreOfBlood', 'theatreOfBloodHardMode', 'thermonuclearSmokeDevil', + 'tombsOfAmascut', + 'tombsOfAmascutExpertMode', 'tzKalZuk', 'tzTokJad', 'venenatis', @@ -182,6 +184,8 @@ export const FORMATTED_BOSS_NAMES: FormattedBossNames = { theatreOfBlood: 'Theatre of Blood', theatreOfBloodHardMode: 'Theatre of Blood: Hard Mode', thermonuclearSmokeDevil: 'Thermonuclear Smoke Devil', + tombsOfAmascut: 'Tombs of Amascut', + tombsOfAmascutExpertMode: 'Tombs of Amascut: Expert Mode', tzKalZuk: 'TzKal-Zuk', tzTokJad: 'TzTok-Jad', venenatis: 'Venenatis',