goin/out added
This commit is contained in:
parent
098f0c9007
commit
a341f3713c
1
debian/changelog
vendored
1
debian/changelog
vendored
|
@ -25,6 +25,7 @@ instead (1.2.0) unstable; urgency=low
|
||||||
* live() added;
|
* live() added;
|
||||||
* nameof() added;
|
* nameof() added;
|
||||||
* goback() added;
|
* goback() added;
|
||||||
|
* goin()/out() added;
|
||||||
* disp attribute added;
|
* disp attribute added;
|
||||||
* improved debugger;
|
* improved debugger;
|
||||||
* save vars in _G;
|
* save vars in _G;
|
||||||
|
|
|
@ -127,10 +127,9 @@ end
|
||||||
|
|
||||||
function back()
|
function back()
|
||||||
if isDialog(here()) and not isDialog(from()) then
|
if isDialog(here()) and not isDialog(from()) then
|
||||||
local r, v = me():goto(from(), true, true, false, true);
|
return stead.out();
|
||||||
return r,v;
|
|
||||||
end
|
end
|
||||||
return me():goto(from(), true);
|
return stead.goback();
|
||||||
end
|
end
|
||||||
stead.back = back
|
stead.back = back
|
||||||
|
|
||||||
|
@ -144,6 +143,16 @@ function goto(what, back, noenter, noexit, nodsc, ...)
|
||||||
end
|
end
|
||||||
stead.goto = goto
|
stead.goto = goto
|
||||||
|
|
||||||
|
function goin(what)
|
||||||
|
return me():goto(what, false, false, true);
|
||||||
|
end
|
||||||
|
stead.goin = goin
|
||||||
|
|
||||||
|
function out()
|
||||||
|
return me():goto(from(), true, true, false, true);
|
||||||
|
end
|
||||||
|
stead.out = out
|
||||||
|
|
||||||
game.ini = stead.hook(game.ini,function(f, ...)
|
game.ini = stead.hook(game.ini,function(f, ...)
|
||||||
if isRoom(here()) then
|
if isRoom(here()) then
|
||||||
here().__visited = 1
|
here().__visited = 1
|
||||||
|
|
Loading…
Reference in a new issue