aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cleaners/skyblock/slayers.ts2
-rw-r--r--src/database.ts6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/cleaners/skyblock/slayers.ts b/src/cleaners/skyblock/slayers.ts
index 2026496..e9c5cb6 100644
--- a/src/cleaners/skyblock/slayers.ts
+++ b/src/cleaners/skyblock/slayers.ts
@@ -1,4 +1,4 @@
-export const slayerLevels = 4 // number of slayer levels, this might be 5 soon
+export const slayerLevels = 5
const SLAYER_NAMES = {
spider: 'tarantula',
diff --git a/src/database.ts b/src/database.ts
index 3f44b39..08a8114 100644
--- a/src/database.ts
+++ b/src/database.ts
@@ -85,10 +85,10 @@ function getMemberSlayerAttributes(member: CleanMember): StringNumber {
}
for (const slayer of member.slayers.bosses) {
- slayerAttributes[`slayer_${slayer.name}_total_xp`] = slayer.xp
- slayerAttributes[`slayer_${slayer.name}_total_kills`] = slayer.kills
+ slayerAttributes[`slayer_${slayer.raw_name}_total_xp`] = slayer.xp
+ slayerAttributes[`slayer_${slayer.raw_name}_total_kills`] = slayer.kills
for (const tier of slayer.tiers) {
- slayerAttributes[`slayer_${slayer.name}_${tier.tier}_kills`] = tier.kills
+ slayerAttributes[`slayer_${slayer.raw_name}_${tier.tier}_kills`] = tier.kills
}
}