diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-08-19 21:36:33 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-08-19 21:36:33 +0800 |
commit | 55776850ead3263aa8ea7f12fd26cf373c0b5c06 (patch) | |
tree | ca1faf560f40b5a5f7985d8accdadcd746b02c93 /features | |
parent | 2ae4a9e1d2439a1590ab3b3f030fb3e7f4ba1a9a (diff) | |
download | SoopyV2-55776850ead3263aa8ea7f12fd26cf373c0b5c06.tar.gz SoopyV2-55776850ead3263aa8ea7f12fd26cf373c0b5c06.tar.bz2 SoopyV2-55776850ead3263aa8ea7f12fd26cf373c0b5c06.zip |
+ fix mana bar not showing cus update
+ fix mining progress resetting due to item price data
+ add carpentary to hud stat
Diffstat (limited to 'features')
-rw-r--r-- | features/betterGuis/index.js | 7 | ||||
-rw-r--r-- | features/globalSettings/index.js | 2 | ||||
-rw-r--r-- | features/hud/index.js | 2 |
3 files changed, 8 insertions, 3 deletions
diff --git a/features/betterGuis/index.js b/features/betterGuis/index.js index 3c9f264..9f65dc4 100644 --- a/features/betterGuis/index.js +++ b/features/betterGuis/index.js @@ -155,6 +155,7 @@ class BetterGuis extends Feature { //&c2532/2532❤ &a798&a❈ Defense &b2525/2525✎ &31ʬ&r (100) //&c2532/2532❤ &f20&f❂ True Defense &b2414/2414✎ &3600ʬ&r (13) //&c2665/2665❤ &a972&a❈ Defense &b2145/2145✎ &3600ʬ&r + //&c2,806/2,806❤ &a1,050&a❈ Defense &b1,945/1,945✎ &3600ʬ&r this.registerEvent("guiRender", this.postGuiRender).registeredWhen(() => this.chestSearchBar.getValue()) this.registerEvent("guiMouseClick", this.guiMouseClick).registeredWhen(() => this.chestSearchBar.getValue()) this.registerEvent("guiKey", this.guiKey).registeredWhen(() => this.chestSearchBar.getValue()) @@ -166,13 +167,13 @@ class BetterGuis extends Feature { if (curr.includes("Mana")) { curr = curr.split("&b").pop() } - this.mana.set(parseInt(curr), 500) - this.maxMana.set(parseInt(max), 500) + this.mana.set(parseInt(curr.replace(/,/g, "")), 500) + this.maxMana.set(parseInt(max.replace(/,/g, "")), 500) if (Date.now() - this.lastOverFlow > 1000) this.overflowMana.set(0, 500) } actionbarOverflowMana(curr) { - this.overflowMana.set(parseInt(curr), 500) + this.overflowMana.set(parseInt(curr.replace(/,/g, "")), 500) this.lastOverFlow = Date.now() } diff --git a/features/globalSettings/index.js b/features/globalSettings/index.js index 04ac413..429cb23 100644 --- a/features/globalSettings/index.js +++ b/features/globalSettings/index.js @@ -431,6 +431,8 @@ class GlobalSettings extends Feature { updateItemLores() { if (!this.itemWorth.getValue() && !this.showChampion.getValue() && !this.showHecatomb.getValue()) return; + if (!Client.currentGui.get()) return + let items = [...Player.getInventory().getItems(), ...Player.getContainer().getItems()] items.forEach(i => { diff --git a/features/hud/index.js b/features/hud/index.js index ae1a631..8791cb4 100644 --- a/features/hud/index.js +++ b/features/hud/index.js @@ -165,6 +165,7 @@ class Hud extends Feature { "experience_skill_enchanting": 60, "experience_skill_mining": 60, "experience_skill_taming": 50, + "experience_skill_carpentry": 50, }; this.lastSkillLevel = { @@ -176,6 +177,7 @@ class Hud extends Feature { "experience_skill_enchanting": undefined, "experience_skill_mining": undefined, "experience_skill_taming": undefined, + "experience_skill_carpentry": undefined, } this.spotifyProcessId = -1 |