diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-08-25 19:58:07 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-08-25 19:58:07 +0800 |
commit | 68984c4463ff51d60e745d43bf51eb15540725d2 (patch) | |
tree | 48120c5cf481b341e8a192b6eef4ccddba022b6b /features/dungeonMap/index.js | |
parent | ee8f99633a66e12b1d0c6fb9daaedb2ba802b755 (diff) | |
download | SoopyV2-68984c4463ff51d60e745d43bf51eb15540725d2.tar.gz SoopyV2-68984c4463ff51d60e745d43bf51eb15540725d2.tar.bz2 SoopyV2-68984c4463ff51d60e745d43bf51eb15540725d2.zip |
+ fix dungeon map
+ powder hud fixes
+ guild bridge formatting
+ meta
Diffstat (limited to 'features/dungeonMap/index.js')
-rw-r--r-- | features/dungeonMap/index.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/features/dungeonMap/index.js b/features/dungeonMap/index.js index 9af147b..6fb0511 100644 --- a/features/dungeonMap/index.js +++ b/features/dungeonMap/index.js @@ -675,7 +675,9 @@ class DungeonMap extends Feature { if (bytes[x + y * 128] === 30 && bytes[x + 1 + y * 128] === 30 && bytes[x + 2 + y * 128] === 30 - && bytes[x + 3 + y * 128] === 30) { + && bytes[x + 3 + y * 128] === 30 + && bytes[x + 5 + y * 128] === 30 + && bytes[x + 10 + y * 128] === 30) { rx = x ry = y while (bytes[(rx - 1) + ry * 128] === 30) { @@ -689,7 +691,6 @@ class DungeonMap extends Feature { } if (rx) break; } - let x = rx while (bytes[x + ry * 128] === 30) { x++ @@ -700,6 +701,7 @@ class DungeonMap extends Feature { y++ roomWidth1++ } + let roomWidth = Math.floor(Math.max(roomWidth1, roomWidth2) * 5 / 4) this.mapScale = 32 / roomWidth |