diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-04-18 00:25:15 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-04-18 00:25:15 +0800 |
commit | 082d9cf4af63495a3d8709b0ee87dc935ed986dc (patch) | |
tree | e1da1a02907573f68c8052ec5a2a77366385361c /features/dataLoader | |
parent | f718bd5743701a7fb5f96e74a4df75145cc28789 (diff) | |
download | SoopyV2-082d9cf4af63495a3d8709b0ee87dc935ed986dc.tar.gz SoopyV2-082d9cf4af63495a3d8709b0ee87dc935ed986dc.tar.bz2 SoopyV2-082d9cf4af63495a3d8709b0ee87dc935ed986dc.zip |
Many changes
Diffstat (limited to 'features/dataLoader')
-rw-r--r-- | features/dataLoader/index.js | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/features/dataLoader/index.js b/features/dataLoader/index.js index dbaf841..fe11e42 100644 --- a/features/dataLoader/index.js +++ b/features/dataLoader/index.js @@ -18,6 +18,8 @@ class DataLoader extends Feature { this.isInSkyblock = false + this.dungeonPercentCleared = 0 + this.registerStep(true, 2, this.step) this.registerEvent("worldLoad", this.worldLoad) @@ -91,7 +93,15 @@ class DataLoader extends Feature { TabList.getNames().forEach(n=>{ n = ChatLib.removeFormatting(n) if(n.includes(": ")){ - this.stats[n.split(": ")[0].trim()] = n.split(": ")[1].trim() + if(n.includes('Secrets Found')){ + if(n.includes('%')){ + this.stats["Secrets Found%"] = n.split(": ")[1] + }else{ + this.stats["Secrets Found"] = n.split(": ")[1] + } + }else{ + this.stats[n.split(": ")[0].trim()] = n.split(": ")[1].trim() + } } }) } @@ -121,6 +131,9 @@ class DataLoader extends Feature { if(name.startsWith("Bits: ")){ this.bits = parseInt(name.split("Bits: ")[1].split(" ")[0]) } + if(name.startsWith("Cleared: ")){ + this.dungeonPercentCleared = parseInt(name.split(" ")[1])/100 + } if(name.endsWith("Combat XP")){ this.slayerXpToSpawn = ChatLib.removeFormatting(name).split("(")[1].split(")")[0].split("/").map(parseInt) |