diff options
Diffstat (limited to 'src/cleaners/skyblock/slayers.ts')
-rw-r--r-- | src/cleaners/skyblock/slayers.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cleaners/skyblock/slayers.ts b/src/cleaners/skyblock/slayers.ts index 94c23f0..f70ddc5 100644 --- a/src/cleaners/skyblock/slayers.ts +++ b/src/cleaners/skyblock/slayers.ts @@ -1,4 +1,5 @@ import typedHypixelApi from 'typed-hypixel-api' +import * as constants from '../../constants.js' const SLAYER_NAMES = { @@ -48,7 +49,10 @@ export function cleanSlayers(data: typedHypixelApi.SkyBlockProfileMember): Slaye let totalXp: number = 0 let totalKills: number = 0 + let slayerIds: string[] = [] + for (const slayerNameRaw in slayersDataRaw) { + slayerIds.push(slayerNameRaw) const slayerDataRaw = slayersDataRaw[slayerNameRaw] // convert name provided by api (spider) to the real name (tarantula) @@ -108,6 +112,8 @@ export function cleanSlayers(data: typedHypixelApi.SkyBlockProfileMember): Slaye totalKills += slayerKills } + constants.addSlayers(slayerIds) + return { xp: totalXp, kills: totalKills, |