|
1
|
if (stack_height > 0)
|
|
2
|
{
|
|
3
|
var _food = food[stack_height - 1];
|
|
4
|
with (target)
|
|
5
|
{
|
|
6
|
if ((other.stack_height % 2) != 0 || other.ticks >= 8)
|
|
7
|
{
|
|
8
|
with (instance_create_depth(x, y, depth - 1, obj_chefs_vfx))
|
|
9
|
{
|
|
10
|
sprite_index = other.sprite_index;
|
|
11
|
image_index = other.image_index;
|
|
12
|
image_speed = other.image_speed;
|
|
13
|
image_xscale = other.image_xscale;
|
|
14
|
image_yscale = other.image_yscale;
|
|
15
|
white = true;
|
|
16
|
alarm[0]
|
|
17
|
image_alpha = 0.6;
|
|
18
|
if (i_ex(obj_chefs_customer) && obj_chefs_customer.tenna)
|
|
19
|
{
|
|
20
|
sprite_index = spr_tenna_grasp_chef;
|
|
21
|
image_index = 1;
|
|
22
|
}
|
|
23
|
}
|
|
24
|
}
|
|
25
|
speed = 0;
|
|
26
|
scr_tenna_add_scorescr_tenna_add_score
function scr_tenna_add_score(arg0)
{
if (i_ex(obj_tenna_enemy_bg))
{
var _multiplier = 1;
var _multi_minigame_adjustment = 1;
if (obj_tenna_enemy.minigameactivated)
{
if (obj_tenna_enemy.minigamecount >= 6)
_multi_minigame_adjustment = 0.65;
_multiplier = (obj_tenna_enemy.pointsmultiplierthisturn + obj_tenna_enemy.pointsmultiplier) * _multi_minigame_adjustment;
obj_tenna_enemy.pointsmultiplierthisturn -= 1;
if (obj_tenna_enemy.pointsmultiplierthisturn < 1)
obj_tenna_enemy.pointsmultiplierthisturn = 1;
}
if (!i_ex(obj_tenna_zoom))
obj_tenna_enemy_bg.addscore += round(arg0 * _multiplier);
else if (i_ex(obj_tenna_minigame_ui))
obj_tenna_minigame_ui.myscore += round(arg0 * _multiplier);
}
} (5);
|
|
27
|
foods_needed--;
|
|
28
|
if (i_ex(_food))
|
|
29
|
_food.eaten = 1;
|
|
30
|
if (special && i_ex(_food))
|
|
31
|
_food.eaten = 2;
|
|
32
|
snd_stop(snd_foodscore);
|
|
33
|
var _p = 1 + (foods / 20);
|
|
34
|
if (special)
|
|
35
|
_p += 1;
|
|
36
|
snd_play_pitch(snd_foodscore, _p);
|
|
37
|
foods++;
|
|
38
|
alarm[0]
|
|
39
|
switch (foods)
|
|
40
|
{
|
|
41
|
case 1:
|
|
42
|
foodscore = 3;
|
|
43
|
break;
|
|
44
|
case 2:
|
|
45
|
foodscore = 7;
|
|
46
|
break;
|
|
47
|
case 3:
|
|
48
|
foodscore = 12;
|
|
49
|
break;
|
|
50
|
case 4:
|
|
51
|
foodscore = 18;
|
|
52
|
break;
|
|
53
|
case 5:
|
|
54
|
foodscore = 24;
|
|
55
|
break;
|
|
56
|
default:
|
|
57
|
foodscore = (foods * 8) - 16;
|
|
58
|
break;
|
|
59
|
}
|
|
60
|
if (i_ex(_food))
|
|
61
|
instance_destroy(_food);
|
|
62
|
}
|
|
63
|
stack_height--;
|
|
64
|
ticks++;
|
|
65
|
alarm[1] = 1; gml_Object_obj_chefs_stackbox_Alarm_1.gml
if (stack_height > 0)
{
var _food = food[stack_height - 1];
with (target)
{
if ((other.stack_height % 2) != 0 || other.ticks >= 8)
{
with (instance_create_depth(x, y, depth - 1, obj_chefs_vfx))
{
sprite_index = other.sprite_index;
image_index = other.image_index;
image_speed = other.image_speed;
image_xscale = other.image_xscale;
image_yscale = other.image_yscale;
white = true;
alarm[0]
image_alpha = 0.6;
if (i_ex(obj_chefs_customer) && obj_chefs_customer.tenna)
{
sprite_index = spr_tenna_grasp_chef;
image_index = 1;
}
}
}
speed = 0;
scr_tenna_add_score(5);
foods_needed--;
if (i_ex(_food))
_food.eaten = 1;
if (special && i_ex(_food))
_food.eaten = 2;
snd_stop(snd_foodscore);
var _p = 1 + (foods / 20);
if (special)
_p += 1;
snd_play_pitch(snd_foodscore, _p);
foods++;
alarm[0]
switch (foods)
{
case 1:
foodscore = 3;
break;
case 2:
foodscore = 7;
break;
case 3:
foodscore = 12;
break;
case 4:
foodscore = 18;
break;
case 5:
foodscore = 24;
break;
default:
foodscore = (foods * 8) - 16;
break;
}
if (i_ex(_food))
instance_destroy(_food);
}
stack_height--;
ticks++;
alarm[1] = 1;
if (ticks >= 8)
alarm[1] = 2;
if (ticks >= 12)
alarm[1] = 3;
if (ticks >= 16)
alarm[1] = 4;
}
else
{
instance_destroy();
}
|
|
66
|
if (ticks >= 8)
|
|
67
|
alarm[1] = 2; gml_Object_obj_chefs_stackbox_Alarm_1.gml
if (stack_height > 0)
{
var _food = food[stack_height - 1];
with (target)
{
if ((other.stack_height % 2) != 0 || other.ticks >= 8)
{
with (instance_create_depth(x, y, depth - 1, obj_chefs_vfx))
{
sprite_index = other.sprite_index;
image_index = other.image_index;
image_speed = other.image_speed;
image_xscale = other.image_xscale;
image_yscale = other.image_yscale;
white = true;
alarm[0]
image_alpha = 0.6;
if (i_ex(obj_chefs_customer) && obj_chefs_customer.tenna)
{
sprite_index = spr_tenna_grasp_chef;
image_index = 1;
}
}
}
speed = 0;
scr_tenna_add_score(5);
foods_needed--;
if (i_ex(_food))
_food.eaten = 1;
if (special && i_ex(_food))
_food.eaten = 2;
snd_stop(snd_foodscore);
var _p = 1 + (foods / 20);
if (special)
_p += 1;
snd_play_pitch(snd_foodscore, _p);
foods++;
alarm[0]
switch (foods)
{
case 1:
foodscore = 3;
break;
case 2:
foodscore = 7;
break;
case 3:
foodscore = 12;
break;
case 4:
foodscore = 18;
break;
case 5:
foodscore = 24;
break;
default:
foodscore = (foods * 8) - 16;
break;
}
if (i_ex(_food))
instance_destroy(_food);
}
stack_height--;
ticks++;
alarm[1] = 1;
if (ticks >= 8)
alarm[1] = 2;
if (ticks >= 12)
alarm[1] = 3;
if (ticks >= 16)
alarm[1] = 4;
}
else
{
instance_destroy();
}
|
|
68
|
if (ticks >= 12)
|
|
69
|
alarm[1] = 3; gml_Object_obj_chefs_stackbox_Alarm_1.gml
if (stack_height > 0)
{
var _food = food[stack_height - 1];
with (target)
{
if ((other.stack_height % 2) != 0 || other.ticks >= 8)
{
with (instance_create_depth(x, y, depth - 1, obj_chefs_vfx))
{
sprite_index = other.sprite_index;
image_index = other.image_index;
image_speed = other.image_speed;
image_xscale = other.image_xscale;
image_yscale = other.image_yscale;
white = true;
alarm[0]
image_alpha = 0.6;
if (i_ex(obj_chefs_customer) && obj_chefs_customer.tenna)
{
sprite_index = spr_tenna_grasp_chef;
image_index = 1;
}
}
}
speed = 0;
scr_tenna_add_score(5);
foods_needed--;
if (i_ex(_food))
_food.eaten = 1;
if (special && i_ex(_food))
_food.eaten = 2;
snd_stop(snd_foodscore);
var _p = 1 + (foods / 20);
if (special)
_p += 1;
snd_play_pitch(snd_foodscore, _p);
foods++;
alarm[0]
switch (foods)
{
case 1:
foodscore = 3;
break;
case 2:
foodscore = 7;
break;
case 3:
foodscore = 12;
break;
case 4:
foodscore = 18;
break;
case 5:
foodscore = 24;
break;
default:
foodscore = (foods * 8) - 16;
break;
}
if (i_ex(_food))
instance_destroy(_food);
}
stack_height--;
ticks++;
alarm[1] = 1;
if (ticks >= 8)
alarm[1] = 2;
if (ticks >= 12)
alarm[1] = 3;
if (ticks >= 16)
alarm[1] = 4;
}
else
{
instance_destroy();
}
|
|
70
|
if (ticks >= 16)
|
|
71
|
alarm[1] = 4; gml_Object_obj_chefs_stackbox_Alarm_1.gml
if (stack_height > 0)
{
var _food = food[stack_height - 1];
with (target)
{
if ((other.stack_height % 2) != 0 || other.ticks >= 8)
{
with (instance_create_depth(x, y, depth - 1, obj_chefs_vfx))
{
sprite_index = other.sprite_index;
image_index = other.image_index;
image_speed = other.image_speed;
image_xscale = other.image_xscale;
image_yscale = other.image_yscale;
white = true;
alarm[0]
image_alpha = 0.6;
if (i_ex(obj_chefs_customer) && obj_chefs_customer.tenna)
{
sprite_index = spr_tenna_grasp_chef;
image_index = 1;
}
}
}
speed = 0;
scr_tenna_add_score(5);
foods_needed--;
if (i_ex(_food))
_food.eaten = 1;
if (special && i_ex(_food))
_food.eaten = 2;
snd_stop(snd_foodscore);
var _p = 1 + (foods / 20);
if (special)
_p += 1;
snd_play_pitch(snd_foodscore, _p);
foods++;
alarm[0]
switch (foods)
{
case 1:
foodscore = 3;
break;
case 2:
foodscore = 7;
break;
case 3:
foodscore = 12;
break;
case 4:
foodscore = 18;
break;
case 5:
foodscore = 24;
break;
default:
foodscore = (foods * 8) - 16;
break;
}
if (i_ex(_food))
instance_destroy(_food);
}
stack_height--;
ticks++;
alarm[1] = 1;
if (ticks >= 8)
alarm[1] = 2;
if (ticks >= 12)
alarm[1] = 3;
if (ticks >= 16)
alarm[1] = 4;
}
else
{
instance_destroy();
}
|
|
72
|
}
|
|
73
|
else
|
|
74
|
{
|
|
75
|
instance_destroy();
|
|
76
|
}
|