Back to index

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

Go to the source code of this file.

Functions

void main (void)
void hit (void)
void talk (void)
void touch (void)

Function Documentation

void hit ( void  )

Definition at line 10 of file S1-SACK.c.

{
Say("I hate you, sack of feed!", 1);
}
void main ( void  )

Definition at line 3 of file S1-SACK.c.

{
sp_touch_damage(&current_sprite, -1);


}
void talk ( void  )

Definition at line 15 of file S1-SACK.c.

{
Say("A big sack.", 1);
}
void touch ( void  )

Definition at line 21 of file S1-SACK.c.

{
//dink touched this sprite
Playsound(10,22050,0,0,0);
sp_brain_parm(&current_sprite, 10);
sp_brain(&current_sprite, 12);
sp_touch_damage(&current_sprite, 0);
sp_timing(&current_sprite, 0);
add_item("item-pig",438, 2);
say("I now have a sack of pig feed.", 1);
  //kill this item so it doesn't show up again for this player
  int &hold = sp_editor_num(&current_sprite);
  if (&hold != 0)
  editor_type(&hold, 1); 

}

Here is the call graph for this function: