Changeset - be3e8004db47
[Not reviewed]
default
0 11 0
Silverwing - 5 years ago 2018-12-23 15:44:27

Whole game: Prints removed
11 files changed with 2 insertions and 54 deletions:
0 comments (0 inline, 0 general)
atlantis.lua
Show inline comments
 
@@ -1094,7 +1094,6 @@ atl_nih_tubes_gen = function(nam, dsc, t
 
        end;
 
        used = function(s, o)
 
            if s.broken and not s.fixed and o.is_tube and o.l == s.tube_len then
 
                print(s.tube_type, s.tube_d, o.t, o.d);
 
                local f = false;
 
                if o.t == s.tube_type and o.d == s.tube_d then
 
                    remove(o, pl);
 
@@ -1384,7 +1383,6 @@ disable_nih = function()
 
end;
 
 
function atlantis_init()
 
    print("init atl");
 
    for i = 1, #tubes_terra do
 
        put(tubes_terra[i], atl_nih_tube_container_inv);
 
    end;
atlantis_dyp.lua
Show inline comments
 
@@ -230,7 +230,6 @@ dyp_obelisk_puzzle = room {
 
        for i = 1, #s.state do
 
            f = f .. "," .. tostring(s.state[i]);
 
        end;
 
        print(f);
 
        if not s:check_win() then
 
            walkin(here());
 
        else
 
@@ -2244,9 +2243,7 @@ dyp_cmbt_learr = combatant {
 
        end);
 
        local enemy = enemies[1].o;
 
        local path = enemies[1].p;
 
        for i = 1,#enemies do
 
            print(enemies[i].p.l);
 
        end;
 

	
 
        -- AI Order:
 
        -- If has spear and enemy is far   - throw spear
 
        -- If has spear and enemy is close - hit with spear
 
@@ -2684,7 +2681,6 @@ dyp_king_crab = combatant {
 
            return;
 
        end;
 

	
 
        print("fug2",path);
 
        s.x = path.p[2][1];
 
        s.y = path.p[2][2];
 
        pn("Краб идет к " .. enemy.disp3 .. ". ");
 
@@ -2758,7 +2754,6 @@ dyp_little_crab = function(nam, index, x
 
                return;
 
            end;
 

	
 
            print("fug2",path);
 
            s.x = path.p[2][1];
 
            s.y = path.p[2][2];
 
            pn("Детеныш краба ".. tostring(index).. " идет к " .. enemy.disp3 .. ". ");
atlantis_iraa.lua
Show inline comments
 
@@ -368,9 +368,6 @@ iraa_temple_entrance = room {
 
            end;
 
        end);
 
        kh_vroom("В Левиафан", function(s)
 
            print(pl);
 
            print(player_learr);
 
            print(player_drake);
 
            if me() == player_learr and iraa_temple_hidden_pedestal.state == 0 then
 
                pr [[В голове Леарр проносится мысль: "Я еще не сделала все, что нужно". ]];
 
                return false;
 
@@ -485,7 +482,6 @@ iraa_temple_shark = obj {
 
        if (s.position > #s.cycle) then
 
            s.position = 1;
 
        end;
 
        print(s.position, s.cycle[s.position], here().index);
 
        if s.position == here().index then
 
            walk("game_over_eaten_by_shark");
 
        end;
 
@@ -499,7 +495,6 @@ iraa_temple_shark = obj {
 
        return [[Пронзенная гарпуном, акула умирает. ]];
 
    end;
 
    dsc = function(s)
 
        print("fungul");
 
        if s.alive then
 
            if here().index == 1 then
 
                if s.cycle[s.position] == 2 then
atlantis_iyhehevjiarr.lua
Show inline comments
 
@@ -621,7 +621,6 @@ iyh_labyrinth = room {
 
		end;
 
	end;
 
	update = function(s)
 
        print(s.position, s.direction);
 
        iyh_lab_forward:disable();
 
        iyh_lab_left:disable();
 
        iyh_lab_right:disable();
battlefield.lua
Show inline comments
 
@@ -176,7 +176,6 @@ battlefield = function(tab)
 
        local xc = 0;
 
        local yc = 0;
 
        local error = 0;
 
        print(dx, dy);
 
        if (dx > dy) then
 
            --horizontal line
 
            local y = 0;
 
@@ -205,7 +204,6 @@ battlefield = function(tab)
 
            --vertical line
 
            local x = 0;
 
            for y = 0, dy do
 
                print(x, y);
 
                if invx then
 
                    xc = x1 - x;
 
                else
 
@@ -216,7 +214,6 @@ battlefield = function(tab)
 
                else
 
                    yc = y1 + y;
 
                end;
 
                print(xc, yc);
 
                if ((xc ~= x1 or yc ~= y1) and not s:isShootable(xc, yc) and (xc ~= x2 or yc ~= y2)) then
 
                    return false;
 
                end;
journey_temple.lua
Show inline comments
 
@@ -1069,7 +1069,6 @@ dt_fight = room {
 
                local cd = rnd(#dirs);
 
                s.tentacles[i].dir = dirs[cd];
 
                table.remove(dirs, cd);
 
                print(#dirs);
 
            end;
 
        end;
 
    end;
 
@@ -1208,7 +1207,6 @@ dt_fight = room {
 
                            repeat 
 
                                newdir = rnd(8) - 1;
 
                            until ArrayUtils.indexOf(dirs, newdir) == 0;
 
                            print(newdir);
 
                            s.tentacles[i].dir = newdir;
 
                            
 
                            if (s.tentacles[i].hp <= 70) then
journey_venaedanotrr_labyrinth.lua
Show inline comments
 
@@ -39,21 +39,12 @@ ven_towers_machine_look = room {
 
            end;
 
        end;
 
        
 
        print("f");
 
        print(nums);
 
        print(numt);
 
        print("/f");
 
        
 
        if (not nums or numt and numt < nums) then
 
            rv = "Механизм издает легкий щелчок и ничего не происходит. ";
 
        else
 
            s.gears[nums] = target;
 
            rv = "Механизм издает легкий щелчок и одна из шестеренок перемещается на соседнюю ось. ";
 
        end;
 
        print(s.gears[1]);
 
        print(s.gears[2]);
 
        print(s.gears[3]);
 
        print(s.gears[4]);
 
        
 
        s.solved = true;
 
        for g = 1, #s.gears do
 
@@ -684,7 +675,6 @@ ven_shark = obj {
 
        end;
 
    end;
 
    used = function(s, o)
 
        print("fuck you dinosaur shark");
 
        if (o == item_ven_spear) then
 
            local no = ven_temple_labyrinth_l1.map[ven_temple_labyrinth_l1.position].e1;
 
            local ea = ven_temple_labyrinth_l1.map[ven_temple_labyrinth_l1.position].e2;
 
@@ -818,7 +808,6 @@ ven_first_lock = obj {
 
    nam = "ven_first_lock";
 
    dsc = "В двери вы видите {замочную скважину}. ";
 
    used = function(s, o)
 
        print "fuckersaurus"
 
        if (o == ven_item_temple_key_1) then
 
            remove(ven_item_temple_key_1, pl);
 
            ven_temple_labyrinth_l1.lock1 = false;
lse_confrontation.lua
Show inline comments
 
@@ -651,9 +651,6 @@ lse_cmbt_learr = combatant {
 
        end);
 
        local enemy = enemies[1].o;
 
        local path = enemies[1].p;
 
        for i = 1,#enemies do
 
            print(enemies[i].p.l);
 
        end;
 
        -- AI Order:
 
        -- If has spear and enemy is far   - throw spear
 
        -- If has spear and enemy is close - hit with spear
 
@@ -1084,7 +1081,6 @@ lse_cmbt_guard = function(nam, index, x,
 
                    return;
 
                end;
 
            end;
 
            print("fug2",path);
 
            s.x = path.p[2][1];
 
            s.y = path.p[2][2];
 
            pn("Стражник ".. tostring(index).. " идет к " .. enemy.disp3 .. ". ");
 
@@ -1615,8 +1611,6 @@ lse_timer = function(s)
 
        end;
 
    end;
 
    
 
    print("lse_guard1", lse_guard1.loc);
 
    
 
    if (lse_guard2.loc == "lse_inner_5") then
 
        lse_guard2.dir = 2;
 
        lse_guard2.loc = "lse_inner_6";
 
@@ -1668,8 +1662,6 @@ lse_timer = function(s)
 
        end;
 
    end;
 
    
 
    print("lse_guard2", lse_guard2.loc);
 
    
 
    if (loc == lse_guard1.loc or loc == lse_guard2.loc) then
 
        timer:stop();
 
        game.timer = nil;
lse_final_battle.lua
Show inline comments
 
@@ -126,8 +126,7 @@ lse_generator_update = function()
 
            cnt = cnt + 1;
 
        end;
 
    end;
 
    
 
    print(cnt);
 

	
 
    if (cnt == 0) then
 
        return;
 
    end;
 
@@ -168,7 +167,6 @@ lse_generator_update = function()
 
            c = "lse_gen_" .. tostring(c);
 
        end;
 
        while (stead.ref(c).broken or stead.ref(c).role) do
 
            print("d", c);
 
            c = rnd(10);
 
            if (c < 10) then
 
                c = "lse_gen_0" .. tostring(c);
 
@@ -189,7 +187,6 @@ lse_generator_update = function()
 
            c = "lse_gen_" .. tostring(c);
 
        end;
 
        while (stead.ref(c).broken or stead.ref(c).role) do
 
            print("a", c);
 
            c = rnd(10);
 
            if (c < 10) then
 
                c = "lse_gen_0" .. tostring(c);
 
@@ -210,7 +207,6 @@ lse_generator_update = function()
 
            c = "lse_gen_" .. tostring(c);
 
        end;
 
        while (stead.ref(c).broken or stead.ref(c).role) do
 
            print("b", c);
 
            c = rnd(10);
 
            if (c < 10) then
 
                c = "lse_gen_0" .. tostring(c);
 
@@ -231,7 +227,6 @@ lse_generator_update = function()
 
            c = "lse_gen_" .. tostring(c);
 
        end;
 
        while (stead.ref(c).broken or stead.ref(c).role) do
 
            print("c", c);
 
            c = rnd(10);
 
            if (c < 10) then
 
                c = "lse_gen_0" .. tostring(c);
 
@@ -482,7 +477,6 @@ lse_naethvjirr = combatant {
 
                p("Вы чувствуете, что атака не прошла для вас бесследно. ");
 
                pl.hp = pl.hp - 1;
 
            end;
 
            print("dark");
 
            lse_final_battle:make_turn();
 
        elseif (lse_generators.chThrow <= 0) then
 
            p("Наэтвьирр отправляет в вас мощную волну воздуха, которая отбрасывает вас в сторону. ");
 
@@ -644,7 +638,6 @@ lse_aedhyarr = combatant {
 
    make_turn = function(s)
 
        -- Аэдхиарр будет пытаться всеми силами париблизиться к игроку на расстояние выстрела и не будет отступать. 
 
        local dist = math.sqrt((s.x - here().plX) * (s.x - here().plX) + (s.y - here().plY) * (s.y - here().plY));
 
        print(dist, here():canShoot(s.x, s.y, here().plX, here().plY));
 
        if (dist < 6 and here():canShoot(s.x, s.y, here().plX, here().plY)) then
 
            -- shoot
 
            if (rnd(4) > dist - 2) then
utils.lua
Show inline comments
 
@@ -956,8 +956,6 @@ labyrinth = function(tab)
 
    };
 
    
 
    lab = room(tab);
 
    print(tab);
 
    print(lab);
 
    if (not tab.position) then
 
        stead.add_var(tab, { position = "00"; });
 
    end;
warehouse32.lua
Show inline comments
 
@@ -175,8 +175,6 @@ w32_mgr = darkroom {
 
	end;
 
	way = {
 
		kh_vroom("Выйти", function(s)
 
			print(w32_mgr.key_inplace);
 
			print(w32_mgr.book_inplace);
 
			if (not w32_mgr.key_inplace or not w32_mgr.book_inplace) then
 
				pr("Стоит вернуть все как было. ");
 
				return false;
 
@@ -468,13 +466,10 @@ warehouse_32 = stealthroom {
 
		end;
 
	end;
 
	makeTurn = function(s)
 
        print('make turn');
 
		if (s.definitions[s.pos].sector) then
 
            print(s.definitions[s.pos].sector);
 
			warehouse_32_shelves.current = s.definitions[s.pos].sector;
 
			warehouse_32_shelves:enable();
 
		else
 
            print('no sector');
 
			warehouse_32_shelves:disable();
 
		end;
 
	end;
 
@@ -525,7 +520,6 @@ w32_shelf_input = input_number {
 
};
 
 
function warehouse32_init()
 
	print("init w32");
 
	for i = 1, #w32_shelf_input.items do
 
		local ok = false;
 
		while not ok do
0 comments (0 inline, 0 general)