From 9af4e7965387c617dec21406a7e9544b248c37fa Mon Sep 17 00:00:00 2001 From: EmeraldMerchant <96396730+EmeraldMerchant@users.noreply.github.com> Date: Thu, 23 Jun 2022 22:59:46 +0800 Subject: small fix - separated boss spawn + kill time and kill time - recolored kill time to make it fit with the other messages --- features/slayers/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'features') diff --git a/features/slayers/index.js b/features/slayers/index.js index 65abe37..4fe5cf3 100644 --- a/features/slayers/index.js +++ b/features/slayers/index.js @@ -116,12 +116,12 @@ class Slayers extends Feature { ChatLib.chat("&r &r&a&lSLAYER QUEST COMPLETE!&a&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"); - let bossKillTimeMessage = undefined if (this.bossSpawnKillTime.getValue() && Date.now() - this.lastBossSlain < 60000 * 5) { - bossKillTimeMessage += `&r &r&aBoss took &d${timeNumber(Date.now() - this.lastBossSlain)} &ato spawn and kill&r&7!` + Chatlib.chat(`&r &r&aBoss took &d${timeNumber(Date.now() - this.lastBossSlain)} &ato spawn and kill&r&7!`); + } + if (this.bossKillTime.getValue() && Date.now() - this.lastBossSpawned < 60000 * 4) { + Chatlib.chat(`&r &r&aBoss took &d${timeNumber(Date.now() - this.lastBossSpawned)} &ato kill&r&7!`); } - if (this.bossKillTime.getValue()) bossKillTimeMessage += `(${timeNumber(Date.now() - this.lastBossSpawned)} to kill)&r`; - if (bossKillTimeMessage !== undefined) ChatLib.chat(bossKillTimeMessage) } this.lastBossSlain = Date.now(); }); -- cgit