diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-06-04 14:04:26 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-06-04 14:04:26 +0800 |
commit | bc3e2d89ee5ecaf598aa7f7bc862cf29b852671e (patch) | |
tree | 02dd6cd9123009291e103e9ee1a0ee20c0cff766 /features/slayers/index.js | |
parent | 8016fca7343de58e1b68508793f2a6ad3b97d221 (diff) | |
download | SoopyV2-bc3e2d89ee5ecaf598aa7f7bc862cf29b852671e.tar.gz SoopyV2-bc3e2d89ee5ecaf598aa7f7bc862cf29b852671e.tar.bz2 SoopyV2-bc3e2d89ee5ecaf598aa7f7bc862cf29b852671e.zip |
add Aatrox Slayer XP Buff to slayer exp tracker
Diffstat (limited to 'features/slayers/index.js')
-rw-r--r-- | features/slayers/index.js | 10 |
1 files changed, 9 insertions, 1 deletions
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"); |