Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 23rd, 2012  |  syntax: None  |  size: 0.54 KB  |  hits: 10  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.       if (one_chance_in(10))
  2.       {
  3.           const int teleportitis_level = player_teleport();
  4.           // this is instantaneous
  5.           if (teleportitis_level > 0 && one_chance_in(100 / teleportitis_level))
  6.               you_teleport_now(true);
  7.           else if (you.level_type == LEVEL_ABYSS)
  8.           {
  9.               if (one_chance_in(30))
  10.                   abyss_teleport(coinflip());                                                                                        
  11.               else
  12.                   abyss_morph();
  13.           }
  14.       }