diff options
Diffstat (limited to 'features/slayers')
| -rw-r--r-- | features/slayers/index.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/features/slayers/index.js b/features/slayers/index.js index 0be4e57..347cfaa 100644 --- a/features/slayers/index.js +++ b/features/slayers/index.js @@ -1,7 +1,7 @@ /// <reference types="../../../CTAutocomplete" /> /// <reference lib="es2015" /> import Feature from "../../featureClass/class"; -import { f, m } from "../../mappings/mappings"; +import { f, m } from "../../../mappings/mappings"; import { numberWithCommas } from "../../utils/numberUtils"; import { drawBoxAtBlock, drawBoxAtEntity, drawFilledBox, drawLine } from "../../utils/renderUtils"; import HudTextElement from "../hud/HudTextElement"; @@ -47,7 +47,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)) + " &ato spawn and kill&r&7!&r") //TODO: Seperate setting for this + 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!"+/* (" + timeNumber(Date.now()-this.lastBossSpawned) + " to kill) */"&r") //TODO: Seperate setting for this } this.lastBossSlain = Date.now() }) @@ -55,6 +55,7 @@ class Slayers extends Feature { this.bossSlainMessage = false this.bossSpawnedMessage = false this.lastBossNotSpawnedTime = 0 + this.lastBossSpawned = 0 this.registerEvent("renderOverlay", this.renderOverlay) |
