aboutsummaryrefslogtreecommitdiff
path: root/features/slayers
diff options
context:
space:
mode:
authorEmeraldMerchant <96396730+EmeraldMerchant@users.noreply.github.com>2022-06-23 22:59:46 +0800
committerGitHub <noreply@github.com>2022-06-23 22:59:46 +0800
commit9af4e7965387c617dec21406a7e9544b248c37fa (patch)
treeaa7e6028dc11ddd0fce737966df276e1bd372dca /features/slayers
parent33d232312fcc83f878a3bab1944019924d7009aa (diff)
downloadSoopyV2-9af4e7965387c617dec21406a7e9544b248c37fa.tar.gz
SoopyV2-9af4e7965387c617dec21406a7e9544b248c37fa.tar.bz2
SoopyV2-9af4e7965387c617dec21406a7e9544b248c37fa.zip
small fix
- separated boss spawn + kill time and kill time - recolored kill time to make it fit with the other messages
Diffstat (limited to 'features/slayers')
-rw-r--r--features/slayers/index.js8
1 files changed, 4 insertions, 4 deletions
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();
});