From dfd4016d4ea907719d0b4edf28e4b9529534870c Mon Sep 17 00:00:00 2001 From: mat <27899617+mat-1@users.noreply.github.com> Date: Sun, 28 Feb 2021 16:10:02 -0600 Subject: make /leaderboards include categories --- src/cleaners/skyblock/stats.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/cleaners') diff --git a/src/cleaners/skyblock/stats.ts b/src/cleaners/skyblock/stats.ts index 99aa1f7..d55fdd4 100644 --- a/src/cleaners/skyblock/stats.ts +++ b/src/cleaners/skyblock/stats.ts @@ -3,16 +3,17 @@ const statCategories: { [ key: string ]: string[] | null } = { // sorted in orde 'kills': ['kills_', 'kills'], 'fishing': ['items_fished_', 'items_fished'], 'auctions': ['auctions_'], + 'collection': ['collection_'], 'races': ['_best_time'], 'misc': null // everything else goes here } -interface statCategory { +export interface StatCategory { category: string, name: string } -function categorizeStat(statNameRaw: string): statCategory { +export function categorizeStat(statNameRaw: string): StatCategory { // 'deaths_void' for (const statCategory in statCategories) { // 'deaths' -- cgit