|
1
|
alarm[3] = 20; gml_Object_obj_dojo_spareenemy_Alarm_3.gml
global.flag[20 other_text_command] = 1;
sparedsprite = spr_npc_puzzlepiece_shaved_happy;
image_speed = 0.16666666666666666;
|
|
2
|
alarm[1] = 40; gml_Object_obj_dojo_spareenemy_Alarm_1.gml
actcon = 1;
scr_act_charsprite_end();
|
|
3
|
scr_mercyaddscr_mercyadd
function scr_mercyadd(arg0, arg1)
{
global.mercymod[arg0] += arg1;
if (global.mercymod[arg0] < 0)
global.mercymod[arg0] = 0;
if (global.mercymod[arg0] >= 100)
global.mercymod[arg0] = 100;
var _playsound = 1;
if (arg1 <= 0)
_playsound = 0;
if (i_ex(obj_dmgwriter))
{
with (obj_dmgwriter)
{
if (type == 5)
_playsound = 0;
}
}
if (_playsound)
{
var _pitch = 0.8;
if (arg1 < 99)
_pitch = 1;
if (arg1 <= 50)
_pitch = 1.2;
if (arg1 <= 25)
_pitch = 1.4;
snd_play_x(snd_mercyadd, 0.8, _pitch);
}
__mercydmgwriter = instance_create(global.monsterx[arg0], (global.monstery[arg0] + 20) - (global.hittarget[arg0] * 20), obj_dmgwriter);
__mercydmgwriter.damage = arg1;
__mercydmgwriter.type = 5;
global.hittarget[arg0]++;
} (myself, 100);
|
|
4
|
snd_play_pitch(snd_damage, 1.5);
|
|
5
|
image_speed = 0;
|
|
6
|
shaved = true;
|
|
7
|
global.flag[20 other_text_command] = 0;
|
|
8
|
sparedsprite = spr_npc_puzzlepiece_shaved_frown;
|
|
9
|
hurtsprite = spr_npc_puzzlepiece_shock2_shaved;
|
|
10
|
var _yy = y + ((siner % 1) * 2);
|
|
11
|
instance_create(x + 22, _yy + 32, obj_dojo_shaveeffect);
|
|
12
|
instance_create(x + 46, _yy + 32, obj_dojo_shaveeffect);
|
|
13
|
instance_create(x + 24, _yy + 34, obj_dojo_shaveeffect);
|
|
14
|
instance_create(x + 28, _yy + 34, obj_dojo_shaveeffect);
|
|
15
|
instance_create(x + 32, _yy + 34, obj_dojo_shaveeffect);
|
|
16
|
instance_create(x + 36, _yy + 34, obj_dojo_shaveeffect);
|
|
17
|
instance_create(x + 40, _yy + 34, obj_dojo_shaveeffect);
|
|
18
|
instance_create(x + 44, _yy + 34, obj_dojo_shaveeffect);
|
|
19
|
instance_create(x + 26, _yy + 36, obj_dojo_shaveeffect);
|
|
20
|
instance_create(x + 42, _yy + 36, obj_dojo_shaveeffect);
|
|
21
|
instance_create(x + 30, _yy + 38, obj_dojo_shaveeffect);
|
|
22
|
instance_create(x + 34, _yy + 38, obj_dojo_shaveeffect);
|
|
23
|
instance_create(x + 38, _yy + 38, obj_dojo_shaveeffect);
|
|
24
|
list = ds_list_create();
|
|
25
|
with (obj_dojo_shaveeffect)
|
|
26
|
ds_list_add(other.list, self);
|
|
27
|
ds_list_shuffle(list);
|
|
28
|
for (i = 0; i < ds_list_size(list); i++)
|
|
29
|
{
|
|
30
|
var _item = ds_list_find_value(list, i);
|
|
31
|
_item.sparkle_timer = ((i * -1) + irandom(2)) - 5;
|
|
32
|
}
|
|
33
|
ds_list_destroy(list);
|