diff options
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") |