Exemplo n.º 1
0
void l_whirlwind(void)
{
  print1("Buffeting winds swirl you up!");
  p_damage(random_range(difficulty()*10),NORMAL_DAMAGE,"a magic whirlwind");
  if (random_range(2)) {
    print2("You are jolted by lightning!");
    p_damage(random_range(difficulty()*10),ELECTRICITY,"a magic whirlwind");
  }
  morewait();
  if (random_range(2)) {
    print1("The whirlwind carries you off....");
    if (random_range(20)==17)
      print2("'I don't think we're in Kansas anymore, toto.'");
    p_teleport(0);
  }
}
Exemplo n.º 2
0
void s_teleport(void)
{
    p_teleport(0);
}
Exemplo n.º 3
0
void i_teleport(pob o)
{
    if (o->blessing > -1)
        Objects[o->id].known = 1;
    p_teleport(o->blessing);
}