diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-01-15 09:56:46 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-01-15 09:56:46 +0800 |
commit | 4116028c3c6c2d5571a9d278c6323add8e97b8e8 (patch) | |
tree | c7f72be482cf3c7014c70f7cc467eaaa64965edc /features/dungeonSolvers/index.js | |
parent | eb6a98601a4d67e76267ef1a1068d5319f5a0d94 (diff) | |
download | SoopyV2-4116028c3c6c2d5571a9d278c6323add8e97b8e8.tar.gz SoopyV2-4116028c3c6c2d5571a9d278c6323add8e97b8e8.tar.bz2 SoopyV2-4116028c3c6c2d5571a9d278c6323add8e97b8e8.zip |
potentially fix exp/hour and run/hour not tracking sometimes
Diffstat (limited to 'features/dungeonSolvers/index.js')
-rw-r--r-- | features/dungeonSolvers/index.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/features/dungeonSolvers/index.js b/features/dungeonSolvers/index.js index 5a400a6..f56d8b5 100644 --- a/features/dungeonSolvers/index.js +++ b/features/dungeonSolvers/index.js @@ -65,7 +65,8 @@ class DungeonSolvers extends Feature { this.lastDungFinishes = [] this.lastDungExps = [] - this.registerChat("&r&r&r &r&8+&r&3${exp} Catacombs Experience&r", (exp)=>{ + this.registerChat("${start}+&r&3${exp} Catacombs Experience&r", (start, exp)=>{ + if(ChatLib.removeFormatting(start).replace(/ /gi, "").length > 0) return this.lastDungExps.push(parseFloat(exp.replace(/,/gi, ""))) if(this.lastDungExps.length > 5){ this.lastDungExps.shift() |