From 1bbd02d1cd6bb8961af73369143ebc096e5b21be Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Thu, 6 Oct 2022 18:20:34 +0800 Subject: potentially make term waypoints work with sba hide boss messages --- src/features/dungeonSolvers/index.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/features/dungeonSolvers/index.js') diff --git a/src/features/dungeonSolvers/index.js b/src/features/dungeonSolvers/index.js index 6edb039..a0162d0 100644 --- a/src/features/dungeonSolvers/index.js +++ b/src/features/dungeonSolvers/index.js @@ -380,6 +380,12 @@ class DungeonSolvers extends Feature { this.termsDone = new Map() this.registerChat("${name} activated a lever! (${start}/${end})", (name, start, end) => { + if (this.area === -1) { + this.area = 0 + this.termsDone.clear() + this.areaUpdated() + } + let player = World.getPlayerByName(ChatLib.removeFormatting(name)) let data = this.termsDone.get(name) || { @@ -412,6 +418,11 @@ class DungeonSolvers extends Feature { }).registeredWhen(() => this.f7waypoints.getValue()) this.registerChat("${name} completed a device! (${start}/${end})", (name, start, end) => { + if (this.area === -1) { + this.area = 0 + this.termsDone.clear() + this.areaUpdated() + } let data = this.termsDone.get(name) || { terms: 0, @@ -432,6 +443,11 @@ class DungeonSolvers extends Feature { }).registeredWhen(() => this.f7waypoints.getValue()) this.registerChat("${name} activated a terminal! (${start}/${end})", (name, start, end) => { + if (this.area === -1) { + this.area = 0 + this.termsDone.clear() + this.areaUpdated() + } let player = World.getPlayerByName(ChatLib.removeFormatting(name)) let data = this.termsDone.get(name) || { -- cgit