Back to index

freedink-data  1.08.20080920
Functions
S1-NUT.c File Reference

Go to the source code of this file.

Functions

void main (void)
void touch (void)

Function Documentation

void main ( void  )

Definition at line 1 of file S1-NUT.c.

{
sp_touch_damage(&current_sprite, -1);

}
void touch ( void  )

Definition at line 7 of file S1-NUT.c.

{
int &junk = free_items();

if (&junk < 1)
 {
 say("I'm full!  I can't pick up anything else.", 1);
 return;
 }
Playsound(10,22050,0,0,0);
add_item("item-nut",438, 19);

        if (&nuttree < 1)
        {
        &nuttree = 1;
        &story = 3;
        }

        say("I picked up a nut!",1);
        sp_active(&current_sprite, 0);

 }

Here is the call graph for this function: