Добавил немного деталей :-)

This commit is contained in:
Alexander Yakovlev 2010-05-14 11:52:39 +07:00
parent 275c003991
commit a854903cb6
2 changed files with 9 additions and 1 deletions

View file

@ -24,13 +24,19 @@ cobj = function(v)
end end
rope = cobj{ rope = cobj{
nam = 'верёвка', nam = 'верёвка',
inv = 'Длинная крепкая пеньковая верёвка.', wet = false,
inv = function()
local response = 'Длинная крепкая пеньковая верёвка.';
if (rope.wet) then response = response .. "Немного мокрая, всего-то." end;
return response;
end,
fuse = function(this, that) fuse = function(this, that)
if (that == 'lock') then if (that == 'lock') then
inv():del('lock'); inv():del('lock');
inv():del('rope'); inv():del('rope');
inv():add('rope_with_lock'); inv():add('rope_with_lock');
return 'Вы привязываете к концу верёвки замок.' return 'Вы привязываете к концу верёвки замок.'
elseif (that == 'waterskin') then return 'Вы капаете немного воды на верёвку.';
end; end;
end, end,
} }

View file

@ -81,6 +81,8 @@ falling = room{
inv():add('cape'); inv():add('cape');
inv():add('plantain'); inv():add('plantain');
lifeon('falling'); lifeon('falling');
cape.wet = false;
rope.wet = false;
return [[Как только Джек открыл дверь, свет в комнате погас.Знакомый голос сказал:^^ return [[Как только Джек открыл дверь, свет в комнате погас.Знакомый голос сказал:^^
"Да, ты выбрал верно. Продолжаем игру. Второй раунд! ]]..txtem('Телепорт."'); "Да, ты выбрал верно. Продолжаем игру. Второй раунд! ]]..txtem('Телепорт."');
end, end,