Changeset - 6132c713682c
[Not reviewed]
snapshots
0 1 0
Silverwing - 5 years ago 2019-07-11 20:13:38

Fix deep temple
1 file changed with 26 insertions and 26 deletions:
0 comments (0 inline, 0 general)
journey_temple.lua
Show inline comments
 
@@ -446,7 +446,7 @@ dt_temple_ravine = room {
 
    view = [[Вы находитесь в лабиринте ущелий и впадин. на северо-востоке вы видите глубокую расщелину, простирающуюся с северо-запада на юго-восток. над расщелиной висит узкий каменный мостик. Из отверстия в скале напротив него исходит яркий свет. ]];
 
    way = {
 
        kh_vroom("В Левиафан", function(s)
 
            if dt_temple_bridge1.state == 2 then
 
            if dt_temple_bridge1.state == 2 and not dt_temple_done then
 
                dt_temple_done = true;
 
                return 'dt_fight_intro';
 
            else
 
@@ -650,7 +650,7 @@ dt_term1 = obj {
 
    nam = "dt_term1";
 
    dsc = "{Нажать фиолетовую кнопку}^";
 
    act = function(s)
 
        if (ArrayUtils.indexOf(dt_buttons, 1) ~= 0 or not dt_wires_room.connections[1]) then
 
        if (ArrayUtils.indexOf(dt_buttons, 1) ~= 0 or dt_wires_room.connections[1] == 0) then
 
            return "Вы нажимаете на кнопку, но ничего не происходит. ";
 
        else
 
            table.insert(dt_terminal_room.code, dt_wires_room.connections[1]);
 
@@ -664,7 +664,7 @@ dt_term2 = obj {
 
    nam = "dt_term2";
 
    dsc = "{Нажать синюю кнопку}^";
 
    act = function(s)
 
        if (ArrayUtils.indexOf(dt_buttons, 2) ~= 0 or not dt_wires_room.connections[2]) then
 
        if (ArrayUtils.indexOf(dt_buttons, 2) ~= 0 or dt_wires_room.connections[2] == 0) then
 
            return "Вы нажимаете на кнопку, но ничего не происходит. ";
 
        else
 
            table.insert(dt_terminal_room.code, dt_wires_room.connections[2]);
 
@@ -678,7 +678,7 @@ dt_term3 = obj {
 
    nam = "dt_term3";
 
    dsc = "{Нажать зеленую кнопку}^";
 
    act = function(s)
 
        if (ArrayUtils.indexOf(dt_buttons, 3) ~= 0 or not dt_wires_room.connections[3]) then
 
        if (ArrayUtils.indexOf(dt_buttons, 3) ~= 0 or dt_wires_room.connections[3] == 0) then
 
            return "Вы нажимаете на кнопку, но ничего не происходит. ";
 
        else
 
            table.insert(dt_terminal_room.code, dt_wires_room.connections[3]);
 
@@ -692,7 +692,7 @@ dt_term4 = obj {
 
    nam = "dt_term4";
 
    dsc = "{Нажать желтую кнопку}^";
 
    act = function(s)
 
        if (ArrayUtils.indexOf(dt_buttons, 4) ~= 0 or not dt_wires_room.connections[4]) then
 
        if (ArrayUtils.indexOf(dt_buttons, 4) ~= 0 or dt_wires_room.connections[4] == 0) then
 
            return "Вы нажимаете на кнопку, но ничего не происходит. ";
 
        else
 
            table.insert(dt_terminal_room.code, dt_wires_room.connections[4]);
 
@@ -706,7 +706,7 @@ dt_term5 = obj {
 
    nam = "dt_term5";
 
    dsc = "{Нажать оранжевую кнопку}^";
 
    act = function(s)
 
        if (ArrayUtils.indexOf(dt_buttons, 5) ~= 0 or not dt_wires_room.connections[5]) then
 
        if (ArrayUtils.indexOf(dt_buttons, 5) ~= 0 or dt_wires_room.connections[5] == 0) then
 
            return "Вы нажимаете на кнопку, но ничего не происходит. ";
 
        else
 
            table.insert(dt_terminal_room.code, dt_wires_room.connections[5]);
 
@@ -720,7 +720,7 @@ dt_term6 = obj {
 
    nam = "dt_term6";
 
    dsc = "{Нажать красную кнопку}^";
 
    act = function(s)
 
        if (ArrayUtils.indexOf(dt_buttons, 6) ~= 0 or not dt_wires_room.connections[6]) then
 
        if (ArrayUtils.indexOf(dt_buttons, 6) ~= 0 or dt_wires_room.connections[6] == 0) then
 
            return "Вы нажимаете на кнопку, но ничего не происходит. ";
 
        else
 
            table.insert(dt_terminal_room.code, dt_wires_room.connections[6]);
 
@@ -749,7 +749,7 @@ dt_wires_room = dlg {
 
            5,
 
            6
 
        };
 
        selected = nil;
 
        selected = false;
 
    };
 
    not_follow = true;
 
    nam = "dt_wires_room";
 
@@ -782,7 +782,7 @@ dt_wires_room = dlg {
 
            tag = "w0", always = true, 
 
            function(s)
 
                local connect = "не подключен";
 
                if (dt_wires_room.connections[1] ~= nil) then
 
                if (dt_wires_room.connections[1] ~= 0) then
 
                    connect = dt_wire_colors[dt_wires_room.connections[1]] .. " разъем";
 
                    return "Отсоединить фиолетовый провод (".. connect .. ")";
 
                else
 
@@ -790,8 +790,8 @@ dt_wires_room = dlg {
 
                end;
 
                
 
            end, function(s)
 
                if (dt_wires_room.connections[1] ~= nil) then
 
                    dt_wires_room.connections[1] = nil;
 
                if (dt_wires_room.connections[1] ~= 0) then
 
                    dt_wires_room.connections[1] = 0;
 
                    return "Вы отсоединяете провод";
 
                else
 
                    dt_wires_room.selected = 1;
 
@@ -804,7 +804,7 @@ dt_wires_room = dlg {
 
            tag = "w1", always = true, 
 
            function(s)
 
                local connect = "не подключен";
 
                if (dt_wires_room.connections[2] ~= nil) then
 
                if (dt_wires_room.connections[2] ~= 0) then
 
                    connect = dt_wire_colors[dt_wires_room.connections[2]] .. " разъем";
 
                    return "Отсоединить синий провод (".. connect .. ")";
 
                else
 
@@ -812,8 +812,8 @@ dt_wires_room = dlg {
 
                end;
 
                
 
            end, function(s)
 
                if (dt_wires_room.connections[2] ~= nil) then
 
                    dt_wires_room.connections[2] = nil;
 
                if (dt_wires_room.connections[2] ~= 0) then
 
                    dt_wires_room.connections[2] = 0;
 
                    return "Вы отсоединяете провод";
 
                else
 
                    dt_wires_room.selected = 2;
 
@@ -826,7 +826,7 @@ dt_wires_room = dlg {
 
            tag = "w2", always = true, 
 
            function(s)
 
                local connect = "не подключен";
 
                if (dt_wires_room.connections[3] ~= nil) then
 
                if (dt_wires_room.connections[3] ~= 0) then
 
                    connect = dt_wire_colors[dt_wires_room.connections[3]] .. " разъем";
 
                    return "Отсоединить зеленый провод (".. connect .. ")";
 
                else
 
@@ -834,8 +834,8 @@ dt_wires_room = dlg {
 
                end;
 
                
 
            end, function(s)
 
                if (dt_wires_room.connections[3] ~= nil) then
 
                    dt_wires_room.connections[3] = nil;
 
                if (dt_wires_room.connections[3] ~= 0) then
 
                    dt_wires_room.connections[3] = 0;
 
                    return "Вы отсоединяете провод";
 
                else
 
                    dt_wires_room.selected = 3;
 
@@ -848,7 +848,7 @@ dt_wires_room = dlg {
 
            tag = "w3", always = true, 
 
            function(s)
 
                local connect = "не подключен";
 
                if (dt_wires_room.connections[4] ~= nil) then
 
                if (dt_wires_room.connections[4] ~= 0) then
 
                    connect = dt_wire_colors[dt_wires_room.connections[4]] .. " разъем";
 
                    return "Отсоединить желтый провод (".. connect .. ")";
 
                else
 
@@ -856,8 +856,8 @@ dt_wires_room = dlg {
 
                end;
 
                
 
            end, function(s)
 
                if (dt_wires_room.connections[4] ~= nil) then
 
                    dt_wires_room.connections[4] = nil;
 
                if (dt_wires_room.connections[4] ~= 0) then
 
                    dt_wires_room.connections[4] = 0;
 
                    return "Вы отсоединяете провод";
 
                else
 
                    dt_wires_room.selected = 4;
 
@@ -870,7 +870,7 @@ dt_wires_room = dlg {
 
            tag = "w4", always = true, 
 
            function(s)
 
                local connect = "не подключен";
 
                if (dt_wires_room.connections[5] ~= nil) then
 
                if (dt_wires_room.connections[5] ~= 0) then
 
                    connect = dt_wire_colors[dt_wires_room.connections[5]] .. " разъем";
 
                    return "Отсоединить оранжевый провод (".. connect .. ")";
 
                else
 
@@ -878,8 +878,8 @@ dt_wires_room = dlg {
 
                end;
 
                
 
            end, function(s)
 
                if (dt_wires_room.connections[5] ~= nil) then
 
                    dt_wires_room.connections[5] = nil;
 
                if (dt_wires_room.connections[5] ~= 0) then
 
                    dt_wires_room.connections[5] = 0;
 
                    return "Вы отсоединяете провод";
 
                else
 
                    dt_wires_room.selected = 5;
 
@@ -892,7 +892,7 @@ dt_wires_room = dlg {
 
            tag = "w5", always = true, 
 
            function(s)
 
                local connect = "не подключен";
 
                if (dt_wires_room.connections[6] ~= nil) then
 
                if (dt_wires_room.connections[6] ~= 0) then
 
                    connect = dt_wire_colors[dt_wires_room.connections[6]] .. " разъем";
 
                    return "Отсоединить красный провод (".. connect .. ")";
 
                else
 
@@ -900,8 +900,8 @@ dt_wires_room = dlg {
 
                end;
 
                
 
            end, function(s)
 
                if (dt_wires_room.connections[6] ~= nil) then
 
                    dt_wires_room.connections[6] = nil;
 
                if (dt_wires_room.connections[6] ~= 0) then
 
                    dt_wires_room.connections[6] = 0;
 
                    return "Вы отсоединяете провод";
 
                else
 
                    dt_wires_room.selected = 6;
0 comments (0 inline, 0 general)