Back to index

freedink-data  1.08.20080920
Functions
S5-ST1P.c File Reference

Go to the source code of this file.

Functions

void main (void)
void hit (void)
void buyaxe (void)
void talk (void)

Function Documentation

void buyaxe ( void  )

Definition at line 26 of file S5-ST1P.c.

{
int &junk = free_items();


if (&junk < 1)
 {
         choice_start()
        set_y 240
        title_start();
You are carrying too much.
        title_end();
         "Ok"
         choice_end()
 return;
 }


if (&gold < 3000)
 {
         choice_start()
        set_y 240
        title_start();
You don't have enough gold to buy this.
        title_end();
         "Ok"
         choice_end()
 return;
 }

&gold -= 3000;
add_item("item-axe",438, 6);

}

Here is the call graph for this function:

void hit ( void  )

Definition at line 7 of file S5-ST1P.c.

{
 &play = random(3, 1);
 if (&play == 1)
 {
  say_stop("`2Must you hit me?", &current_sprite);
 }
 if (&play == 2)
 {
  say_stop("`2You're a murderer aren't you?", &current_sprite);
 }
 if (&play == 3)
 {
  say_stop("`2So, hitting the owner of a weapons store huh?", &current_sprite);
  say_stop("`2Some people.", &current_sprite);
 }
}

Here is the call graph for this function:

void main ( void  )

Definition at line 1 of file S5-ST1P.c.

{
 int &play;
}
void talk ( void  )

Definition at line 64 of file S5-ST1P.c.

{
         choice_start()
        set_y 240
        set_title_color 2
        title_start();
"What will it be, hero?"
        title_end();
         "Throwing Axe - $3000"
         "Leave"
         choice_end()

          if (&result == 1)
          {
           buyaxe();
           unfreeze(1);
           return;

          }

   unfreeze(1);
   return;

}