|
1
|
function scr_boltcheckscr_boltcheck
function scr_boltcheck(arg0)
{
pressbuffer[global.char[arg0]] = 5;
qualifybolt = -1;
close = 99;
topclose = 99;
for (i = 0; i < bolttotal; i += 1)
{
if (boltchar[i] == arg0 && boltalive[i] == 1)
{
close = boltframe[i] - boltx;
if (close < 15 && close > -5)
{
if (close < topclose)
{
topclose = close;
qualifybolt = i;
}
}
}
}
if (qualifybolt != -1)
{
p = abs(topclose);
burstbolt = instance_create((x + 80 + (boltframe[qualifybolt] * boltspeed)) - (boltx * boltspeed), y + (38 * arg0), obj_burstbolt);
if (p == 0)
{
points[arg0] += 150;
with (burstbolt)
image_blend = c_yellow;
with (burstbolt)
mag = 0.2;
if (i_ex(obj_hammer_of_justice_enemy))
scr_tensionheal(6);
}
if (p == 1)
points[arg0] += 120;
if (p == 2)
points[arg0] += 110;
if (p >= 3)
{
points[arg0] += 100 - (abs(topclose) * 2);
burstbolt.image_blend = boltcolor[arg0];
}
if (p >= 15)
burstbolt.image_blend = charcolor[arg0];
boltalive[qualifybolt] = 0;
}
} (arg0)
|
|
2
|
{
|
|
3
|
pressbuffer[global.char[arg0]] = 5;
|
|
4
|
qualifybolt = -1;
|
|
5
|
close = 99;
|
|
6
|
topclose = 99;
|
|
7
|
for (i = 0; i < bolttotal; i += 1)
|
|
8
|
{
|
|
9
|
if (boltchar[i] == arg0 && boltalive[i] == 1)
|
|
10
|
{
|
|
11
|
close = boltframe[i] - boltx;
|
|
12
|
if (close < 15 && close > -5)
|
|
13
|
{
|
|
14
|
if (close < topclose)
|
|
15
|
{
|
|
16
|
topclose = close;
|
|
17
|
qualifybolt = i;
|
|
18
|
}
|
|
19
|
}
|
|
20
|
}
|
|
21
|
}
|
|
22
|
if (qualifybolt != -1)
|
|
23
|
{
|
|
24
|
p = abs(topclose);
|
|
25
|
burstbolt = instance_create((x + 80 + (boltframe[qualifybolt] * boltspeed)) - (boltx * boltspeed), y + (38 * arg0), obj_burstbolt);
|
|
26
|
if (p == 0)
|
|
27
|
{
|
|
28
|
points[arg0] += 150;
|
|
29
|
with (burstbolt)
|
|
30
|
image_blend = c_yellow;
|
|
31
|
with (burstbolt)
|
|
32
|
mag = 0.2;
|
|
33
|
if (i_ex(obj_hammer_of_justice_enemy))
|
|
34
|
scr_tensionhealscr_tensionheal
function scr_tensionheal(arg0)
{
if (i_ex(obj_jackenstein_enemy) && global.tempflag[89] >= 3)
global.tension += ceil(arg0 * 1.5);
else
global.tension += arg0;
if (global.tension > global.maxtension)
global.tension = global.maxtension;
} (6);
|
|
35
|
}
|
|
36
|
if (p == 1)
|
|
37
|
points[arg0] += 120;
|
|
38
|
if (p == 2)
|
|
39
|
points[arg0] += 110;
|
|
40
|
if (p >= 3)
|
|
41
|
{
|
|
42
|
points[arg0] += 100 - (abs(topclose) * 2);
|
|
43
|
burstbolt.image_blend = boltcolor[arg0];
|
|
44
|
}
|
|
45
|
if (p >= 15)
|
|
46
|
burstbolt.image_blend = charcolor[arg0];
|
|
47
|
boltalive[qualifybolt] = 0;
|
|
48
|
}
|
|
49
|
}
|