Changeset - e713ba125275
[Not reviewed]
default
0 3 0
Silverwing - 8 years ago 2017-02-11 12:19:11

Prologue Bugfixes
3 files changed with 24 insertions and 18 deletions:
0 comments (0 inline, 0 general)
dock2.lua
Show inline comments
 
@@ -38,13 +38,13 @@ dock_gate = obj {
 
	used = function(s,o)
 
		if (s.open) then
 
			return false;
 
		end;
 
		if (o == item_toolbox) then
 
			s.open = true;
 
			path("Войти"):enable();
 
			path("В док"):enable();
 
			return [[Пользуясь ломиком, найденным в ящике, вы снимаете замок с ворот. С жутким скрипом вам удается приоткрыть их. Теперь вы можете войти внутрь. ]];
 
		else
 
			return false;
 
		end;
 
	end;
 
	
main.lua
Show inline comments
 
@@ -176,28 +176,29 @@ function init()
 
        table.remove(nums, index);
 
    end;
 
	---game 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);
 
	lifeon(char_wright);
 
	lifeon(char_radcliffe);
 
	lifeon(char_anna);
warehouse18.lua
Show inline comments
 
--[[
 
Игрок может попасть сюда только после диалога с Майклом.
 
Эта локация имеет владельца, который будет готов сотрудничать.
 
Здесь игрок найдет чертеж подводной лодки.
 
]]
 
 
global {
 
    warehouse18_initialized = false;
 
};
 
 
warehouse_18_entry = room {
 
	nam = "warehouse_18_entry";
 
	disp = "Вход на склад 18";
 
	entered = function(s)
 
		move(char_coachman, here());
 
	end;
 
@@ -269,15 +273,16 @@ w18_boxes = {
 
	w18_box2;
 
	w18_box3;
 
	w18_box4;
 
};
 
 
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";
 
	while item1 do
 
		local t = rnd(#w18_boxes);
 
		if (not w18_boxes[t].item) then
0 comments (0 inline, 0 general)