1 |
var enemy_dead = global.enemy_dead |
2 |
var enemy_spared = global.enemy_spared |
3 |
var enemy_mode = global.enemy_mode |
4 |
if (enemy_dead == true) |
5 |
{ |
6 |
instance_destroy() |
7 |
return; |
8 |
} |
9 |
else if (enemy_spared == true) |
10 |
{ |
11 |
instance_destroy() |
12 |
return; |
13 |
} |
14 |
if (damage_disjoint_count > 0) |
15 |
damage_disjoint_count -= 1 |
16 |
else if (enemy_dead == false && enemy_spared == false) |
17 |
{ |
18 |
if (obj_martlet_g_body.fight_mode == true) |
19 |
head_sprite = spr_martlet_head_angry_battle |
20 |
else |
21 |
head_sprite = spr_martlet_head_moderate_battle |
22 |
} |
23 |
if (instance_exists(obj_text_damage_count) && global.fight_number == 1 && no_loop_damage_disjoint_count == false) |
24 |
{ |
25 |
damage_disjoint_count = 12 |
26 |
no_loop_damage_disjoint_count = true |
27 |
} |
28 |
else if (!instance_exists(obj_text_damage_count)) |
29 |
no_loop_damage_disjoint_count = false |
30 |
if (damage_disjoint_count == 12) |
31 |
damage_disjoint_x = -50 |
32 |
else if (damage_disjoint_count == 10) |
33 |
damage_disjoint_x = 50 |
34 |
else if (damage_disjoint_count == 8) |
35 |
damage_disjoint_x = -20 |
36 |
else if (damage_disjoint_count == 6) |
37 |
damage_disjoint_x = 20 |
38 |
else if (damage_disjoint_count == 4) |
39 |
damage_disjoint_x = -10 |
40 |
else if (damage_disjoint_count == 2) |
41 |
damage_disjoint_x = 10 |
42 |
else if (damage_disjoint_count == 0) |
43 |
damage_disjoint_x = 0 |
44 |
if (damage_disjoint_count > 0) |
45 |
image_alpha = 0 |