From 782499c775854884eab9193da9ae703532f676a6 Mon Sep 17 00:00:00 2001 From: Matt Wagner Date: Wed, 29 Sep 2021 11:18:57 -0700 Subject: [PATCH] Handling some cases where mapper got confused about invalid exits --- src/scripts/mapper/mapper.lua | 2 ++ src/triggers/mapper/triggers.json | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/src/scripts/mapper/mapper.lua b/src/scripts/mapper/mapper.lua index b4f5eb0..57283bf 100644 --- a/src/scripts/mapper/mapper.lua +++ b/src/scripts/mapper/mapper.lua @@ -237,6 +237,7 @@ function lotj.mapper.stopMapping() return end lotj.mapper.mappingArea = nil + lotj.mapper.lastMoveDirs = nil lotj.mapper.log("Mapping stopped. Don't forget to map save!") end @@ -546,6 +547,7 @@ end -- The vnum is always sent after the name and exits, so we can use it as a trigger for -- handling movement to a new room function lotj.mapper.onEnterRoom() + lotj.mapper.logDebug("Handling entered room, vnum "..gmcp.Room.Info.vnum) if lotj.mapper.current ~= nil then lotj.mapper.last = lotj.mapper.current end diff --git a/src/triggers/mapper/triggers.json b/src/triggers/mapper/triggers.json index bf0b111..8c80cef 100644 --- a/src/triggers/mapper/triggers.json +++ b/src/triggers/mapper/triggers.json @@ -35,6 +35,10 @@ { "pattern": "^In your dreams, or what\\?$", "type": "regex" + }, + { + "pattern": "^That room is private right now.$", + "type": "regex" } ], "script": "lotj.mapper.popMoveDir()"