aboutsummaryrefslogtreecommitdiff
path: root/src/cleaners
diff options
context:
space:
mode:
authormat <27899617+mat-1@users.noreply.github.com>2021-02-28 16:10:02 -0600
committermat <27899617+mat-1@users.noreply.github.com>2021-02-28 16:10:02 -0600
commitdfd4016d4ea907719d0b4edf28e4b9529534870c (patch)
tree4f96fb0e54a6bdea021fd9eb1cbc391d3accdf30 /src/cleaners
parentb69690f7cf2405bc817082cce45185fb389d0bb9 (diff)
downloadskyblock-api-dfd4016d4ea907719d0b4edf28e4b9529534870c.tar.gz
skyblock-api-dfd4016d4ea907719d0b4edf28e4b9529534870c.tar.bz2
skyblock-api-dfd4016d4ea907719d0b4edf28e4b9529534870c.zip
make /leaderboards include categories
Diffstat (limited to 'src/cleaners')
-rw-r--r--src/cleaners/skyblock/stats.ts5
1 files changed, 3 insertions, 2 deletions
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'