oops that was bad

This commit is contained in:
Lilian Jónsdóttir 2020-10-10 12:56:58 -07:00
parent 6ce032a148
commit 169c35a012

View file

@ -17,7 +17,7 @@ local function moveNPC(homeData)
-- add to in memory table -- add to in memory table
local badWeather = checks.isBadWeatherNPC(npc) local badWeather = checks.isBadWeatherNPC(npc)
if badWeather then if badWeather then
common.runtimeData.disabledBadWeatherNPCs[npc.id] = homeData common.runtimeData.movedBadWeatherNPCs[npc.id] = homeData
else else
common.runtimeData.movedNPCs[npc.id] = homeData common.runtimeData.movedNPCs[npc.id] = homeData
end end
@ -309,7 +309,7 @@ this.processDoors = function(cell)
if night then if night then
if not door.data.NPCsGoHome.alreadyLocked then if not door.data.NPCsGoHome.alreadyLocked then
log(common.logLevels.medium, "[PROC] locking: %s to %s", door.object.name, door.destination.cell.id) log(common.logLevels.medium, "[PROC] Locking: %s to %s", door.object.name, door.destination.cell.id)
local lockLevel = math.random(25, 100) local lockLevel = math.random(25, 100)
tes3.lock({reference = door, level = lockLevel}) tes3.lock({reference = door, level = lockLevel})
@ -323,7 +323,7 @@ this.processDoors = function(cell)
tes3.setLockLevel({reference = door, level = 0}) tes3.setLockLevel({reference = door, level = 0})
tes3.unlock({reference = door}) tes3.unlock({reference = door})
log(common.logLevels.medium, "[PROC] unlocking: %s to %s", door.object.name, log(common.logLevels.medium, "[PROC] Unlocking: %s to %s", door.object.name,
door.destination.cell.id) door.destination.cell.id)
end end
end end