| /netbsd/src/games/rogue/ |
| 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()
|
| D | level.c | 124 must_1 = get_rand(0, 5); in make_level() 274 top_row = get_rand(MIN_ROW, MIN_ROW+5); in make_room() 275 bottom_row = get_rand(DROWS-7, DROWS-2); in make_room() 276 left_col = get_rand(0, 10); in make_room() 277 right_col = get_rand(DCOLS-11, DCOLS-1); in make_room() 281 height = get_rand(4, (bottom_row - top_row + 1)); in make_room() 282 width = get_rand(7, (right_col - left_col - 2)); in make_room() 284 row_offset = get_rand(0, ((bottom_row - top_row) - height + 1)); in make_room() 285 col_offset = get_rand(0, ((right_col - left_col) - width + 1)); in make_room() 405 *col = get_rand(rm->left_col+wall_width, in put_door() [all …]
|
| D | object.c | 185 n = coin_toss() ? get_rand(2, 4) : get_rand(3, 5); in put_objects() 215 row = get_rand(rooms[i].top_row+1, in put_gold() 217 col = get_rand(rooms[i].left_col+1, in put_gold() 237 obj->quantity = get_rand((2 * cur_level), (16 * cur_level)); in plant_gold() 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() 535 obj->which_kind = get_rand(0, (WEAPONS - 1)); in gr_weapon() 539 obj->quantity = get_rand(3, 15); in gr_weapon() 540 obj->quiver = get_rand(0, 126); in gr_weapon() [all …]
|
| 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 …]
|
| 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()
|
| 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()
|
| D | monster.c | 152 n = get_rand(4, 6); in put_mons() 171 mn = get_rand(0, MONSTERS-1); in gr_monster() 264 row = get_rand(rooms[rn].top_row+1, in party_monsters() 266 col = get_rand(rooms[rn].left_col+1, in party_monsters() 399 NEXT_TRY: n = get_rand(0, 5); in mv_1_monster() 443 monster->trow = get_rand(1, (DROWS - 2)); in mv_1_monster() 444 monster->tcol = get_rand(0, (DCOLS - 1)); in mv_1_monster() 608 ch = get_rand('A', 'Z') - 'A'; in mon_name() 737 r = get_rand(0, 12); in aim_monster() 824 r = get_rand(0, 8); in gr_obj_char()
|
| 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()
|
| D | random.c | 119 get_rand(int x, int y) in get_rand() function 139 return(get_rand(1, 100) <= percentage); in rand_percent()
|
| 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()
|
| 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()
|
| D | throw.c | 276 o = get_rand(1, 8); in rand_around() 279 x = get_rand(0, 8); in rand_around()
|
| D | hit.c | 201 total += get_rand(1, d); in get_damage() 462 monster->moves_confused += get_rand(12, 22); in s_con_mon()
|
| D | move.c | 396 n = get_rand(0, (FAINT - rogue.moves_left)); in check_hunger() 519 d = get_rand(1, 8); in gr_dir()
|
| D | init.c | 189 obj->quantity = get_rand(25, 35); in player_init()
|
| D | rogue.h | 501 int get_rand(int, int);
|