Changeset - 8d874d4e5068
[Not reviewed]
default
0 2 0
Silverwing - 5 years ago 2019-06-16 19:50:35

Fix dialog with learr aboard Leviathan
2 files changed with 17 insertions and 9 deletions:
0 comments (0 inline, 0 general)
atlantis_dyp.lua
Show inline comments
 
@@ -201,7 +201,7 @@ dyp_obelisk_puzzle = room {
 
        end;
 
        return p;
 
    end;
 
    dsc = [[У самого основания обелиска вы видите небольшое изображение, вырезанное в камне. Некогда оно было разрезано на шестнадцать частей, а части перепутаны между собой. ]];
 
    dsc = [[У самого основания обелиска вы видите небольшое изображение, вырезанное в камне. Оно разрезано на шестнадцать частей, а части перепутаны между собой. ]];
 
    click = function(s, x, y)
 
        local ty = math.floor(x / 40);
 
        local tx = 3 - math.floor(y / 40);
party.lua
Show inline comments
 
@@ -33,7 +33,11 @@ char_learr = obj {
 
        on_before = 0;
 
        on_atlantis = 0;
 
        on_conflict = 0;
 
        on_obelisks = 0;
 
        on_temples = 0;
 
        on_venaedanotrr = 0;
 
        on_nleyyslanotrr = 0;
 
        on_deep_temple = 0;
 
	};
 
	nam = "learr";
 
	disp = "Леарр";
 
@@ -266,7 +270,7 @@ learr_home_dlg = dlg {
 
    };
 
	nam = "Леарр";
 
	entered = function(s)
 
        poff("on_books", "on_join", "on_before", "on_atlantis", "talk");
 
        poff("on_obelisks", "on_deep_temple", "on_nleyyslanotrr", "on_venaedanotrr", "on_temples", "on_books", "on_join", "on_before", "on_atlantis", "talk");
 
        if s.home then
 
            if (rel_learr < 0) then
 
                pon("talk");
 
@@ -275,31 +279,35 @@ learr_home_dlg = dlg {
 
                    pon("on_books");
 
                    pon("talk");
 
                end;]]
 
                if (char_learr.on_join < 2) then
 
                if char_learr.on_join < 2 then
 
                    pon("on_join");
 
                    pon("talk");
 
                end;
 
                if (char_learr.on_before < 2) then
 
                if char_learr.on_before < 2 then
 
                    pon("on_before");
 
                    pon("talk");
 
                end;
 
                if (char_learr.on_atlantis < 2) then
 
                if char_learr.on_atlantis < 2 then
 
                    pon("on_atlantis");
 
                    pon("talk");
 
                end;
 
                if (char_learr.on_temples < 2 and atl_navjiarr_temple_seen) then
 
                if char_learr.on_obelisks < 2 and atl_navjiarr_obelisks_seen then
 
                    pon("on_obelisks");
 
                    pon('talk');
 
                end;
 
                if char_learr.on_temples < 2 and atl_navjiarr_temple_seen then
 
                    pon("on_temples");
 
                    pon("talk");
 
                end;
 
                if (char_learr.on_venaedanotrr < 2 and nleyyslanotrr_found) then
 
                if char_learr.on_venaedanotrr < 2 and nleyyslanotrr_found then
 
                    pon("on_venaedanotrr");
 
                    pon("talk");
 
                end;
 
                if (char_learr.on_nleyyslanotrr < 2 and lseryanotrr_found) then
 
                if char_learr.on_nleyyslanotrr < 2 and lseryanotrr_found then
 
                    pon("on_nleyyslanotrr");
 
                    pon("talk");
 
                end;
 
                if (char_learr.on_deep_temple < 2 and dt_temple_done) then
 
                if char_learr.on_deep_temple < 2 and dt_temple_done then
 
                    pon("on_deep_temple");
 
                    pon("talk");
 
                end;
0 comments (0 inline, 0 general)