1
0
Fork 0
mirror of https://gitlab.com/Oreolek/duel.git synced 2024-05-04 10:08:47 +03:00

Фикс домофона и дуэльных условий

This commit is contained in:
Alexander Yakovlev 2017-04-07 22:40:35 +07:00
parent 91cda2e8c9
commit c5aff74d7b
5 changed files with 51 additions and 89 deletions

View file

@ -21,12 +21,10 @@ room {
return 'первый робот'
end,
act = function(s)
if not isduel then
return [[Низкий хромированный фермер, древняя четырёхногая модель.
Он медленно неуклюже передвигал передние ноги, когда переходил к следующей грядке.]]
else
return s.talk()
end
return [[
Низкий хромированный фермер, древняя четырёхногая модель.
Он медленно неуклюже передвигал передние ноги, когда переходил к следующей грядке.
]]
end,
talk = function()
walk('robofarmer-dlg')
@ -42,15 +40,11 @@ room {
return 'второй робот'
end,
act = function(s)
if not isduel then
return [[
Он был похож по строению на робота-дворецкого, но у него не хватало верхней части лица,
а вместо левой ноги стоял импровизированный протез из строительного нанопластика.
Его глаза были очень маленькими для широкого лица; скорее всего, их вставили из какой-нибудь детской куклы.
]]
else
return s.talk()
end
end,
talk = function()
walk('robobutler-dlg')

View file

@ -35,11 +35,7 @@ room {
end
end,
act = function(s)
if not isduel then
return 'Старушка мирно посапывала, раскачиваясь в гамаке.'
else
return s.talk()
end
end,
talk = function() return walk('cho_dlg'); end,
}

View file

@ -20,13 +20,12 @@ room {
nam = 'call';
disp = 'домофон';
act = function(s)
if not isduel then
return 'Домофон был включён, хозяин — дома. Достаточно было только поговорить с ним.'
else
return s.talk()
end
end;
talk = function()
if _('pavels-call').obj:empty() then
return 'Вам нечего сказать.'
end
return walk('pavels-call')
end;
take = function()
@ -81,13 +80,7 @@ dlg {
nam = 'pavels-call',
disp = 'Разговор с домофоном',
decor = [[Камера домофона смотрела на вас бесстрастным блеском.]],
enter = function(self)
if empty(self) then
return 'Вам нечего сказать.'
else
return [[-- Кто там? — спросил неприветливый мужской низкий голос.]]
end
end,
enter = [[-- Кто там? — спросил неприветливый мужской низкий голос.]],
obj = {
{
{

View file

@ -4,27 +4,8 @@
require "fmt"
require "noinv"
declare "isdebug" (false)
declare "isduel" (false)
if not isduel then
require "proxymenu"
else
std.menu_player = std.class ({
__menu_player_type = true;
new = function(self, v)
if type(v) ~= 'table' then
std.err ("Wrong argument to std.menu_player: "..std.tostr(v), 2)
end
if not v.room then
v.room = 'main'
end
v.invent = std.list {}
return std.player(v)
end;
inventory = function(s)
return s.invent
end;
}, std.player)
end
if isdebug then
require "dbg"

View file

@ -59,7 +59,6 @@ init = function ()
end
}, me())
char.act = nil
if not isduel then
place( proxy_menu {
disp = function()
if stead.table.maxn(here().obj) > 0 then
@ -103,7 +102,6 @@ init = function ()
sources = { scene = true, inv = false };
}, me())
end
end
game.after_take = function(s, w)
take(w)
end