0.8.6 works
This commit is contained in:
parent
37d0eaeabb
commit
ca1011175e
|
@ -1,4 +1,4 @@
|
|||
VERSION := \"0.8.5\"
|
||||
VERSION := \"0.8.6\"
|
||||
|
||||
DESTDIR=
|
||||
BIN=
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
VERSION := \"0.8.5\"
|
||||
VERSION := \"0.8.6\"
|
||||
|
||||
DESTDIR=/usr/local
|
||||
BIN=$(DESTDIR)/bin/
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
VERSION := \"0.8.5\"
|
||||
VERSION := \"0.8.6\"
|
||||
|
||||
DESTDIR=
|
||||
BIN=..\..\bin\\
|
||||
|
|
7
debian/changelog
vendored
7
debian/changelog
vendored
|
@ -1,3 +1,10 @@
|
|||
instead (0.8.6) unstable; urgency=low
|
||||
|
||||
* cat game fixes
|
||||
* seen extra parameter
|
||||
|
||||
-- Peter Kosyh <p.kosyh@gmail.com> Thu, 27 Aug 2009 08:32:00 +0400
|
||||
|
||||
instead (0.8.5) unstable; urgency=low
|
||||
|
||||
* possible segfaults in timer functions.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=0.8.5
|
||||
Version=0.8.6
|
||||
Type=Application
|
||||
Name=INSTEAD
|
||||
Name[ru]=INSTEAD
|
||||
|
|
|
@ -355,7 +355,12 @@ forest = room {
|
|||
|
||||
home = room {
|
||||
nam = 'хижина',
|
||||
pic ="gfx/house.png",
|
||||
pic = function(s)
|
||||
if not seen('mycat') then
|
||||
return "gfx/house-empty.png"
|
||||
end
|
||||
return "gfx/house.png";
|
||||
end,
|
||||
dsc = [[
|
||||
В этой хижине я провел 10 лет. 10 лет назад я своими руками построил ее. Довольно тесно, но уютно.]],
|
||||
obj = { 'fireplace', 'mytable', 'foto', 'mycat', 'gun',
|
||||
|
|
BIN
games/cat/gfx/house-empty.png
Normal file
BIN
games/cat/gfx/house-empty.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 86 KiB |
|
@ -1247,7 +1247,7 @@ function game_step(self)
|
|||
return game_life(self);
|
||||
end
|
||||
|
||||
version = "0.8";
|
||||
version = "0.8.6";
|
||||
|
||||
game = game {
|
||||
nam = "INSTEAD -- Simple Text Adventure interpreter v"..version.." '2009 by Peter Kosyh",
|
||||
|
@ -1622,8 +1622,13 @@ function dropf(obj)
|
|||
return o;
|
||||
end
|
||||
|
||||
function seen(obj)
|
||||
local o,w = here().obj:srch(obj);
|
||||
function seen(obj, wh)
|
||||
if not wh then
|
||||
wh = here();
|
||||
else
|
||||
wh = ref(wh);
|
||||
end
|
||||
local o,w = wh.obj:srch(obj);
|
||||
o = ref(o);
|
||||
if isObject(o) then
|
||||
return o,w
|
||||
|
|
Loading…
Reference in a new issue