/*
* Define this to cut down processor use while autorolling
*/
-#define AUTOROLLER_DELAY
+/*#define AUTOROLLER_DELAY*/
/*
* Maximum number of tries for selection of a proper quest monster
int bonus;
- int dice[6];
+ int dice[18];
/* Roll and verify some stats */
while (TRUE)
{
/* Roll some dice */
- for (j = i = 0; i < 6; i++)
+ for (j = i = 0; i < 18; i++)
{
/* Roll the dice */
- dice[i] = rand_range(3, 12);
+ dice[i] = randint1(3 + i % 3);
/* Collect the maximum */
j += dice[i];
for (i = 0; i < 6; i++)
{
/* Extract 5 + 1d3 + 1d4 + 1d5 */
- j = 5 + dice[i];
+ j = 5 + dice[3*i] + dice[3*i+1] + dice[3*i+2];
/* Save that value */
p_ptr->stat_max[i] = j;
#ifdef AUTOROLLER_DELAY
/* Delay 1/10 second */
- if (flag) Term_xtra(TERM_XTRA_DELAY, 10);
+ if (flag) Term_xtra(TERM_XTRA_DELAY, 100);
#endif
/* Make sure they see everything */