Changeset - 3402e4921a35
[Not reviewed]
default
0 1 0
silverwing - 5 years ago 2019-10-06 12:07:51

[fix] Issues in fight with rayfish
1 file changed with 25 insertions and 4 deletions:
0 comments (0 inline, 0 general)
atlantis_iyhehevjiarr.lua
Show inline comments
 
@@ -135,6 +135,18 @@ iyh_fight = room {
 
    entered = function(s)
 
        s.temple_distance = s.distance;
 
        s.shockfish_health = 100;
 
 
        if submarine_leviathan.torpedoes > 0 then
 
            iyh_fight_torpedo:enable();
 
        else
 
            iyh_fight_torpedo:disable();
 
        end;
 
 
        if submarine_leviathan.torpedoes == 2 then
 
            iyh_fight_recharge:disable();
 
        else
 
            iyh_fight_recharge:enable();
 
        end;
 
    end;
 
    hideinv = true;
 
    forcedsc = true;
 
@@ -145,15 +157,12 @@ iyh_fight = room {
 
        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
 
            pr "только один из торпедных аппаратов заряжен. ";
 
        else
 
            iyh_fight_recharge:enable();
 
            iyh_fight_torpedo:disable();
 
            pr "у вас не осталось заряженных торпед. ";
 
        end;
 
        if (submarine_leviathan.electric_integrity < 30) then
 
@@ -168,6 +177,18 @@ iyh_fight = room {
 
        end;
 
    end;
 
    maketurn = function(s)
 
        if submarine_leviathan.torpedoes > 0 then
 
            iyh_fight_torpedo:enable();
 
        else
 
            iyh_fight_torpedo:disable();
 
        end;
 
 
        if submarine_leviathan.torpedoes == 2 then
 
            iyh_fight_recharge:disable();
 
        else
 
            iyh_fight_recharge:enable();
 
        end;
 
 
        if (s.distance > 1000 or s.distance < -1000) then
 
            if (s.shockfish_health < 20 or atl_iyh_entrance_destroyed) then
 
                pr "Скат уплывает и вы остаетесь одни. ";
0 comments (0 inline, 0 general)