diff options
-rw-r--r-- | features/mining/index.js | 2 | ||||
-rw-r--r-- | metadata.json | 4 | ||||
-rw-r--r-- | utils/numberUtils.js | 15 |
3 files changed, 11 insertions, 10 deletions
diff --git a/features/mining/index.js b/features/mining/index.js index 767bc82..ce71e6d 100644 --- a/features/mining/index.js +++ b/features/mining/index.js @@ -122,7 +122,7 @@ 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) - console.log(id + ": " + gemstoneCosts[id]) + // console.log(id + ": " + gemstoneCosts[id]) } }) }) diff --git a/metadata.json b/metadata.json index a7c52f5..94aa816 100644 --- a/metadata.json +++ b/metadata.json @@ -5,8 +5,8 @@ "entry": "index.js", "description": "SoopyV2", "name": "SoopyV2", - "version": "2.1.90", - "versionId": 217, + "version": "2.1.91", + "versionId": 218, "requires": [ "soopyApis", "soopyAddonsData", diff --git a/utils/numberUtils.js b/utils/numberUtils.js index 82a6805..597a538 100644 --- a/utils/numberUtils.js +++ b/utils/numberUtils.js @@ -1,4 +1,4 @@ -module.exports = { +let utils = { numberWithCommas: function (x) { if (x === undefined) { return "" } var parts = x.toString().split("."); @@ -76,26 +76,27 @@ module.exports = { return interval + '' + intervalType; }, - timeSince2: function (date) { + timeSince2: (date) => { let time = Date.now() - date if (time > 30 * 60000) { - return this.timeNumber2(time) + return utils.timeNumber2(time) } - return this.timeNumber(time) + return utils.timeNumber(time) }, - timeNumber: function (time) { + timeNumber: (time) => { let mins = Math.floor(time / 1000 / 60) let secs = Math.floor(time / 1000) % 60 if (mins === 0) return secs + "s" return `${mins}m ${secs}s` }, - timeNumber2: function (time) { + timeNumber2: (time) => { let hours = Math.floor(time / 1000 / 60 / 60) let mins = Math.floor(time / 1000 / 60) % 60 if (hours === 0) return mins + "m" return `${hours}h ${mins}m` } -}
\ No newline at end of file +} +module.exports = utils
\ No newline at end of file |