Changeset - 6d1c26ddce2b
[Not reviewed]
default
0 4 0
silverwing - 7 years ago 2017-06-24 10:59:03

Suit now has lamp
4 files changed with 32 insertions and 12 deletions:
0 comments (0 inline, 0 general)
atlantis_iyhehevjiarr.lua
Show inline comments
 
@@ -712,9 +712,9 @@ iyh_rear_entrance_foot = room {
 
			char_anna:accompany(false);
 
		end;
 
		
 
		way("В Левиафан"):disable();
 
		path("В Левиафан"):disable();
 
		if (where(submarine_leviathan) == here()) then
 
			way("В Левиафан"):enable();
 
			path("В Левиафан"):enable();
 
		end;
 
	end;
 
};
items.lua
Show inline comments
 
@@ -585,7 +585,7 @@ item_talk_device = obj {
 
item_suit = suit {
 
	dlg = "call_leviathan";
 
	nam = "Скафандр";
 
    has_coder = true;   
 
    has_coder = true;
 
};
 
 
item_deep_key = obj {
main.lua
Show inline comments
 
@@ -178,11 +178,16 @@ function init()
 
        table.insert(dt_buttons, nums[index]);
 
        table.remove(nums, index);
 
    end;
 
	---game init
 
	pl.where = intro;
 
	---debug	
 
    ---game init
 
    pl.where = intro;
 
    ---debug	
 
    pl.where = "iyh_rear_entrance_foot";
 
    move(submarine_leviathan, "iyh_rear_entrance_foot");
 
    put(item_suit, pl);
 
    --put(item_suit, pl);
 
 
    --pl.where = "atlantis_intro_dock";
 
    
 
 
    ---leviathan
 
    --pl.where = "leviathan_airlock";
 
    --submarine_leviathan.airpump = false;
utils.lua
Show inline comments
 
@@ -758,9 +758,9 @@ end;
 
	]];
 
    entered = function(s)
 
        if (s._item.has_coder) then
 
            pon(2);
 
            pon(3);
 
        else
 
            poff(2);
 
            poff(3);
 
        end;
 
    end;   
 
	phr = {
 
@@ -774,8 +774,23 @@ end;
 
				return "Никто не отвечает";
 
			end;
 
		end};
 
        {2, always = "true", "Использовать кодировщик", code [[ walkin("_atlantis_coder"); ]]};
 
		{3, always = "true", "Снять скафандр", function(s)
 
        {2, always = "true", function(s)
 
            if (pl.has_light) then
 
                return "Выключить фонарь";
 
            else
 
                return "Включить фонарь";
 
            end;
 
        end, function(s)
 
            if (pl.has_light) then
 
                pl.has_light = false;
 
                return "Вы выключаете фонарь. ";
 
            else
 
                pl.has_light = true;
 
                return "Вы включаете фонарь. ";
 
            end;
 
        end};
 
        {3, always = "true", "Использовать кодировщик", code [[ walkin("_atlantis_coder"); ]]};
 
		{4, always = "true", "Снять скафандр", function(s)
 
			if (EngineUtils.getValue(_atlantis_suit_menu._item.cantakeoff, _atlantis_suit_menu._item)) then
 
				drop(_atlantis._uit_menu._item);
 
				back();
 
@@ -785,7 +800,7 @@ end;
 
				return "Вы не можете снять скафандр сейчас";
 
			end;
 
		end};
 
		{4, always = "true", "Отмена", function(s)
 
		{5, always = "true", "Отмена", function(s)
 
			back();
 
			return "";
 
		end};
0 comments (0 inline, 0 general)