From 8d2af363b3935e2687abc0b7b15b9c903fe5cb8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lilian=20J=C3=B3nsd=C3=B3ttir?= Date: Sun, 2 Aug 2020 10:38:06 -0700 Subject: [PATCH] log door destination --- MWSE/mods/celediel/NPCsGoHome/main.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MWSE/mods/celediel/NPCsGoHome/main.lua b/MWSE/mods/celediel/NPCsGoHome/main.lua index 6fbbdb8..9cb4339 100644 --- a/MWSE/mods/celediel/NPCsGoHome/main.lua +++ b/MWSE/mods/celediel/NPCsGoHome/main.lua @@ -304,7 +304,7 @@ end -- todo: check cell contents to decide if it should be locked local function isIgnoredDoor(door, homeCellId) - -- don't lock non-cell change doors, and don't lock doors to outside + -- don't lock non-cell change doors if not door.destination then log(common.logLevels.large, "Non-Cell-change door %s, ignoring", door.id) return true @@ -518,7 +518,7 @@ local function processDoors(cell) for door in cell:iterateReferences(tes3.objectType.door) do if not door.data.NPCsGoHome then door.data.NPCsGoHome = {} end - log(common.logLevels.large, "Door has destination? %s", door.destination ~= nil) + log(common.logLevels.large, "Door has destination: %s", door.destination and door.destination.cell.id or "none") if config.lockDoors and not isIgnoredDoor(door, cell.id) then log(common.logLevels.large, "It knows there's a door")