From 675740e0060a2a44909a96326822fc014f9563e6 Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Tue, 31 May 2022 07:46:53 +0800 Subject: + added gemstone and mithril powder to hud stat + added option to force mining $/h prices to use npc (instead of the highest between bz and npc) eg for ironman players --- features/mining/index.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'features/mining') diff --git a/features/mining/index.js b/features/mining/index.js index 31fa716..7b0c520 100644 --- a/features/mining/index.js +++ b/features/mining/index.js @@ -55,6 +55,7 @@ class Mining extends Feature { .setLocationSetting(new LocationSetting("HUD Location", "Allows you to edit the location of the gemstone $/h", "gemstone_money_location", this, [10, 60, 1, 1]) .requires(this.gemstoneMoneyHud) .editTempText("&6$/h&7> &f$12,345,678\n&6$ made&7> &f$123,456,789\n&6Time tracked&7> &f123m")) + this.gemstoneMoneyHudMoneyOnly = new ToggleSetting("Force npc price", "(Eg if u are ironman)", true, "gemstone_money_hud_npc", this).requires(this.gemstoneMoneyHud) this.hudElements.push(this.gemstoneMoneyHudElement) this.nextChEvent = new ToggleSetting("Show the current and next crystal hollows event", "(syncs the data between all users in ch)", true, "chevent_hud", this) @@ -121,6 +122,9 @@ class Mining extends Feature { Object.keys(data.products).forEach(id => { if (id.startsWith("FLAWED_")) { gemstoneCosts[id] = Math.max(240, data.products[id].quick_status.sellPrice) + if (this.gemstoneMoneyHudMoneyOnly.getValue()) { + gemstoneCosts[id] = 240 + } // console.log(id + ": " + gemstoneCosts[id]) } }) -- cgit