<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!-->
<object>
  <spriteName>s_supply</spriteName>
  <solid>0</solid>
  <visible>-1</visible>
  <depth>0</depth>
  <persistent>0</persistent>
  <parentName>&lt;undefined&gt;</parentName>
  <maskName>s_block1_b</maskName>
  <events>
    <event eventtype="0" enumb="0">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>x = (round(x/40))*40;
y = (round(y/40))*40;
zz = 192;
size = 0;
image_angle = irandom(360);
depth = point_distance(x, y, room_width/2, room_height/2);
type = choose(0, 1); //0-tank 1-other
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="3" enumb="0">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>if zz &gt; 0.5
{
    zz -= 0.5;
    image_angle += 2;
}
if zz == 0.5
{
    zz = 0;
    repeat (8) effect_create_below(ef_smoke, x+random(40)-20, y+random(40)-20, 0, c_dkgray);
    exit;
}
if zz == 0
{
    if size &gt; 0 size -= 0.05;
    else size = 0;
    exit;
};
if size &lt; 1 size += 0.02;
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="4" ename="o_player">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>///1-double 2-relsa 3-czar 4-invinc * 5-no bullets 
if zz != 0 exit;
instance_destroy();
repeat (6) effect_create_below(ef_smoke, x+random(40)-20, y+random(40)-20, 0, c_dkgray);
repeat (8) effect_create_above(ef_spark, x+random(40)-20, y+random(40)-20, 0, c_yellow);
effect_create_below(ef_ring, x, y, 1, c_yellow);
ss_shake(10);
audio_play_sound(w_bonus_take, 1, 0);
if type == 0
{
    if instance_exists(o_printer)
    {
        if o_printer.targ1 == o_player
        {
            var i;
            i = choose(1, 2, 3, 4, 5);
            switch (i)
            {
                case 1: other.tx = 'Двойной ствол'; other.time = 600; other.bonus = 1; break;
                case 2: other.tx = 'Рельсотрон'; other.time = 600; other.bonus = 2; break;
                case 3: other.tx = 'Царь пушка'; other.time = 600; other.bonus = 3; break;
                case 4: other.tx = 'Неуязвимость'; other.time = 600; other.bonus = 4; break;
                case 5: other.tx2 = '+ 1 материал для каждого союзного принтера'; other.time = 600; with o_printer {if targ1 == o_player hp1++;} other.bonus = 5; break;
                default: break;
            };
        };
        else
        {
            var i;
            i = choose(1, 2, 3, 4);
            switch (i)
            {
                case 1: other.tx = 'Двойной ствол'; other.time = 600; other.bonus = 1; break;
                case 2: other.tx = 'Рельсотрон'; other.time = 600; other.bonus = 2; break;
                case 3: other.tx = 'Царь пушка'; other.time = 600; other.bonus = 3; break;
                case 4: other.tx = 'Неуязвимость'; other.time = 600; other.bonus = 4; break;
                default: break;
            };
        };
    };
    exit;
};
if type == 1
{
    var i;
    i = irandom_range(1, 3);
    switch (i)
    {
        case 1: other.tx = '"Стрельба холостыми"'; other.time = 600; other.bonus = 6; break;
        case 2: other.tx2 = 'Подкрепление'; other.time = 600; other.bonus = 7; with o_printer {if targ1 == o_player instance_create(x, y, o_bot_ally);} break;
        case 3: other.tx2 = 'Артиллерийский удар'; other.time = 600; other.bonus = 8; instance_create(0, 0, o_art_udar); break;
        case 4: other.tx = 'Неуязвимость'; other.time = 600; other.bonus = 4; break;
        case 5: other.tx2 = '+ 1 материал для принтера'; other.time = 300; o_printer.hp1++;  break;
        default: break;
    };
};
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="4" ename="o_bot_main">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>if zz != 0 exit;
repeat (6) effect_create_below(ef_smoke, x+random(40)-20, y+random(40)-20, 0, c_dkgray);
effect_create_below(ef_ring, x, y, 0, c_gray);
instance_destroy();
audio_play_sound(w_bonus_take, 1, 0);
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="8" enumb="64">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>if !instance_exists(o_player_main) or zz != 0 exit;
if point_distance(x, y, instance_nearest(x, y, o_player_main).x, instance_nearest(x, y, o_player_main).y,) &lt; 96
{
    if type == 0 draw_text_colour(x, y-32, 'Танк', c_yellow, c_yellow, c_yellow, c_yellow, 1);
    if type == 1 draw_text_colour(x, y-32, 'Общие', c_white, c_white, c_white, c_white, 1);
}
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="8" enumb="0">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>var xx, yy;
xx = (x - (room_width/2))/1024;
yy = (y - (room_height/2))/382;
if zz &gt; 0 draw_sprite_ext(s_supply, 1, x, y, 1, 1, image_angle, c_black, 0.1);
if size &gt; 0 draw_sprite_ext(s_supply, 19, x, y, size*1.2, size*1.2, image_angle, c_black, 0.1);
if type = 0
{
    for (i=0; i&lt;30; i+=1)
    {
        if i &lt; 13 draw_sprite_ext(s_supply, i, x+(xx*(i+zz)), y+(yy*(i+zz)), 1, 1, image_angle, make_colour_rgb(250, 200, 128), 1);
        if i &gt; 11 draw_sprite_ext(s_supply, i, x+(xx*(i+i+i+zz)), y+(yy*(i+i+i+zz)), size*1, size*1, image_angle, make_colour_rgb(192, 128, 96), 1);
    };
    exit;
}
if type = 1
{
    for (i=0; i&lt;30; i+=1)
    {
        if i &lt; 13 draw_sprite_ext(s_supply, i, x+(xx*(i+zz)), y+(yy*(i+zz)), 1, 1, image_angle, make_colour_rgb(255, 255, 255), 1);
        if i &gt; 11 draw_sprite_ext(s_supply, i, x+(xx*(i+i+i+zz)), y+(yy*(i+i+i+zz)), size*1, size*1, image_angle, make_colour_rgb(192, 192, 96), 1);
    };
}
</string>
          </argument>
        </arguments>
      </action>
    </event>
  </events>
  <PhysicsObject>0</PhysicsObject>
  <PhysicsObjectSensor>0</PhysicsObjectSensor>
  <PhysicsObjectShape>0</PhysicsObjectShape>
  <PhysicsObjectDensity>0.5</PhysicsObjectDensity>
  <PhysicsObjectRestitution>0.100000001490116</PhysicsObjectRestitution>
  <PhysicsObjectGroup>0</PhysicsObjectGroup>
  <PhysicsObjectLinearDamping>0.100000001490116</PhysicsObjectLinearDamping>
  <PhysicsObjectAngularDamping>0.100000001490116</PhysicsObjectAngularDamping>
  <PhysicsObjectFriction>0.200000002980232</PhysicsObjectFriction>
  <PhysicsObjectAwake>-1</PhysicsObjectAwake>
  <PhysicsObjectKinematic>0</PhysicsObjectKinematic>
  <PhysicsShapePoints/>
</object>
