From c7dd5f507cc0c2a0b17d008d0c87ef94e3b65668 Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Sun, 16 Jan 2022 14:34:59 +0800 Subject: add slayer exp/hour (similar to dungeons exp/hour) --- features/dataLoader/index.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'features/dataLoader') 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") -- cgit