diff options
Diffstat (limited to 'features/mining/index.js')
-rw-r--r-- | features/mining/index.js | 4 |
1 files changed, 4 insertions, 0 deletions
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]) } }) |