dialog rescan is now in room look
This commit is contained in:
parent
67d2b46d0c
commit
1918415427
|
@ -90,9 +90,6 @@ go = function (self, where, back)
|
||||||
elseif here().__visited == nil then
|
elseif here().__visited == nil then
|
||||||
ref(to).__visited = 1
|
ref(to).__visited = 1
|
||||||
end
|
end
|
||||||
if isDialog(ref(to)) then
|
|
||||||
dialog_rescan(ref(to))
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
PLAYER_MOVED = true
|
PLAYER_MOVED = true
|
||||||
if need_scene then -- or isForcedsc(ref(where)) then -- i'am not sure...
|
if need_scene then -- or isForcedsc(ref(where)) then -- i'am not sure...
|
||||||
|
@ -166,6 +163,16 @@ player = stead.inherit(player, function(v)
|
||||||
return v
|
return v
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
room = stead.inherit(room, function(v)
|
||||||
|
v.look = hook(v.look, function(f, s, ...)
|
||||||
|
if isDialog(s) then
|
||||||
|
dialog_rescan(s);
|
||||||
|
end
|
||||||
|
return f(s, unpack(arg));
|
||||||
|
end)
|
||||||
|
return v
|
||||||
|
end)
|
||||||
|
|
||||||
pl = player(pl) -- reinit
|
pl = player(pl) -- reinit
|
||||||
|
|
||||||
-- vim:ts=4
|
-- vim:ts=4
|
||||||
|
|
Reference in a new issue