diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-07-11 13:56:44 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-07-11 13:56:44 +0800 |
commit | dcae5dceb529fe4727e0d9b1e6dba4bd82cc7db3 (patch) | |
tree | ac4659fbf6515c8feac951965423a9e13e6c3021 /features/dungeonMap | |
parent | 0f9a2e04a671f1aed5f41b8162e4f38f27ee5a73 (diff) | |
download | SoopyV2-dcae5dceb529fe4727e0d9b1e6dba4bd82cc7db3.tar.gz SoopyV2-dcae5dceb529fe4727e0d9b1e6dba4bd82cc7db3.tar.bz2 SoopyV2-dcae5dceb529fe4727e0d9b1e6dba4bd82cc7db3.zip |
+ load when rooms are finished based on green tick (dungeon map room secrets)
Diffstat (limited to 'features/dungeonMap')
-rw-r--r-- | features/dungeonMap/index.js | 16 |
1 files changed, 16 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) |