From bc3e2d89ee5ecaf598aa7f7bc862cf29b852671e Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Sat, 4 Jun 2022 14:04:26 +0800 Subject: add Aatrox Slayer XP Buff to slayer exp tracker --- features/slayers/index.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/features/slayers/index.js b/features/slayers/index.js index af63a6d..df49346 100644 --- a/features/slayers/index.js +++ b/features/slayers/index.js @@ -84,7 +84,15 @@ class Slayers extends Feature { this.lastSlayerFinishes.shift(); } - this.slayerExp[this.lastSlayerType] = this.lastSlayerExp + (this.slayerExp[this.lastSlayerType] || 0); + let multiplier = 1 + if (this.FeatureManager.features["dataLoader"].class.mayorData.mayor.name === "Aatrox") { + if (this.FeatureManager.features["dataLoader"].class.currentMayorPerks.has("Slayer XP Buff")) { + multiplier += 0.25 + } + } + + this.slayerExp[this.lastSlayerType] = this.lastSlayerExp + (this.slayerExp[this.lastSlayerType] || 0) * multiplier; + if (this.expOnKill.getValue()) { cancel(e); ChatLib.chat("&r &r&a&lSLAYER QUEST COMPLETE!&a&r"); -- cgit