diff options
author | jakeQT <96396730+jakeQT@users.noreply.github.com> | 2022-05-18 23:54:55 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-18 23:54:55 +0800 |
commit | 2709bfab39c44d0cbe4a83520a6e64503817a73b (patch) | |
tree | a111e97995d45aa95d87fa1fffc9a0440e39fd62 | |
parent | 0323074dcd92af9f9c7bbfc2ce9b75b72b2cc92f (diff) | |
download | SoopyV2-2709bfab39c44d0cbe4a83520a6e64503817a73b.tar.gz SoopyV2-2709bfab39c44d0cbe4a83520a6e64503817a73b.tar.bz2 SoopyV2-2709bfab39c44d0cbe4a83520a6e64503817a73b.zip |
changes + update
- fix a line of sentense's grammer
- added thunderlord level input box
- added "show hits left when t4 below x M hp" input box (supporting dae axe swapping feature)
- fixed the hits left thingy showing all the time
-rw-r--r-- | features/slayers/index.js | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/features/slayers/index.js b/features/slayers/index.js index 37a181a..6da7cf0 100644 --- a/features/slayers/index.js +++ b/features/slayers/index.js @@ -22,7 +22,7 @@ class Slayers extends Feature { this.slainAlert = new ToggleSetting("Show boss slain alert", "This helps you to not kill mobs for ages with an inactive quest", true, "boss_slain_alert", this); this.spawnAlert = new ToggleSetting("Show boss spawned alert", "This helps you to not miss your boss when you spawn it", true, "boss_spawn_alert", this); - this.boxAroundEmanBoss = new ToggleSetting("Box around enderman slayer boss", "This helps to know what boss it yours", true, "eman_box", this); + this.boxAroundEmanBoss = new ToggleSetting("Box around enderman slayer boss", "This helps to know which boss is yours", true, "eman_box", this); this.boxToEmanBeacon = new ToggleSetting("Box and line to the enderman beacon", "This will help to find the beacon when the boss throws it", true, "eman_beacon", this); this.emanBeaconDinkDonk = new ToggleSetting("DinkDonk when beacon is spawned", "This will help to notice when the beacon is spawned", true, "eman_beacon_dinkdink", this); this.emanEyeThings = new ToggleSetting("Put box around the enderman eye things", "This will help to find them", true, "eman_eye_thing", this); @@ -33,6 +33,8 @@ class Slayers extends Feature { this.rcmDaeAxeSupport = new ToggleSetting("Eman Hyp hits before Dae axe swapping", "This will tell u how many clicks with hyp is needed before swapping to dae axe", true, "eman_rcm_support", this).requires(this.emanHpGuiElement).contributor("EmeraldMerchant"); this.rcmDamagePerHit = new TextSetting("Hyperion damage", "Your hyp's single hit damage w/o thunderlord/thunderbolt", "", "hyp_dmg", this, "Enter your hyp dmg (Unit: M)", false).requires(this.rcmDaeAxeSupport).contributor("EmeraldMerchant"); + this.whenToShowHitsLeft = new TextSetting("Show hits left timing", "At how much hp should the hits left thing be visible", "", "eman_hp_left", this, "Enter how much hp (Unit: M, enter a valid value 0-300)", false).requires(this.rcmDaeAxeSupport).contributor("EmeraldMerchant"); + this.thunderLevel = new TextSetting("Thunderlord Level", "What thunderlord level you have on your hyperion", "", "thunderlord_level", this, "Enter thunderlord level (only supports 5/6/7)", false).requires(this.rcmDaeAxeSupport).contributor("EmeraldMerchant"); this.emanLazerTimer = new ToggleSetting("Adds a timer for the boss lazer phase", "The timer will be inside the boss's body during the phase", true, "eman_lazer_timer", this); @@ -390,10 +392,17 @@ class Slayers extends Feature { if (emanHealth.includes("k")) { emanText += " &c0 Hits" - } else if (emanHealth.includes("M")) { - let hits = parseInt(emanHealth) / (this.rcmDamagePerHit.getValue() * 1.6); //1.6 is factoring in thunderlord + fire veil + } else if (emanHealth.includes("M") && parseInt(emanHealth) <= this.whenToShowHitsLeft.getValue()) { + let thunderMultiplier = this.thunderLevel.getValue(); - emanText += ` &c${Math.max(0, Math.floor(hits - 0.5))} Hits` + 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` } } |