aboutsummaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authormat <27899617+mat-1@users.noreply.github.com>2021-04-13 18:45:15 -0500
committermat <27899617+mat-1@users.noreply.github.com>2021-04-13 18:45:15 -0500
commitd5554e51b51ed69bfb60a21723652e11c06fe7eb (patch)
treeed4f185f5d9c36161c3b759c8616a2c7818c58dc /build
parentac79dfbc6ad6eb56bc814471d49b95f014d3eb5f (diff)
downloadskyblock-api-d5554e51b51ed69bfb60a21723652e11c06fe7eb.tar.gz
skyblock-api-d5554e51b51ed69bfb60a21723652e11c06fe7eb.tar.bz2
skyblock-api-d5554e51b51ed69bfb60a21723652e11c06fe7eb.zip
change max slayer level to 5
Diffstat (limited to 'build')
-rw-r--r--build/cleaners/skyblock/slayers.js2
-rw-r--r--build/database.js6
2 files changed, 4 insertions, 4 deletions
diff --git a/build/cleaners/skyblock/slayers.js b/build/cleaners/skyblock/slayers.js
index dbc20fc..8575d43 100644
--- a/build/cleaners/skyblock/slayers.js
+++ b/build/cleaners/skyblock/slayers.js
@@ -1,7 +1,7 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.cleanSlayers = exports.slayerLevels = void 0;
-exports.slayerLevels = 4; // number of slayer levels, this might be 5 soon
+exports.slayerLevels = 5;
const SLAYER_NAMES = {
spider: 'tarantula',
zombie: 'revenant',
diff --git a/build/database.js b/build/database.js
index 967828e..e889f1e 100644
--- a/build/database.js
+++ b/build/database.js
@@ -81,10 +81,10 @@ function getMemberSlayerAttributes(member) {
slayer_total_kills: member.slayers.kills,
};
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;
}
}
return slayerAttributes;