diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-05-31 07:46:53 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-05-31 07:46:53 +0800 |
commit | 675740e0060a2a44909a96326822fc014f9563e6 (patch) | |
tree | 728ddec189c2a605d4afd326b2cb06e841dfcdca /features/mining/index.js | |
parent | 021187844fe3ccf5a09e9d0a386b3cd96c0ad549 (diff) | |
download | SoopyV2-675740e0060a2a44909a96326822fc014f9563e6.tar.gz SoopyV2-675740e0060a2a44909a96326822fc014f9563e6.tar.bz2 SoopyV2-675740e0060a2a44909a96326822fc014f9563e6.zip |
+ 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
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]) } }) |