From c147a7b52f04d1c5003a79d01eeab58bad28a27d Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Tue, 7 Jun 2022 16:56:58 +0800 Subject: + fix slayer exp getting multiplied by 1.25 every boss --- features/mining/index.js | 2 +- features/slayers/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/features/mining/index.js b/features/mining/index.js index f8f7843..3536501 100644 --- a/features/mining/index.js +++ b/features/mining/index.js @@ -68,7 +68,7 @@ class Mining extends Feature { this.hudElements.push(this.nextChEventElement) - this.metalDetectorSolver = new ToggleSetting("Metal detector solver", "", true, "metal_detector_solver", this) + this.metalDetectorSolver = new ToggleSetting("Metal detector solver", "", true, "metal_detector_solver", this).contributor("tenios", ["- idea that chests are in same locations every time", "- locations of chests", "- finding offset of divan mines"]) this.alertTools = new ToggleSetting("Alert when all 4 tools in inventory", "", true, "alert_tools", this) this.seenBalDamages = [] diff --git a/features/slayers/index.js b/features/slayers/index.js index df49346..ed7bb04 100644 --- a/features/slayers/index.js +++ b/features/slayers/index.js @@ -91,7 +91,7 @@ class Slayers extends Feature { } } - this.slayerExp[this.lastSlayerType] = this.lastSlayerExp + (this.slayerExp[this.lastSlayerType] || 0) * multiplier; + this.slayerExp[this.lastSlayerType] = this.lastSlayerExp* multiplier + (this.slayerExp[this.lastSlayerType] || 0) ; if (this.expOnKill.getValue()) { cancel(e); -- cgit