From 5e64350b4f9b2125225ef4f4ed97ebc411645b19 Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Thu, 19 May 2022 07:17:00 +0800 Subject: smol changes --- features/slayers/index.js | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'features') diff --git a/features/slayers/index.js b/features/slayers/index.js index 6da7cf0..a7b0f73 100644 --- a/features/slayers/index.js +++ b/features/slayers/index.js @@ -393,15 +393,12 @@ class Slayers extends Feature { if (emanHealth.includes("k")) { emanText += " &c0 Hits" } else if (emanHealth.includes("M") && parseInt(emanHealth) <= this.whenToShowHitsLeft.getValue()) { - let thunderMultiplier = this.thunderLevel.getValue(); + let thunderLevel = MathLib.clamp(parseInt(this.thunderLevel.getValue()), 5, 7) + + let thunderMultiplier = 1 + ((thunderLevel - 1) / 10); - if (thunderMultiplier >= 5 || thunderMultiplier <= 7) { - thunderMultiplier = 1 + ((thunderMultiplier - 1) / 10); - } else { - thunderMultiplier = 1.4; //assume thunderlord 5 - } let hits = parseInt(emanHealth) / (this.rcmDamagePerHit.getValue() * thunderMultiplier); - + emanText += ` &c${Math.max(0, Math.floor(hits - 0.75))} Hits` } } -- cgit