1
0
Fork 0
mirror of https://gitlab.com/Oreolek/duel.git synced 2024-07-02 14:55:15 +03:00

Фикс конца игры и немного диалога Кати

This commit is contained in:
Alexander Yakovlev 2017-03-17 16:21:26 +07:00
parent 22f1c04c44
commit 9633f7a514
3 changed files with 24 additions and 4 deletions

View file

@ -286,7 +286,7 @@ obj {
disp = 'автомобиль';
dsc = 'Недалеко от вас припаркован ваш {автомобиль.}';
tak = function()
enable('end-game')
char.can_leave = true
p 'Вы вынимаете ключи из замка зажигания. Больше никто не угонит авто просто так.'
return true
end

View file

@ -223,7 +223,21 @@ dlg {
onempty = function()
return "Она отворачивается. Видимо, разговор закончен."
end,
{'Привет.', 'Привет.'};
{
'#привет',
'Привет.',
function()
disable '#привет'
return 'Привет.'
end
};
{
'Покажешь дорогу до этого Павла?',
function()
walk 'pavels'
return 'Ну пошли.'
end,
};
{
always = true,
function()

View file

@ -11,6 +11,7 @@ init = function ()
char.wounds = 0
char.actions = 50
char.reputation = 50
char.can_leave = false
place(menu {
nam = "Персонаж",
menu = function()
@ -37,11 +38,16 @@ init = function ()
}, me())
place(menu {
nam = "end-game",
disp = fmt.b("Уехать"),
disp = function()
if char.can_leave then
return fmt.b("Уехать")
end
return false
end,
menu = function()
walk('ending')
end
}:disable(), me())
}, me())
char.act = nil
place( proxy_menu {
disp = 'ОСМОТРЕТЬ';