Back to index

freedink-data  1.08.20080920
Functions
APOTION.c File Reference

Go to the source code of this file.

Functions

void main ()
void touch (void)

Function Documentation

void main ( void  )

Definition at line 3 of file APOTION.c.

{
preload_seq(55);
preload_seq(56);
preload_seq(57);

sp_touch_damage(&current_sprite, -1);
sp_seq(&current_sprite, 75);
sp_brain(&current_sprite, 6);

}

Here is the call graph for this function:

void touch ( void  )

Definition at line 15 of file APOTION.c.

{
&magic += 1;
&strength += 1;
&defense += 1;
say("Megapotion!  All stats raised by one.",1);
Playsound(10,22050,0,0,0);
//shrink to this percent then die
sp_brain_parm(&current_sprite, 200);
sp_brain(&current_sprite, 12);
sp_touch_damage(&current_sprite, 0);
sp_timing(&current_sprite, 0);

  int &hold = sp_editor_num(&current_sprite);
  if (&hold != 0)
    {
     //this was placed by the editor, lets make it not come back
     editor_type(&hold, 1); 
     //kill food forever
    }

}

Here is the call graph for this function: