diff options
Diffstat (limited to 'features')
-rw-r--r-- | features/dungeonMap/index.js | 16 | ||||
-rw-r--r-- | features/dungeonSolvers/index.js | 1 |
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 |