aboutsummaryrefslogtreecommitdiff
path: root/src/features/dungeonSolvers/index.js
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-10-06 18:20:34 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-10-06 18:20:34 +0800
commit1bbd02d1cd6bb8961af73369143ebc096e5b21be (patch)
tree4fc58853a1dd691318b9b39808b4571981b66fe2 /src/features/dungeonSolvers/index.js
parent6f846f8f490f297cef353e64de50270bccc3ca44 (diff)
downloadSoopyV2-1bbd02d1cd6bb8961af73369143ebc096e5b21be.tar.gz
SoopyV2-1bbd02d1cd6bb8961af73369143ebc096e5b21be.tar.bz2
SoopyV2-1bbd02d1cd6bb8961af73369143ebc096e5b21be.zip
potentially make term waypoints work with sba hide boss messages
Diffstat (limited to 'src/features/dungeonSolvers/index.js')
-rw-r--r--src/features/dungeonSolvers/index.js16
1 files changed, 16 insertions, 0 deletions
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) || {