From 68984c4463ff51d60e745d43bf51eb15540725d2 Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Thu, 25 Aug 2022 19:58:07 +0800 Subject: + fix dungeon map + powder hud fixes + guild bridge formatting + meta --- features/dungeonMap/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'features/dungeonMap') 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 -- cgit