@@ -212,22 +212,22 @@ function npc(tab)
end;
function darkroom(tab)
local life;
local entered;
local left;
if (not tab.has_light) then
if not tab.has_light then
tab.has_light = false;
if (tab.life) then
if tab.life then
life = tab.life;
if (tab.entered) then
if tab.entered then
entered = tab.entered;
if (tab.left) then
if tab.left then
left = tab.left;
tab.entered = function(s)
lifeon(s);
if (entered) then
entered(s);
@@ -285,13 +285,13 @@ function darkroom(tab)
if (life) then
life(s);
if (not tab.dsc) then
if not tab.dsc then
tab.dsc = function(s)
local lt;
local hasLight = EngineUtils.getValue(s.has_light, s);
local plLight = EngineUtils.getValue(me().has_light, pl);
if (hasLight) then
lt = EngineUtils.getValue(s.dsc_lit);