diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2021-12-09 21:50:19 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2021-12-09 21:50:19 +0800 |
commit | 695138fbe0c1ba5450e7e632747e466605ac4548 (patch) | |
tree | 4bb41d7dcfef630eb18612d8d9344be2c403e5dd /features/slayers | |
parent | 5db44566ab59077701ad6ba40116335294865618 (diff) | |
download | SoopyV2-695138fbe0c1ba5450e7e632747e466605ac4548.tar.gz SoopyV2-695138fbe0c1ba5450e7e632747e466605ac4548.tar.bz2 SoopyV2-695138fbe0c1ba5450e7e632747e466605ac4548.zip |
move mappings to seperate module
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) |