Changeset - d7dafdd92565
[Not reviewed]
default
0 3 0
Silverwing - 8 years ago 2016-07-31 12:11:52

Some bugfixes
3 files changed with 30 insertions and 52 deletions:
0 comments (0 inline, 0 general)
atlantis.lua
Show inline comments
 
@@ -102,6 +102,9 @@ atl_aqua_leviathan_dock = room {
 
	dsc = [[
 
		Просторное помещение, предназнавенное для размещения субмарин, прибывающих на станцию. В настоящий момент в этом доке расположен Левиафан. Под потолком, на высоте примерно в 5 метров укреплены специальные балки, по которым могут свободно перемещаться крюки подъемных кранов. Снизу, под водой, расположен огромный люк, закрывающий доступ внутрь дока. Несколько легких мостиков сконструированы таким образом, чтобы их расположение легко можно было изменить для удобства работы и обслуживания субмарин. 
 
	]];
 
	view = [[
 
		Левиафан находится в просторном доке. Под потолком на высоте 5 метров укреплены балки, по которым могут перемещаться крюки подъемных кранов. Внизу расположен закрытый люк, закрывающий вам путь наружу. 
 
	]];
 
	way = {
 
		kh_vroom("В коридор B", "atl_aqua_corridor_b");
 
	};
main.lua
Show inline comments
 
@@ -210,6 +210,7 @@ function init()
 
	leviathan_life_support.has_light = true;
 
	
 
	pl.party = {'wright'};
 
	lifeon(char_wright);
 
	put(item_toolbox, pl);
 
	put(item_ducttape, pl);
 
	pl.where = "leviathan_airlock";
party.lua
Show inline comments
 
party_accompany = function(s, value)
 
	if (ArrayUtils.indexOf(pl.party, s.nam) == 0) then
 
		return;
 
	end;
 
	s.follow = value;
 
	if (value) then
 
		lifeon(s);
 
	else
 
		move(s, s.home, where(s));
 
		lifeoff(s);
 
	end;
 
end;
 
 
-- TODO больше отвлеченных диалогов, дабы было о чем поговорить с сопартийцами. Не стоит делать их деревянными безжизненными манекенами
 
char_learr = obj {
 
	var {
 
@@ -17,16 +30,9 @@ char_learr = obj {
 
		end;
 
	end;
 
	home = "leviathan_wardroom";
 
	accompany = function(s, value)
 
		s.follow = value;
 
		if (value) then
 
			lifeon(s);
 
		else
 
			move(s, s.home, where(s));
 
			lifeoff(s);
 
		end;
 
	end;
 
	accompany = party_accompany;
 
	life = function(s)
 
		print("learr");
 
		if (where(pl).leviathan) then
 
			if (stead.nameof(where(s)) ~= s.home) then
 
				move(s, s.home, where(s));
 
@@ -62,15 +68,7 @@ char_phaetlarr = obj {
 
		end;
 
	end;
 
	home = "leviathan_engines";
 
	accompany = function(s, value)
 
		s.follow = value;
 
		if (value) then
 
			lifeon(s);
 
		else
 
			move(s, s.home, where(s));
 
			lifeoff(s);
 
		end;
 
	end;
 
	accompany = party_accompany;
 
	life = function(s)
 
		if (where(pl).leviathan) then
 
			if (stead.nameof(where(s)) ~= s.home) then
 
@@ -107,15 +105,7 @@ char_radcliffe = obj {
 
		end;
 
	end;
 
	home = "leviathan_engines";
 
	accompany = function(s, value)
 
		s.follow = value;
 
		if (value) then
 
			lifeon(s);
 
		else
 
			move(s, s.home, where(s));
 
			lifeoff(s);
 
		end;
 
	end;
 
	accompany = party_accompany;
 
	life = function(s)
 
		if (where(pl).leviathan) then
 
			if (stead.nameof(where(s)) ~= s.home) then
 
@@ -152,25 +142,17 @@ char_wright = obj {
 
		end;
 
	end;
 
	home = "leviathan_wardroom";
 
	accompany = function(s, value)
 
		s.follow = value;
 
		if (value) then
 
			lifeon(s);
 
		else
 
			move(s, s.home, where(s));
 
			lifeoff(s);
 
		end;
 
	end;
 
	accompany = party_accompany;
 
	life = function(s)
 
		print("wright");
 
		--print("wright");
 
		if (where(pl).leviathan) then
 
			print("wright:leviathan");
 
			--print("wright:leviathan");
 
			if (stead.nameof(where(s)) ~= s.home) then
 
				print("wright:goinghome");
 
				--print("wright:goinghome");
 
				move(s, s.home, where(s));
 
			end;
 
		else
 
			print("wright:following");
 
			--print("wright:following");
 
			move(s, where(pl), where(s));
 
		end;
 
	end;
 
@@ -201,15 +183,7 @@ char_anna = obj {
 
		end;
 
	end;
 
	home = "leviathan_wardroom";
 
	accompany = function(s, value)
 
		s.follow = value;
 
		if (value) then
 
			lifeon(s);
 
		else
 
			move(s, s.home, where(s));
 
			lifeoff(s);
 
		end;
 
	end;
 
	accompany = party_accompany;
 
	life = function(s)
 
		if (where(pl).leviathan) then
 
			if (stead.nameof(where(s)) ~= s.home) then
 
@@ -339,7 +313,7 @@ radcliffe_home_dlg = dlg {
 
			poff("on_iyh");
 
		end;
 
	
 
		if (char_learr.follow) then
 
		if (char_radcliffe.follow) then
 
			pon('stay');
 
			poff('join');
 
		else
 
@@ -399,7 +373,7 @@ wright_home_dlg = dlg {
 
			poff("on_iyh");
 
		end;
 
	
 
		if (char_learr.follow) then
 
		if (char_wright.follow) then
 
			pon('stay');
 
			poff('join');
 
		else
 
@@ -433,7 +407,7 @@ wright_home_dlg = dlg {
 
		};
 
		{ tag = "stay", always = "true", "Оставайся на Левиафане", "Хорошо", 
 
			function()
 
				char_wright.accompany(char_wright, false);
 
				char_wright:accompany(false);
 
				pon('join');
 
				poff('stay');
 
			end;
0 comments (0 inline, 0 general)