Changeset - a0a7ef7b5186
[Not reviewed]
default
0 1 0
Silverwing - 5 years ago 2019-07-08 08:33:51

#0000010 Add notes on leviathan state in battle with kraken
1 file changed with 8 insertions and 6 deletions:
0 comments (0 inline, 0 general)
journey_temple.lua
Show inline comments
 
@@ -1107,10 +1107,6 @@ dt_fight = room {
 
        if (bl < 0) then
 
            bl = bl + 8;
 
        end;
 
--        for i = 1, #s.tentacles do
 
--            pr(s.tentacles[i].hp .. " ");
 
--        end;
 
--        pr("^");
 
        pr [[Щупальца кракена тянутся к Левиафану. ]];
 
        for i = 1, #s.tentacles do 
 
            if (s.tentacles[i].hp > 0 and s.tentacles[i].dir == s.dir and s.tentacles[i].away == 0) then
 
@@ -1269,9 +1265,15 @@ dt_fight = room {
 
            dt_f_torpedo:disable();
 
            dt_f_sonic:disable();
 
        end;
 
        
 
        if (submarine_leviathan.hull_integrity <= 0) then
 

	
 
        if submarine_leviathan.hull_integrity <= 0 then
 
            walk("game_over_kraken");
 
        elseif submarine_leviathan.hull_integrity <= 25 then
 
            pr [[Левиафан серьезно поврежден, целостность внешней обшивки нарушена. ]];
 
        elseif submarine_leviathan.hull_integrity <= 50 then
 
            pr [[Левиафан серьезно поврежден. ]];
 
        elseif submarine_leviathan.hull_integrity <= 75 then
 
            pr [[Левиафан получил незначительные повреждения. ]];
 
        end;
 
    end;
 
    obj = {
0 comments (0 inline, 0 general)