diff options
Diffstat (limited to 'src/cleaners/skyblock/slayers.ts')
-rw-r--r-- | src/cleaners/skyblock/slayers.ts | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/cleaners/skyblock/slayers.ts b/src/cleaners/skyblock/slayers.ts index 782ec95..b5dda0b 100644 --- a/src/cleaners/skyblock/slayers.ts +++ b/src/cleaners/skyblock/slayers.ts @@ -1,6 +1,5 @@ import typedHypixelApi from 'typed-hypixel-api' -export const slayerLevels = 5 const SLAYER_NAMES = { spider: 'tarantula', @@ -9,6 +8,14 @@ const SLAYER_NAMES = { enderman: 'voidgloom_seraph' } as const +// todo: put this in skyblock-constants since it can be determined from other people's profiles +export const SLAYER_TIERS: Record<keyof typeof SLAYER_NAMES, number> = { + spider: 4, + zombie: 5, + enderman: 4, + wolf: 4 +} + type SlayerName = (typeof SLAYER_NAMES)[keyof typeof SLAYER_NAMES] interface SlayerTier { @@ -75,7 +82,7 @@ export function cleanSlayers(data: typedHypixelApi.SkyBlockProfileMember): Slaye } // if the slayer tier length is less than the max, add more empty ones - while (slayerTiers.length < slayerLevels) + while (slayerTiers.length < SLAYER_TIERS[slayerName]) slayerTiers.push({ tier: slayerTiers.length + 1, kills: 0 |