Changeset - 4870dbdba409
[Not reviewed]
default
0 1 0
Silverwing - 5 years ago 2019-06-16 20:59:44

Small fixes to battle with rayfish
1 file changed with 3 insertions and 4 deletions:
0 comments (0 inline, 0 general)
atlantis_iyhehevjiarr.lua
Show inline comments
 
@@ -163,14 +163,14 @@ iyh_fight = room {
 
    hideinv = true;
 
    forcedsc = true;
 
    leviathan = true;
 
    nosave = true;
 
    noautosave = true;
 
    dsc = function(s)
 
        pr("Вы находитесь от ската на расстоянии около "..tostring(s.distance).." метров. ");
 
        pr("Храм находится примерно на расстоянии " .. tostring(s.temple_distance) .. " метров. ");
 
        pr("Вы находитесь от ската на расстоянии около "..tostring(math.abs(s.distance)).." метров. ");
 
        pr("Храм находится примерно на расстоянии " .. tostring(math.abs(s.temple_distance)) .. " метров. ");
 
        pr("На приборной панели вы видите, что ");
 
        iyh_fight_torpedo:enable();
 
        iyh_fight_recharge:disable();
 
        if (submarine_leviathan.torpedoes == 2) then
 
            pr "оба торпедных аппапата заряжены и готовы к бою. ";
 
        elseif (submarine_leviathan.torpedoes == 1) then
 
@@ -189,17 +189,16 @@ iyh_fight = room {
 
            pr "Обшивка Левиафана сильно повреждена. ";
 
        elseif (submarine_leviathan.hull_integrity < 70) then
 
            pr "Обшивка Левиафана повреждена. ";
 
        end;
 
    end;
 
    maketurn = function(s)
 
        if (s.distance > 1000) then
 
        if (s.distance > 1000 or s.distance < -1000) then
 
            if (s.shockfish_health < 20 or atl_iyh_entrance_destroyed) then
 
                pr "Скат уплывает и вы остаетесь одни. ";
 
                atl_iyh_shockfish_left = true;
 
                s.shockfish_health = 100;
 
                submarine_leviathan.hull_integrity = 100;
 
                submarine_leviathan.electric_integrity = 100;
 
                submarine_leviathan.torpedoes = 2;
 
                walk("iyh_far_from_entrance");
 
            else
 
                pr "Вы удаляетесь достаточно далеко и скат возвращается к себе в жилище. ";
0 comments (0 inline, 0 general)