Changeset - 29c36ff9be13
[Not reviewed]
default
0 1 0
Silverwing - 6 years ago 2018-12-20 17:53:28

leviathan - fix errors while trying to control leviathan in certain locations
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
leviathan.lua
Show inline comments
 
@@ -771,193 +771,193 @@ end;
 
 
leviathan_wheelhouse_wiring = obj {
 
    var {
 
        state = 2;
 
    };
 
	nam = "leviathan_wheelhouse_wiring";
 
	dsc = leviathan_wiring_dsc;
 
	act = leviathan_wiring_act;
 
	used = leviathan_wiring_used;
 
	seen_level = 1;
 
};
 
 
leviathan_wardroom_wiring = obj {
 
    var {
 
        state = 2;
 
    };
 
	nam = "leviathan_wardroom_wiring";
 
	dsc = leviathan_wiring_dsc;
 
	act = leviathan_wiring_act;
 
	used = leviathan_wiring_used;
 
	seen_level = 1;
 
};
 
 
leviathan_engineering_wiring = obj {
 
    var {
 
        state = 2;
 
    };
 
	nam = "leviathan_engineering_wiring";
 
	dsc = leviathan_wiring_dsc;
 
	act = leviathan_wiring_act;
 
 	used = leviathan_wiring_used;
 
	seen_level = 1;
 
};
 
 
leviathan_cargo_wiring = obj {
 
    var {
 
        state = 2;
 
    };
 
	nam = "leviathan_cargo_wiring";
 
	dsc = leviathan_wiring_dsc;
 
	act = leviathan_wiring_act;
 
	used = leviathan_wiring_used;
 
	seen_level = 1;
 
};
 
 
leviathan_corridor_wiring = obj {
 
    var {
 
        state = 2;
 
    };
 
	nam = "leviathan_corridor_wiring";
 
	dsc = leviathan_wiring_dsc;
 
	act = leviathan_wiring_act;
 
	used = leviathan_wiring_used;
 
	seen_level = 1;
 
};
 
 
leviathan_lower_wiring = obj {
 
    var {
 
        state = 2;
 
    };
 
	nam = "leviathan_lower_wiring";
 
	dsc = leviathan_wiring_dsc;
 
	act = leviathan_wiring_act;
 
	used = leviathan_wiring_used;
 
	seen_level = 1;
 
};
 
 
leviathan_life_wiring = obj {
 
    var {
 
        state = 2;
 
    };
 
	nam = "leviathan_life_wiring";
 
	dsc = leviathan_wiring_dsc;
 
	act = leviathan_wiring_act;
 
	used = leviathan_wiring_used;
 
	seen_level = 1;
 
};
 
 
leviathan_wiring = {
 
	leviathan_wheelhouse_wiring;
 
	leviathan_wardroom_wiring;
 
	leviathan_engineering_wiring;
 
	leviathan_cargo_wiring;
 
	leviathan_corridor_wiring;
 
	leviathan_lower_wiring;
 
	leviathan_life_wiring;
 
};
 
 
leviathan_dlg = dlg {
 
	nam = "leviathan_dlg";
 
	disp = "Левиафан, рубка";
 
	dsc = function()
 
		local view = "";
 
		if (type(where(submarine_leviathan).view) == "function") then
 
			view = where(submarine_leviathan):view();
 
		else
 
			view = where(submarine_leviathan).view();
 
			view = where(submarine_leviathan).view;
 
		end;
 
		
 
		return [[Вы находитесь в рубке Левиафана перед штурвалом. Отсюда вы можете направиться куда-нибудь. Яркий свет электрических ламп освещает помещение. ]] .. (view);
 
	end;
 
	update_options = function()
 
		leviathan_dlg:poff("atlantis", "old_temple", "iraaphaanotrr", "iraaphaanotrr_temple", "dypatreanotrr", "dypatreanotrr_temple", "venaedanotrr", 'venaedanotrr_ravine', 'venaedanotrr_temple');
 
		if (atlantis_found and where(submarine_leviathan) ~= atl_aqua_leviathan_dock) then
 
			leviathan_dlg:pon("atlantis");
 
		end;
 
		if (temple_found and where(submarine_leviathan) ~= iyh_far_from_entrance_foot) then
 
			leviathan_dlg:pon("old_temple");
 
		end;	
 
        if (iraaphaanotrr_found and where(submarine_leviathan) ~= iraa_near_city_west) then
 
            leviathan_dlg:pon("iraaphaanotrr");
 
        end;
 
        if (dypatreanotrr_found and where(submarine_leviathan) ~= dyp_center) then
 
            leviathan_dlg:pon("dypatreanotrr");
 
        end;
 
		if (dypatreanotrr_night_found and where(submarine_leviathan) ~= dyp_night_center) then
 
			leviathan_dlg:pon("dypatreanotrr_night");
 
		end;
 
        if (iraaphaanotrr_temple_found and where(submarine_leviathan) ~= ctt_iraa_near_temple) 		then
 
			leviathan_dlg:pon("iraaphaanotrr_temple");
 
		end;
 
		if (dypatreanotrr_temple_found and where(submarine_leviathan) ~= dyp_temple_entrance) then
 
			leviathan_dlg:pon("dypatreanotrr_temple");
 
		end;
 
		if venaedanotrr_found and where(submarine_leviathan) ~= ven_center then
 
			leviathan_dlg:pon("venaedanotrr");
 
		end;
 
		if venaedanotrr_ravine_found and where(submarine_leviathan) ~= ven_ravine_entrance then
 
			leviathan_dlg:pon("venaedanotrr_ravine");
 
		end;
 
		if venaedanotrr_temple_found and where(submarine_leviathan) ~= ven_temple_entrance then
 
			leviathan_dlg:pon("venaedanotrr_temple");
 
		end;
 
		if nleyyslanotrr_found and where(submarine_leviathan) ~= nley_near_cliff_1 then
 
			leviathan_dlg:pon('nleyyslanotrr')
 
		end;
 
		if deep_temple_found and where(submarine_leviathan) ~= dt_labyrinth_foot then
 
			leviathan_dlg:pon('deep_temple')
 
		end;
 
		if lseryanotrr_found then
 
			leviathan_dlg:pon('lseryanotrr')
 
		end;
 
	end;
 
	enter = function(s)
 
		s.update_options();
 
	end;
 
	phr = {
 
		{tag="atlantis", always = "true", "Атлантида", function()
 
			move(submarine_leviathan, "atl_aqua_leviathan_dock");
 
			if raybox_task then
 
				raybox_task_finished = true;
 
			end;
 
			leviathan_dlg:update_options();
 
            walk(atl_entry);
 
		end},
 
		{tag="old_temple", always = "true", "Старый храм", function()
 
			return "Вы прибыли в старый храм";
 
		end, function()
 
			if raybox_task then
 
				raybox_task_finished = true;
 
			end;
 
			move(submarine_leviathan, "iyh_far_from_entrance_foot");
 
			leviathan_dlg:update_options();
 
			walk(ancient_temple_intro);
 
		end},
 
		{tag="iraaphaanotrr", always = "true", "Ираафаанотр", function()
 
			if raybox_task then
 
				raybox_task_finished = true;
 
			end;
 
            move(submarine_leviathan, "iraa_near_city_west");
 
            leviathan_dlg:update_options();      
 
			walk(iraa_entry);
 
		end},
 
		{tag="iraaphaanotrr_temple", always = "true", "Храм Ираафаанотра", function()
 
			if raybox_task then
 
				raybox_task_finished = true;
 
			end;
 
			move(submarine_leviathan, "iraa_temple_entrance");
 
            leviathan_dlg:update_options();      
 
            walk(iraa_temple_entry);
 
		end},
 
		{tag="dypatreanotrr", always = "true", "Дипатреанотр", function()
 
			if raybox_task then
 
				raybox_task_finished = true;
 
			end;
 
			move(submarine_leviathan, "dyp_center");
 
            leviathan_dlg:update_options();      
 
            walk(dyp_entry);
 
		end},
 
		{tag="dypatreanotrr_night", always = "true", "Дипатреанотр, ночь", function()
 
			if raybox_task then
 
				raybox_task_finished = true;
 
			end;
0 comments (0 inline, 0 general)