Back to index

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

Go to the source code of this file.

Functions

void main (void)
void noise (void)

Function Documentation

void main ( void  )

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

{
 int ⊥
 &bot = random(7,1);
 if (&bot == 1)
 
 {
  say_stop("Smells damp in here.", 1);
 }
 if (&bot == 2)
 
 {
  say_stop("I don't like this one bit...", 1);
 }

if (&wizard_see > 2)
{
set_callback_random("noise", 5000, 10000);
}
}

Here is the call graph for this function:

void noise ( void  )

Definition at line 22 of file S1-CAVE.c.

{
if (&wizard_see > 2)
  {
  //killed monster already, why would it roar?
  return;
  }

playsound(32, 11000, 4000, 0, 0);
wait(4000);
&bot = random(4,1);
if (&bot == 1)
say_stop("Can we leave now? <shiver>", 1);
if (&bot == 2)
say_stop("I'm scared.", 1);
if (&bot == 3)
say_stop("Why, that's a funny noise.", 1);

if (&bot == 4)
say_stop("This cave sucks, let's leave...", 1);

}

Here is the call graph for this function:

Here is the caller graph for this function: