From 5139209b268a6f34b2fa65b3963f451a4e316ce6 Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Sun, 21 Nov 2021 22:21:31 +0800 Subject: Fix boss slain timer, and some comments --- features/slayers/index.js | 2 +- features/streamsGUI/index.js | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/features/slayers/index.js b/features/slayers/index.js index 7232a0c..3c3b517 100644 --- a/features/slayers/index.js +++ b/features/slayers/index.js @@ -46,7 +46,7 @@ class Slayers extends Feature { ChatLib.chat("&r &r&a&lSLAYER QUEST COMPLETE!&r") ChatLib.chat("&r &r&aYou have &d" + numberWithCommas(this.slayerExp[this.lastSlayerType]) + " " + this.lastSlayerType + " XP&r&7!&r") ChatLib.chat("&r &r&aYou have &d" + numberWithCommas(Object.values(this.slayerExp).reduce((a, t)=>t+a, 0)) + " total XP&r&7!&r") - if(Date-now()-this.lastBossSlain < 60000*5) ChatLib.chat("&r &r&aBoss took &d" + timeNumber((Date-now()-this.lastBossSlain)) + " to spawn and kill&r&7!&r") + if(Date.now()-this.lastBossSlain < 60000*5) ChatLib.chat("&r &r&aBoss took &d" + timeNumber((Date.now()-this.lastBossSlain)) + " &ato spawn and kill&r&7!&r") //TODO: Seperate setting for this } this.lastBossSlain = Date.now() }) diff --git a/features/streamsGUI/index.js b/features/streamsGUI/index.js index 9ac7bc0..2cd2a4f 100644 --- a/features/streamsGUI/index.js +++ b/features/streamsGUI/index.js @@ -75,7 +75,12 @@ class StreamPage extends GuiPage { this.openSidebarPage(sidebar) + /* + TODO: finish this + - Open stream in browser button + - show live chat + */ } onOpen(){ -- cgit