diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-01-16 14:34:59 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-01-16 14:34:59 +0800 |
commit | c7dd5f507cc0c2a0b17d008d0c87ef94e3b65668 (patch) | |
tree | 3d02f79662f30ac966ff9be778a09029d97b7dc0 /features/dataLoader | |
parent | 1b89623d96e16c30caf067854dcb41f8f2779705 (diff) | |
download | SoopyV2-c7dd5f507cc0c2a0b17d008d0c87ef94e3b65668.tar.gz SoopyV2-c7dd5f507cc0c2a0b17d008d0c87ef94e3b65668.tar.bz2 SoopyV2-c7dd5f507cc0c2a0b17d008d0c87ef94e3b65668.zip |
add slayer exp/hour (similar to dungeons exp/hour)
Diffstat (limited to 'features/dataLoader')
-rw-r--r-- | features/dataLoader/index.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/features/dataLoader/index.js b/features/dataLoader/index.js index 9389c03..01bc26c 100644 --- a/features/dataLoader/index.js +++ b/features/dataLoader/index.js @@ -95,6 +95,7 @@ class DataLoader extends Feature { } this.dungeonFloor = undefined + this.slayerXpToSpawn = undefined Scoreboard.getLines().forEach(line=>{ let name = ChatLib.removeFormatting(line.getName()).replace(/[^A-z0-9 \:\(\)\.]/g, "") if(this.isInDungeon){ @@ -111,6 +112,10 @@ class DataLoader extends Feature { if(name.startsWith("Bits: ")){ this.bits = parseInt(name.split("Bits: ")[1].split(" ")[0]) } + + if(name.endsWith("Combat XP")){ + this.slayerXpToSpawn = ChatLib.removeFormatting(name).split("(")[1].split(")")[0].split("/").map(parseInt) + } }) this.isInSkyblock = Scoreboard.getTitle()?.removeFormatting().includes("SKYBLOCK") |