1 | if (global.turntimer < 150) |
2 | { |
3 | hp = 0; |
4 | if (type == 0 || (type == 1 && obj_spamton_neo_enemy.difficulty > 2 && global.turntimer > 20)) |
5 | { |
6 | global.turntimer = 20; |
7 | with (obj_sneo_wireheart) |
8 | { |
9 | hp = 0; |
10 | destroyed = 1; |
11 | } |
12 | } |
13 | } |
14 | else if (type == 0 || (type == 1 && obj_spamton_neo_enemy.difficulty > 2)) |
15 | { |
16 | global.turntimer -= 5; |
17 | } |
18 | else |
19 | { |
20 | hp -= 0.25; |
21 | } |
22 | with (other) |
23 | instance_destroy(); |
24 | damagetimer = 5; |
25 | snd_play(snd_damage); |
26 | if (hp <= 0) |
27 | destroyed = 1; |