Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_chefs_stackbox_Collision_obj_chefs_customer

(view raw script w/o annotations or w/e)
1
if (obj_chefs_game.gameover)
2
    exit;
3
if (target == -4 && !other.leaving)
4
{
5
    target = other.id;
6
alarm[1]
7
    speed = 0;
8
    x = other.x;
9
    y = other.bbox_top - 30;
10
    if (i_ex(obj_chefs_firewhip))
11
        y = other.bbox_top - 10;
12
    with (target)
13
    {
14
        sprite_index = sprEat;
15
        if (eating == 0)
16
            obj_chefs_game.customersfed++;
17
        eating = 1;
18
    }
19
}
20
if (obj_chefs_game.maxstack < stack_height)
21
{
22
    obj_chefs_game.maxstack = stack_height;
23
    debug_print("obj_chefs_game.maxstack=" + string(obj_chefs_game.maxstack));
24
}