1 |
if (abs(obj_heart.xprevious - obj_heart.x) > 0.01 || abs(obj_heart.yprevious - obj_heart.y) > 0.01) |
2 |
{ |
3 |
if (global.invc < 1) |
4 |
{ |
5 |
hurted = 1; |
6 |
dmgamt = round(dmg - ((global.df + global.adef) / 5)); |
7 |
if (dmgamt < 1) |
8 |
dmgamt = 1; |
9 |
global.hp -= dmgamt; |
10 |
snd_play(snd_hurt1); |
11 |
global.hshake = 2; |
12 |
global.shakespeed = 2; |
13 |
global.vshake = 2; |
14 |
instance_create(0, 0, obj_shaker); |
15 |
global.invc = global.inv; |
16 |
if (instance_exists(obj_dogeparent)) |
17 |
{ |
18 |
obj_dogeparent.excited = 1; |
19 |
obj_dogeparent.mercymod = -50; |
20 |
if (instance_exists(obj_movedogehead)) |
21 |
{ |
22 |
obj_movedogehead.excited = 1; |
23 |
obj_movedogehead.alarm[0] = 90; |
24 |
obj_movedogehead.alarm[1] = 2; |
25 |
} |
26 |
} |
27 |
} |
28 |
} |