From 8b2788fbf09e30e28250c6833992f7e92721e502 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lilian=20J=C3=B3nsd=C3=B3ttir?= Date: Sun, 16 Aug 2020 17:39:31 -0700 Subject: [PATCH] detect some dead NPCs in neighbouring cells --- MWSE/mods/celediel/NPCsGoHome/main.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/MWSE/mods/celediel/NPCsGoHome/main.lua b/MWSE/mods/celediel/NPCsGoHome/main.lua index 0e87a2c..d895cfa 100644 --- a/MWSE/mods/celediel/NPCsGoHome/main.lua +++ b/MWSE/mods/celediel/NPCsGoHome/main.lua @@ -402,6 +402,7 @@ local function isIgnoredNPC(npc) -- local fight = getFightFromSpawnedReference(obj.id) -- ! calling this hundreds of times is bad for performance lol -- if (fight or 0) > 70 then isHostile = true end isVampire = obj.head.vampiric and true or false -- don't set a reference ... is bool even a reference type?? + if obj.id:match("[Dd]ead") or obj.name:match("[Dd]ead") then isDead = true end end local isFargothActive = obj.id:match("fargoth") and fargothCheck() or false