diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-05-29 12:06:18 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-05-29 12:06:18 +0800 |
commit | 9ec9aa2d495df5a6c48b8edbd5fe31052d20b37b (patch) | |
tree | aa20f5314241d517b0a50b123926077685fb700e /features/dungeonMap/index.js | |
parent | a6593709b0e1e99e241b6c163fe66623685b6efc (diff) | |
parent | 51cdd4ca4ea64e1a9a67b99c274693a54f7f535d (diff) | |
download | SoopyV2-9ec9aa2d495df5a6c48b8edbd5fe31052d20b37b.tar.gz SoopyV2-9ec9aa2d495df5a6c48b8edbd5fe31052d20b37b.tar.bz2 SoopyV2-9ec9aa2d495df5a6c48b8edbd5fe31052d20b37b.zip |
Merge branch 'master' of https://github.com/Soopyboo32/SoopyV2
Diffstat (limited to 'features/dungeonMap/index.js')
-rw-r--r-- | features/dungeonMap/index.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/features/dungeonMap/index.js b/features/dungeonMap/index.js index bdaaf23..40bd292 100644 --- a/features/dungeonMap/index.js +++ b/features/dungeonMap/index.js @@ -95,6 +95,7 @@ class DungeonMap extends Feature { this.bloodOpened = false this.registerChat("&r&cThe &r&c&lBLOOD DOOR&r&c has been opened!&r", () => { this.bloodOpened = true + this.keys-- }) this.registerChat("&r${*}&r&f &r&ehas obtained &r&a&r&${*} Key&r&e!&r", () => { @@ -438,7 +439,7 @@ class DungeonMap extends Feature { mapData = item.getItem()[m.getMapData](item.getItemStack(), World.getWorld()); // ItemStack.getItem().getMapData() } catch (error) { } - if (mapData) { + if (mapData && !this.boringMap) { this.mapData = mapData @@ -511,7 +512,7 @@ class DungeonMap extends Feature { roomWidth1++ } let roomWidth = Math.floor(Math.max(roomWidth1, roomWidth2) * 5 / 4) - console.log(roomWidth) + // console.log(roomWidth) this.mapScale = 32 / roomWidth let mortLocationOnMap roomOffsets = [rx % roomWidth - 3, ry % roomWidth - 3] |