From 695138fbe0c1ba5450e7e632747e466605ac4548 Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Thu, 9 Dec 2021 21:50:19 +0800 Subject: move mappings to seperate module --- features/slayers/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'features/slayers') 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 @@ /// /// 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) -- cgit