/netbsd/games/rogue/ |
H A D | trap.c | 110 bear_trap = get_rand(4, 7); in trap_player() 151 n = get_rand(0, 2); in add_traps() 153 n = get_rand(1, 2); in add_traps() 155 n = get_rand(2, 3); in add_traps() 157 n = get_rand(2, 4); in add_traps() 159 n = get_rand(3, 5); in add_traps() 161 n = get_rand(5, MAX_TRAPS); in add_traps() 164 traps[i].trap_type = get_rand(0, (TRAPS - 1)); in add_traps() 168 row = get_rand((rooms[party_room].top_row+1), in add_traps() 170 col = get_rand((rooms[party_room].left_col+1), in add_traps()
|
H A D | level.c | 124 must_1 = get_rand(0, 5); in make_level() 276 left_col = get_rand(0, 10); in make_room() 438 middle = get_rand(col1+1, col2-1); in draw_simple_passage() 453 middle = get_rand(row1+1, row2-1); in draw_simple_passage() 506 get_rand(0, 2)); in add_mazes() 544 srow = get_rand(0, 3); in fill_it() 545 scol = get_rand(0, 3); in fill_it() 661 t1 = get_rand(0, 3); in make_maze() 662 t2 = get_rand(0, 3); in make_maze() 895 x = get_rand(0, (MAXROOMS-1)); in mix_random_rooms() [all …]
|
H A D | object.c | 185 n = coin_toss() ? get_rand(2, 4) : get_rand(3, 5); in put_objects() 399 percent = get_rand(1, 91); in gr_what_is() 424 percent = get_rand(0, 91); in gr_scroll() 462 percent = get_rand(1, 118); in gr_potion() 510 obj->quantity = get_rand(3, 15); in gr_weapon() 511 obj->quiver = get_rand(0, 126); in gr_weapon() 517 percent = get_rand(1, 96); in gr_weapon() 518 blessing = get_rand(1, 3); in gr_weapon() 576 percent = get_rand(1, 100); in gr_armor() 577 blessing = get_rand(1, 3); in gr_armor() [all …]
|
H A D | use.c | 119 rogue.str_current -= get_rand(1, 3); in quaff() 139 halluc += get_rand(500, 800); in quaff() 163 levitate += get_rand(15, 30); in quaff() 168 haste_self += get_rand(11, 21); in quaff() 415 moves = get_rand(950, 1150); in eat() 422 moves = get_rand(750, 950); in eat() 504 addch(get_rand('A', 'Z')); in hallucinate() 548 i = get_rand(2, 5); in take_a_nap() 566 blind += get_rand(500, 800); in go_blind() 594 return(id_potions[get_rand(0, POTIONS-1)].title); in get_ench_color() [all …]
|
H A D | zap.c | 179 (void)gr_monster(monster, get_rand(0, MONSTERS-1)); in zap_monster() 288 btime = get_rand(3, 6); in bounce() 347 damage = get_rand((rogue.hp_current / 3), rogue.hp_max); in bounce() 361 monster->nap_length = get_rand(3, 6); in bounce() 379 damage = get_rand(3, (3 * rogue.exp)); in bounce() 392 dir = get_rand(0, DIRS-1); in bounce()
|
H A D | spec_hit.c | 140 n = get_rand(4, 8); in freeze() 164 amount = get_rand((cur_level * 10), (cur_level * 30)); in steal_gold() 201 n = get_rand(0, MAX_PACK_COUNT); in steal_item() 258 obj->quantity = get_rand((cur_level * 15), (cur_level * 30)); in cough_up() 420 rogue.exp_points = level_points[rogue.exp-2] - get_rand(9, 29); in drop_level() 440 n = get_rand(1, 3); /* 1 Hp, 2 Str, 3 both */ in drain_life()
|
H A D | monster.c | 141 n = get_rand(4, 6); in put_mons() 160 mn = get_rand(0, MONSTERS-1); in gr_monster() 253 row = get_rand(rooms[rn].top_row+1, in party_monsters() 255 col = get_rand(rooms[rn].left_col+1, in party_monsters() 388 NEXT_TRY: n = get_rand(0, 5); in mv_1_monster() 432 monster->trow = get_rand(1, (DROWS - 2)); in mv_1_monster() 433 monster->tcol = get_rand(0, (DCOLS - 1)); in mv_1_monster() 597 ch = get_rand('A', 'Z') - 'A'; in mon_name() 726 r = get_rand(0, 12); in aim_monster() 813 r = get_rand(0, 8); in gr_obj_char()
|
H A D | room.c | 259 r = get_rand(MIN_ROW, DROWS-2); in gr_row_col() 260 c = get_rand(0, DCOLS-1); in gr_row_col() 278 i = get_rand(0, MAXROOMS-1); in gr_room() 295 n = get_rand(5, 10); in party_objects() 301 row = get_rand(rooms[rn].top_row+1, in party_objects() 303 col = get_rand(rooms[rn].left_col+1, in party_objects() 438 r = get_rand(0, MAXROOMS-1); in dr_course()
|
H A D | random.c | 119 get_rand(int x, int y) in get_rand() function 139 return(get_rand(1, 100) <= percentage); in rand_percent()
|
H A D | inventory.c | 433 j = get_rand(0, (POTIONS - 1)); in mix_colors() 434 k = get_rand(0, (POTIONS - 1)); in mix_colors() 450 sylls = get_rand(2, 5); in make_scroll_titles() 454 s = get_rand(1, (MAXSYLLABLES-1)); in make_scroll_titles() 686 j = get_rand(0, WAND_MATERIALS-1); in get_wand_and_ring_materials() 698 j = get_rand(0, GEMS-1); in get_wand_and_ring_materials()
|
H A D | ring.c | 214 ring->which_kind = get_rand(0, (RINGS - 1)); in gr_ring() 240 while ((ring->class = (get_rand(0, 4) - 2)) == 0) in gr_ring()
|
H A D | throw.c | 276 o = get_rand(1, 8); in rand_around() 279 x = get_rand(0, 8); in rand_around()
|
H A D | hit.c | 201 total += get_rand(1, d); in get_damage() 462 monster->moves_confused += get_rand(12, 22); in s_con_mon()
|
H A D | move.c | 396 n = get_rand(0, (FAINT - rogue.moves_left)); in check_hunger() 519 d = get_rand(1, 8); in gr_dir()
|
H A D | init.c | 189 obj->quantity = get_rand(25, 35); in player_init()
|
H A D | rogue.h | 501 int get_rand(int, int);
|