diff options
Diffstat (limited to 'features/hud')
-rw-r--r-- | features/hud/index.js | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/features/hud/index.js b/features/hud/index.js index 7c679ff..d7da499 100644 --- a/features/hud/index.js +++ b/features/hud/index.js @@ -10,6 +10,7 @@ import DropdownSetting from "../settings/settingThings/dropdownSetting"; import { getLevelByXp } from "../../utils/statUtils"; import { firstLetterCapital } from "../../utils/stringUtils"; import renderLibs from "../../../guimanager/renderLibs"; +import { numberWithCommas } from "../../utils/numberUtils.js"; const ProcessBuilder = Java.type("java.lang.ProcessBuilder") const Scanner = Java.type("java.util.Scanner") @@ -173,6 +174,10 @@ class Hud extends Feature { hudStatTypes["completions_dungeon_" + i] = "Dungeon " + i + " completions" } + + hudStatTypes["mythril_powder"] = "Mithril Powder" + hudStatTypes["gemstone_powder"] = "Gemstone Powder" + this.hudStat = [] for (let i = 0; i < 5; i++) { this.hudStat[i] = {} @@ -405,7 +410,6 @@ class Hud extends Feature { step() { if (!Player.getPlayer()) return - this.updateHudThingos() let fps = 0 if (this.fpsEnabledSetting.getValue() && this.fpsFastSetting.getValue()) { @@ -478,6 +482,7 @@ class Hud extends Feature { } step_5second() { + this.updateHudThingos() if (!this.soulflowEnabledSetting.getValue()) return if (!Player.getPlayer()) return if (!Player.getInventory()) return @@ -669,6 +674,12 @@ class Hud extends Feature { let cataData = getLevelByXp(this.lastStatData.dungeons.dungeon_types.catacombs.experience, 2, Infinity) string = "&6Cata&7> &f" + (~~((cataData.level + cataData.progress) * 100) / 100).toFixed(2) + " &7(" + this.numberUtils.numberWithCommas(cataData.xpCurrent) + (cataData.level === 50 ? "" : "/" + this.numberUtils.numberWithCommas(cataData.xpForNext)) + ")" } + if (type === "mythril_powder") { + string = "&6Mithril Powder&7> &f" + numberWithCommas(this.lastStatData.mining_core.powder_mithril_total) + } + if (type === "gemstone_powder") { + string = "&6Gemstone Powder&7> &f" + numberWithCommas(this.lastStatData.mining_core.powder_gemstone_total) + } Object.keys(this.skillLevelCaps).forEach(skill => { if (type === skill) { |