aboutsummaryrefslogtreecommitdiff
path: root/features/slayers/index.js
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-06-04 14:04:26 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-06-04 14:04:26 +0800
commitbc3e2d89ee5ecaf598aa7f7bc862cf29b852671e (patch)
tree02dd6cd9123009291e103e9ee1a0ee20c0cff766 /features/slayers/index.js
parent8016fca7343de58e1b68508793f2a6ad3b97d221 (diff)
downloadSoopyV2-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.js10
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");