1 |
if (live_call()) |
2 |
return global.live_result; |
3 |
var rng = irandom(hand_spawn_chance_curent); |
4 |
if (!instance_exists(obj_flowey_battle_phase_2_yarn_weakpoint)) |
5 |
{ |
6 |
if (!alarm[1]) |
7 |
alarm[1] = 30; |
8 |
} |
9 |
if (rng == 1) |
10 |
{ |
11 |
var xx = choose(130, 510); |
12 |
var yy = choose(irandom_range(300, 420), obj_heart_battle_fighting_parent.y); |
13 |
instance_create_depth(xx, yy, -100, obj_flowey_battle_phase_2_yarn_hand_shoot); |
14 |
hand_spawn_chance_curent = hand_spawn_chance_max; |
15 |
} |
16 |
else if (hand_spawn_chance_curent > 1) |
17 |
{ |
18 |
hand_spawn_chance_curent -= 1; |
19 |
} |