aboutsummaryrefslogtreecommitdiff
path: root/features/specialMining/index.js
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-09-14 18:08:15 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-09-14 18:08:15 +0800
commitd8d3294e243470c35de81a73678689dc504f111f (patch)
treefe5f671ebe0991e8f684104cb4a0abe4c82f7eee /features/specialMining/index.js
parent1d1e158e24a68a5fc719c936b4cc6c3b7ada30b2 (diff)
parent3f3a0dcefa3361e9f5688a4c9565308323fade6b (diff)
downloadSoopyV2-d8d3294e243470c35de81a73678689dc504f111f.tar.gz
SoopyV2-d8d3294e243470c35de81a73678689dc504f111f.tar.bz2
SoopyV2-d8d3294e243470c35de81a73678689dc504f111f.zip
Merge branch 'master' of https://github.com/Soopyboo32/SoopyV2
Diffstat (limited to 'features/specialMining/index.js')
-rw-r--r--features/specialMining/index.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/features/specialMining/index.js b/features/specialMining/index.js
index c7929fb..147193a 100644
--- a/features/specialMining/index.js
+++ b/features/specialMining/index.js
@@ -87,6 +87,7 @@ class PowderAndScatha extends Feature {
this.expRateInfo = []
this.mythrilRate = 0
this.gemstoneRate = 0
+ this.chestRate = 0
this.saveMiningData();
this.registerCommand("resetpowderdata", () => {
@@ -119,6 +120,7 @@ class PowderAndScatha extends Feature {
this.mythrilRate = (this.miningData.powder.mithril - mythril) / (Date.now() - time)
this.gemstoneRate = (this.miningData.powder.gemstone - gemstone) / (Date.now() - time)
+ this.chestRate = (this.miningData.powder.chestRate - chestRate) / (Date.now() - time)
})
})
@@ -326,6 +328,10 @@ class PowderAndScatha extends Feature {
this.overlayLeft.push(`&bGems/h:`)
this.overlayRight.push(`&d${numberWithCommas(Math.round(this.gemstoneRate * 1000 * 60 * 60))}`)
}
+ if (this.chestRate) {
+ this.overlayLeft.push(`&bChests/h:`)
+ this.overlayRight.push(`&d${numberWithCommas(Math.round(this.chestRate * 1000 * 60 * 60))}`)
+ }
}
if (this.scathaCounter.getValue() && this.inCrystalHollows) {
let tempText = `&6Scatha Counter\n&bKills: ${this.miningData.scatha.total_worms}\n&bWorms: ${this.miningData.scatha.worms}\n&bScathas: ${this.miningData.scatha.scathas}\n&bSince Scatha: ${this.miningData.scatha.since_scatha}\n`