Back to index

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

Go to the source code of this file.

Functions

void use (void)
void disarm (void)
void arm (void)
void pickup (void)
void drop (void)

Function Documentation

void arm ( void  )

Definition at line 22 of file ITEM-NUT.c.

{
preload_seq(169);
init("load_sequence_now graphics\dink\walk\ds-w1- 71 43 38 72 -14 -9 14 9");
init("load_sequence_now graphics\dink\walk\ds-w2- 72 43 37 69 -13 -9 13 9");
init("load_sequence_now graphics\dink\walk\ds-w3- 73 43 38 72 -14 -9 14 9");
init("load_sequence_now graphics\dink\walk\ds-w4- 74 43 38 72 -12 -9 12 9");

init("load_sequence_now graphics\dink\walk\ds-w6- 76 43 38 72 -13 -9 13 9");
init("load_sequence_now graphics\dink\walk\ds-w7- 77 43 38 72 -12 -10 12 10");
init("load_sequence_now graphics\dink\walk\ds-w8- 78 43 37 69 -13 -9 13 9");
init("load_sequence_now graphics\dink\walk\ds-w9- 79 43 38 72 -14 -9 14 9");

init("load_sequence_now graphics\dink\idle\ds-i2- 12 250 33 70 -12 -9 12 9");
init("load_sequence_now graphics\dink\idle\ds-i4- 14 250 30 71 -11 -9 11 9");
init("load_sequence_now graphics\dink\idle\ds-i6- 16 250 36 70 -11 -9 11 9");
init("load_sequence_now graphics\dink\idle\ds-i8- 18 250 32 68 -12 -9 12 9");

}
void disarm ( void  )

Definition at line 15 of file ITEM-NUT.c.

{
debug("but disarmed.");

kill_this_task();
}
void drop ( void  )

Definition at line 47 of file ITEM-NUT.c.

{
debug("elixer removed");
draw_status();
kill_this_task();
}
void pickup ( void  )

Definition at line 42 of file ITEM-NUT.c.

{
kill_this_task();
}
void use ( void  )

Definition at line 3 of file ITEM-NUT.c.

{
&life += 2;
if (&life > &lifemax)
    &life = &lifemax;

say("Yum, tasted good.", 1);
kill_cur_item();
//nothing more will be read here, put stuff in disarm and drop if you need
//something done
}