aboutsummaryrefslogtreecommitdiff
path: root/src/cleaners/skyblock
diff options
context:
space:
mode:
Diffstat (limited to 'src/cleaners/skyblock')
-rw-r--r--src/cleaners/skyblock/stats.ts13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/cleaners/skyblock/stats.ts b/src/cleaners/skyblock/stats.ts
index 8105f26..a89bdd2 100644
--- a/src/cleaners/skyblock/stats.ts
+++ b/src/cleaners/skyblock/stats.ts
@@ -85,6 +85,9 @@ export interface StatItem {
}
export function getStatUnit(name: string): string | null {
+ if (name === 'fastest_target_practice')
+ return 'time'
+
for (const [unitName, statMatchers] of Object.entries(statUnits)) {
for (const statMatch of statMatchers) {
let trailingEnd = statMatch[0] === '_'
@@ -118,5 +121,15 @@ export function cleanProfileStats(data: typedHypixelApi.SkyBlockProfileMember):
})
}
+ if (data.fastest_target_practice !== undefined)
+ stats.push({
+ categorizedName: 'fastest_target_practice',
+ // the api gives it in seconds, we want milliseconds
+ value: data.fastest_target_practice * 1000,
+ rawName: 'fastest_target_practice',
+ category: 'misc',
+ unit: 'time'
+ })
+
return stats
}