aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-07-11 13:56:44 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-07-11 13:56:44 +0800
commitdcae5dceb529fe4727e0d9b1e6dba4bd82cc7db3 (patch)
treeac4659fbf6515c8feac951965423a9e13e6c3021
parent0f9a2e04a671f1aed5f41b8162e4f38f27ee5a73 (diff)
downloadSoopyV2-dcae5dceb529fe4727e0d9b1e6dba4bd82cc7db3.tar.gz
SoopyV2-dcae5dceb529fe4727e0d9b1e6dba4bd82cc7db3.tar.bz2
SoopyV2-dcae5dceb529fe4727e0d9b1e6dba4bd82cc7db3.zip
+ load when rooms are finished based on green tick (dungeon map room secrets)
-rw-r--r--features/dungeonMap/index.js16
-rw-r--r--features/dungeonSolvers/index.js1
2 files changed, 17 insertions, 0 deletions
diff --git a/features/dungeonMap/index.js b/features/dungeonMap/index.js
index b9195ed..ddfb534 100644
--- a/features/dungeonMap/index.js
+++ b/features/dungeonMap/index.js
@@ -852,6 +852,22 @@ class DungeonMap extends Feature {
});
} catch (e) { }
}
+
+
+ if (this.offset && this.offset.length === 2) {
+ for (let ent of this.roomDataStuff.entries()) {
+ let [loc] = ent
+ let [x, y] = loc.split(",")
+
+ let renderX = Math.round((parseInt(x) + 16) / this.mapScale + this.offset[0]) // / 128 * size
+ let renderY = Math.round((parseInt(y) + 16) / this.mapScale + this.offset[1])// / 128 * size
+
+ if (bytes[renderX + renderY * 128] === 30) {
+ let [first, second] = ent[1].split(" ")
+ ent[1] = "&a" + second + " " + second
+ }
+ }
+ }
// if (!this.renderImage) return
// let newMapImageThing = new Image(this.renderImage)
diff --git a/features/dungeonSolvers/index.js b/features/dungeonSolvers/index.js
index 87c5d8b..cd90496 100644
--- a/features/dungeonSolvers/index.js
+++ b/features/dungeonSolvers/index.js
@@ -363,6 +363,7 @@ class DungeonSolvers extends Feature {
this.timersData = []
}
getCurrentRoomId() {
+ if (Scoreboard.getLines().length === 0) return
let id = ChatLib.removeFormatting(Scoreboard.getLineByIndex(Scoreboard.getLines().length - 1).getName()).trim().split(" ").pop()
return id