Changeset - a5556a2a3f43
[Not reviewed]
default
0 2 0
Silverwing - 5 years ago 2018-12-23 15:41:18

Chapter 2: Box of rays now properly installed on leviathan
2 files changed with 8 insertions and 8 deletions:
0 comments (0 inline, 0 general)
leviathan.lua
Show inline comments
 
@@ -390,16 +390,16 @@ leviathan_wardroom = darkroom {
 
		kh_vroom("В рубку", "leviathan_wheelhouse", 1);
 
		kh_vroom("В шлюз", "leviathan_airlock", 1);
 
		kh_vroom("В коридор", "leviathan_corridor", 1);
 
		kh_vroom("В грузовой отсек", "leviathan_cargo_hold", 1):disable();
 
		kh_vroom("В машинный отсек", "leviathan_engines", 1):disable();
 
	};
 
	entered = function(s)
 
		if raybox_task_finished and not where(item_raybox) == leviathan_wardroom then
 
			put(item_raybox, here());
 
	enter = function(s)
 
		if raybox_task_finished and stead.deref(where(item_raybox)) ~= 'leviathan_wardroom' then
 
			put(item_raybox, 'lse_leviathan_wardroom');
 
			put(item_raybox, 'leviathan_wardroom');
 
			walkin(ven_raybox_cutscene);
 
		end;
 
	end;
 
	obj = {
 
		"phone_wardroom";
 
		"leviathan_wardroom_wiring";
utils.lua
Show inline comments
 
@@ -212,22 +212,22 @@ function npc(tab)
 
end;
 
 
function darkroom(tab)
 
	local life;
 
	local entered;
 
	local left;
 
	if (not tab.has_light) then
 
	if not tab.has_light then
 
		tab.has_light = false;
 
	end;
 
	if (tab.life) then
 
	if tab.life then
 
		life = tab.life;
 
	end;
 
	if (tab.entered) then
 
	if tab.entered then
 
		entered = tab.entered;
 
	end;
 
	if (tab.left) then
 
	if tab.left then
 
		left = tab.left;
 
	end;
 
	tab.entered = function(s)
 
		lifeon(s);
 
		if (entered) then
 
			entered(s);
 
@@ -285,13 +285,13 @@ function darkroom(tab)
 
		end;
 
		
 
		if (life) then
 
			life(s);
 
		end;
 
	end;
 
	if (not tab.dsc) then
 
	if not tab.dsc then
 
		tab.dsc = function(s)
 
			local lt;
 
            local hasLight = EngineUtils.getValue(s.has_light, s);
 
            local plLight = EngineUtils.getValue(me().has_light, pl);
 
			if (hasLight) then
 
				lt = EngineUtils.getValue(s.dsc_lit);
0 comments (0 inline, 0 general)