diff options
| author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-05-19 07:17:00 +0800 |
|---|---|---|
| committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-05-19 07:17:00 +0800 |
| commit | 5e64350b4f9b2125225ef4f4ed97ebc411645b19 (patch) | |
| tree | d699c3cbe6de7d883134f61c898ec25c88ac19fc | |
| parent | b9b7f75859b2699a44fdd32bc63a745adaf3eb52 (diff) | |
| download | SoopyV2-5e64350b4f9b2125225ef4f4ed97ebc411645b19.tar.gz SoopyV2-5e64350b4f9b2125225ef4f4ed97ebc411645b19.tar.bz2 SoopyV2-5e64350b4f9b2125225ef4f4ed97ebc411645b19.zip | |
smol changes
| -rw-r--r-- | features/slayers/index.js | 11 |
1 files changed, 4 insertions, 7 deletions
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` } } |
