| /src/games/rogue/ |
| trap.c | 110 bear_trap = get_rand(4, 7); 151 n = get_rand(0, 2); 153 n = get_rand(1, 2); 155 n = get_rand(2, 3); 157 n = get_rand(2, 4); 159 n = get_rand(3, 5); 161 n = get_rand(5, MAX_TRAPS); 164 traps[i].trap_type = get_rand(0, (TRAPS - 1)); 168 row = get_rand((rooms[party_room].top_row+1), 170 col = get_rand((rooms[party_room].left_col+1) [all...] |
| trap.c | 110 bear_trap = get_rand(4, 7); 151 n = get_rand(0, 2); 153 n = get_rand(1, 2); 155 n = get_rand(2, 3); 157 n = get_rand(2, 4); 159 n = get_rand(3, 5); 161 n = get_rand(5, MAX_TRAPS); 164 traps[i].trap_type = get_rand(0, (TRAPS - 1)); 168 row = get_rand((rooms[party_room].top_row+1), 170 col = get_rand((rooms[party_room].left_col+1) [all...] |
| trap.c | 110 bear_trap = get_rand(4, 7); 151 n = get_rand(0, 2); 153 n = get_rand(1, 2); 155 n = get_rand(2, 3); 157 n = get_rand(2, 4); 159 n = get_rand(3, 5); 161 n = get_rand(5, MAX_TRAPS); 164 traps[i].trap_type = get_rand(0, (TRAPS - 1)); 168 row = get_rand((rooms[party_room].top_row+1), 170 col = get_rand((rooms[party_room].left_col+1) [all...] |
| trap.c | 110 bear_trap = get_rand(4, 7); 151 n = get_rand(0, 2); 153 n = get_rand(1, 2); 155 n = get_rand(2, 3); 157 n = get_rand(2, 4); 159 n = get_rand(3, 5); 161 n = get_rand(5, MAX_TRAPS); 164 traps[i].trap_type = get_rand(0, (TRAPS - 1)); 168 row = get_rand((rooms[party_room].top_row+1), 170 col = get_rand((rooms[party_room].left_col+1) [all...] |
| random.c | 119 get_rand(int x, int y) function in typeref:typename:int 139 return(get_rand(1, 100) <= percentage);
|
| random.c | 119 get_rand(int x, int y) function in typeref:typename:int 139 return(get_rand(1, 100) <= percentage);
|
| random.c | 119 get_rand(int x, int y) function in typeref:typename:int 139 return(get_rand(1, 100) <= percentage);
|
| random.c | 119 get_rand(int x, int y) function in typeref:typename:int 139 return(get_rand(1, 100) <= percentage);
|
| object.c | 185 n = coin_toss() ? get_rand(2, 4) : get_rand(3, 5); 215 row = get_rand(rooms[i].top_row+1, 217 col = get_rand(rooms[i].left_col+1, 237 obj->quantity = get_rand((2 * cur_level), (16 * cur_level)); 399 percent = get_rand(1, 91); 424 percent = get_rand(0, 91); 462 percent = get_rand(1, 118); 535 obj->which_kind = get_rand(0, (WEAPONS - 1)); 539 obj->quantity = get_rand(3, 15) [all...] |
| object.c | 185 n = coin_toss() ? get_rand(2, 4) : get_rand(3, 5); 215 row = get_rand(rooms[i].top_row+1, 217 col = get_rand(rooms[i].left_col+1, 237 obj->quantity = get_rand((2 * cur_level), (16 * cur_level)); 399 percent = get_rand(1, 91); 424 percent = get_rand(0, 91); 462 percent = get_rand(1, 118); 535 obj->which_kind = get_rand(0, (WEAPONS - 1)); 539 obj->quantity = get_rand(3, 15) [all...] |
| object.c | 185 n = coin_toss() ? get_rand(2, 4) : get_rand(3, 5); 215 row = get_rand(rooms[i].top_row+1, 217 col = get_rand(rooms[i].left_col+1, 237 obj->quantity = get_rand((2 * cur_level), (16 * cur_level)); 399 percent = get_rand(1, 91); 424 percent = get_rand(0, 91); 462 percent = get_rand(1, 118); 535 obj->which_kind = get_rand(0, (WEAPONS - 1)); 539 obj->quantity = get_rand(3, 15) [all...] |
| object.c | 185 n = coin_toss() ? get_rand(2, 4) : get_rand(3, 5); 215 row = get_rand(rooms[i].top_row+1, 217 col = get_rand(rooms[i].left_col+1, 237 obj->quantity = get_rand((2 * cur_level), (16 * cur_level)); 399 percent = get_rand(1, 91); 424 percent = get_rand(0, 91); 462 percent = get_rand(1, 118); 535 obj->which_kind = get_rand(0, (WEAPONS - 1)); 539 obj->quantity = get_rand(3, 15) [all...] |
| level.c | 124 must_1 = get_rand(0, 5); 274 top_row = get_rand(MIN_ROW, MIN_ROW+5); 275 bottom_row = get_rand(DROWS-7, DROWS-2); 276 left_col = get_rand(0, 10); 277 right_col = get_rand(DCOLS-11, DCOLS-1); 281 height = get_rand(4, (bottom_row - top_row + 1)); 282 width = get_rand(7, (right_col - left_col - 2)); 284 row_offset = get_rand(0, ((bottom_row - top_row) - height + 1)); 285 col_offset = get_rand(0, ((right_col - left_col) - width + 1)); 405 *col = get_rand(rm->left_col+wall_width [all...] |
| level.c | 124 must_1 = get_rand(0, 5); 274 top_row = get_rand(MIN_ROW, MIN_ROW+5); 275 bottom_row = get_rand(DROWS-7, DROWS-2); 276 left_col = get_rand(0, 10); 277 right_col = get_rand(DCOLS-11, DCOLS-1); 281 height = get_rand(4, (bottom_row - top_row + 1)); 282 width = get_rand(7, (right_col - left_col - 2)); 284 row_offset = get_rand(0, ((bottom_row - top_row) - height + 1)); 285 col_offset = get_rand(0, ((right_col - left_col) - width + 1)); 405 *col = get_rand(rm->left_col+wall_width [all...] |
| level.c | 124 must_1 = get_rand(0, 5); 274 top_row = get_rand(MIN_ROW, MIN_ROW+5); 275 bottom_row = get_rand(DROWS-7, DROWS-2); 276 left_col = get_rand(0, 10); 277 right_col = get_rand(DCOLS-11, DCOLS-1); 281 height = get_rand(4, (bottom_row - top_row + 1)); 282 width = get_rand(7, (right_col - left_col - 2)); 284 row_offset = get_rand(0, ((bottom_row - top_row) - height + 1)); 285 col_offset = get_rand(0, ((right_col - left_col) - width + 1)); 405 *col = get_rand(rm->left_col+wall_width [all...] |
| level.c | 124 must_1 = get_rand(0, 5); 274 top_row = get_rand(MIN_ROW, MIN_ROW+5); 275 bottom_row = get_rand(DROWS-7, DROWS-2); 276 left_col = get_rand(0, 10); 277 right_col = get_rand(DCOLS-11, DCOLS-1); 281 height = get_rand(4, (bottom_row - top_row + 1)); 282 width = get_rand(7, (right_col - left_col - 2)); 284 row_offset = get_rand(0, ((bottom_row - top_row) - height + 1)); 285 col_offset = get_rand(0, ((right_col - left_col) - width + 1)); 405 *col = get_rand(rm->left_col+wall_width [all...] |
| use.c | 119 rogue.str_current -= get_rand(1, 3); 139 halluc += get_rand(500, 800); 163 levitate += get_rand(15, 30); 168 haste_self += get_rand(11, 21); 415 moves = get_rand(950, 1150); 422 moves = get_rand(750, 950); 504 addch(get_rand('A', 'Z')); 548 i = get_rand(2, 5); 566 blind += get_rand(500, 800); 594 return(id_potions[get_rand(0, POTIONS-1)].title) [all...] |
| use.c | 119 rogue.str_current -= get_rand(1, 3); 139 halluc += get_rand(500, 800); 163 levitate += get_rand(15, 30); 168 haste_self += get_rand(11, 21); 415 moves = get_rand(950, 1150); 422 moves = get_rand(750, 950); 504 addch(get_rand('A', 'Z')); 548 i = get_rand(2, 5); 566 blind += get_rand(500, 800); 594 return(id_potions[get_rand(0, POTIONS-1)].title) [all...] |
| use.c | 119 rogue.str_current -= get_rand(1, 3); 139 halluc += get_rand(500, 800); 163 levitate += get_rand(15, 30); 168 haste_self += get_rand(11, 21); 415 moves = get_rand(950, 1150); 422 moves = get_rand(750, 950); 504 addch(get_rand('A', 'Z')); 548 i = get_rand(2, 5); 566 blind += get_rand(500, 800); 594 return(id_potions[get_rand(0, POTIONS-1)].title) [all...] |
| use.c | 119 rogue.str_current -= get_rand(1, 3); 139 halluc += get_rand(500, 800); 163 levitate += get_rand(15, 30); 168 haste_self += get_rand(11, 21); 415 moves = get_rand(950, 1150); 422 moves = get_rand(750, 950); 504 addch(get_rand('A', 'Z')); 548 i = get_rand(2, 5); 566 blind += get_rand(500, 800); 594 return(id_potions[get_rand(0, POTIONS-1)].title) [all...] |
| zap.c | 179 (void)gr_monster(monster, get_rand(0, MONSTERS-1)); 288 btime = get_rand(3, 6); 347 damage = get_rand((rogue.hp_current / 3), rogue.hp_max); 361 monster->nap_length = get_rand(3, 6); 379 damage = get_rand(3, (3 * rogue.exp)); 392 dir = get_rand(0, DIRS-1);
|
| zap.c | 179 (void)gr_monster(monster, get_rand(0, MONSTERS-1)); 288 btime = get_rand(3, 6); 347 damage = get_rand((rogue.hp_current / 3), rogue.hp_max); 361 monster->nap_length = get_rand(3, 6); 379 damage = get_rand(3, (3 * rogue.exp)); 392 dir = get_rand(0, DIRS-1);
|
| zap.c | 179 (void)gr_monster(monster, get_rand(0, MONSTERS-1)); 288 btime = get_rand(3, 6); 347 damage = get_rand((rogue.hp_current / 3), rogue.hp_max); 361 monster->nap_length = get_rand(3, 6); 379 damage = get_rand(3, (3 * rogue.exp)); 392 dir = get_rand(0, DIRS-1);
|
| zap.c | 179 (void)gr_monster(monster, get_rand(0, MONSTERS-1)); 288 btime = get_rand(3, 6); 347 damage = get_rand((rogue.hp_current / 3), rogue.hp_max); 361 monster->nap_length = get_rand(3, 6); 379 damage = get_rand(3, (3 * rogue.exp)); 392 dir = get_rand(0, DIRS-1);
|
| spec_hit.c | 140 n = get_rand(4, 8); 164 amount = get_rand((cur_level * 10), (cur_level * 30)); 201 n = get_rand(0, MAX_PACK_COUNT); 258 obj->quantity = get_rand((cur_level * 15), (cur_level * 30)); 420 rogue.exp_points = level_points[rogue.exp-2] - get_rand(9, 29); 440 n = get_rand(1, 3); /* 1 Hp, 2 Str, 3 both */
|