diff --git a/main.lua b/main.lua --- a/main.lua +++ b/main.lua @@ -38,81 +38,14 @@ dofile "first_city_outer_rim.lua" --TODO описания локаций должны изменяться в зависимости от посещения их днем или ночью --TODO больше Flavour-textа ---DAYTIME_MORNING = "morning"; --6-10 ---DAYTIME_DAY = "day"; --10-18 ---DAYTIME_EVENING = "evening"; --18-22 ---DAYTIME_NIGHT = "night"; --22-6 - global { warehouse18_found = false, warehouse32_found = false, dock_found = false, leviathan_discovered = false, - --daytime = "morning", - --hours = 7, - --minutes = 0, - --seconds = 0, atlantis_found = false }; ---item_clock = obj { --- nam = "item_clock"; --- disp = "Часы"; --- inv = function(s) --- return "Время " .. s.formatTime(); --- end; --- formatTime = function() --- local rval = tostring(hours); --- if (hours == 1) then --- rval = rval .. [[ час]]; --- elseif (hours == 2 or hours == 3 or hours == 4) then --- rval = rval .. [[ часа]]; --- else --- rval = rval .. [[ часов]]; --- end; --- if (minutes > 0) then --- if (minutes ~= 11 and minutes % 10 == 1) then --- rval = rval .. " " .. tostring(minutes) .. " минута"; --- elseif (minutes / 10 ~= 1 and (minutes % 10 == 2 or minutes % 10 == 3 or minutes % 10 == 4)) then --- rval = rval .. " " .. tostring(minutes) .. " минуты"; --- else --- rval = rval .. " " .. tostring(minutes) .. " минут"; --- end; --- else --- rval = rval .. " ровно"; --- end; --- return rval; --- end; --- life = function() --- seconds = seconds + 10; --- if (seconds > 59) then --- minutes = minutes + 1; --- seconds = 0; --- end; --- if (minutes > 59) then --- hours = hours + 1; --- minutes = 0; --- end; --- if (hours > 12) then --- hours = 1; --- end; --- if (hours > 5 and hours < 10) then --- if (daytime == DAYTIME_NIGHT) then --- daytime = DAYTIME_MORNING; --- elseif (daytime == DAYTIME_DAY) then --- daytime = DAYTIME_EVENING; --- end; --- end; --- if (hours > 10) then --- if (daytime == DAYTIME_MORNING) then --- daytime = DAYTIME_DAY; --- elseif (daytime == DAYTIME_EVENING) then --- daytime = DAYTIME_NIGHT; --- end; --- end; --- end; ---}; - pl = player { nam = "player"; disp = "Дэвид Дрейк"; @@ -168,17 +101,17 @@ game.dsc = [[ ]]; game_act_phrases = { - "Я не знаю, что с этим делать. "; - "Я не буду это трогать... Пока. "; - "Мне это ничем не поможет. "; + "Вы не знаете, что с этим делать. "; + "Вам нет смысла это трогать. "; + "Вам это ничем не поможет. "; "Это бессмыссленно. "; "Незачем это трогать. "; }; game_use_phrases = { - "Мне это ничем не поможет. "; + "Вам это ничем не поможет. "; "Это бессмыссленно. "; - "Каким образом? " + "Вы не знаете, как это сделать. " }; game.act = function(s)