diff --git a/dock2.lua b/dock2.lua --- a/dock2.lua +++ b/dock2.lua @@ -41,7 +41,7 @@ dock_gate = obj { end; if (o == item_toolbox) then s.open = true; - path("Войти"):enable(); + path("В док"):enable(); return [[Пользуясь ломиком, найденным в ящике, вы снимаете замок с ворот. С жутким скрипом вам удается приоткрыть их. Теперь вы можете войти внутрь. ]]; else return false; diff --git a/main.lua b/main.lua --- a/main.lua +++ b/main.lua @@ -179,22 +179,23 @@ function init() pl.where = intro; ---debug ---leviathan - pl.where = "leviathan_airlock"; - submarine_leviathan.airpump = false; - leviathan_airlock.has_light = true; - leviathan_wardroom.has_light = true; - leviathan_wheelhouse.has_light = true; - leviathan_corridor.has_light = true; - leviathan_cabin_1.has_light = true; - leviathan_cabin_2.has_light = true; - leviathan_cabin_3.has_light = true; - leviathan_cabin_4.has_light = true; - leviathan_cabin_5.has_light = true; - leviathan_captains_cabin.has_light = true; - leviathan_cargo_hold.has_light = true; - leviathan_engines.has_light = true; - leviathan_lower_deck.has_light = true; - leviathan_life_support.has_light = true; + --pl.where = "leviathan_airlock"; + --submarine_leviathan.airpump = false; + + --leviathan_airlock.has_light = true; + --leviathan_wardroom.has_light = true; + --leviathan_wheelhouse.has_light = true; + --leviathan_corridor.has_light = true; + --leviathan_cabin_1.has_light = true; + --leviathan_cabin_2.has_light = true; + --leviathan_cabin_3.has_light = true; + --leviathan_cabin_4.has_light = true; + --leviathan_cabin_5.has_light = true; + --leviathan_captains_cabin.has_light = true; + --leviathan_cargo_hold.has_light = true; + --leviathan_engines.has_light = true; + --leviathan_lower_deck.has_light = true; + --leviathan_life_support.has_light = true; --[[ ---IYH lifeon(char_learr); diff --git a/warehouse18.lua b/warehouse18.lua --- a/warehouse18.lua +++ b/warehouse18.lua @@ -4,6 +4,10 @@ Здесь игрок найдет чертеж подводной лодки. ]] +global { + warehouse18_initialized = false; +}; + warehouse_18_entry = room { nam = "warehouse_18_entry"; disp = "Вход на склад 18"; @@ -272,9 +276,10 @@ w18_boxes = { }; function warehouse18_init() - if (not w18_boxes[1].item and not w18_boxes[2].item and not w18_boxes[3].item and not w18_boxes[4].item) then + if (warehouse18_initialized) then return; end; + warehouse18_initialized = true; local item1 = "item_cogs"; local item2 = "item_unknown_schematics"; local item3 = "item_map";