From 26ed84ce423cc4ba341ed0f2a0825a2888e963da Mon Sep 17 00:00:00 2001 From: mogami Date: Sat, 9 Mar 2002 16:06:27 +0000 Subject: [PATCH] =?utf8?q?=E3=82=AD=E3=83=A3=E3=83=A9=E3=82=AF=E3=82=BF?= =?utf8?q?=E3=83=BC=E7=94=9F=E6=88=90=E6=99=82=E3=81=AE=E8=83=BD=E5=8A=9B?= =?utf8?q?=E5=80=A4=E3=81=AE=E3=83=80=E3=82=A4=E3=82=B9=E3=82=92=E5=AE=9F?= =?utf8?q?=E9=A8=93=E7=9A=84=E3=81=AB=205=20+=201d3=20+=201d4=20+=201d5=20?= =?utf8?q?=E3=81=8B=E3=82=89=E3=80=81=207=20+=201d10=20=E3=81=AB=E5=A4=89?= =?utf8?q?=E6=9B=B4=E3=80=82=E3=81=9D=E3=81=AE=E4=BB=A3=E3=82=8Adelay?= =?utf8?q?=E3=82=92=E3=83=87=E3=83=95=E3=82=A9=E3=83=AB=E3=83=88=E3=81=A7?= =?utf8?q?=2010=20(1/100=20=E7=A7=92)=E5=85=A5=E3=82=8C=E3=81=9F=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/birth.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/birth.c b/src/birth.c index bfde9cec8..a6b5ba2a7 100644 --- a/src/birth.c +++ b/src/birth.c @@ -22,7 +22,7 @@ /* * 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 @@ -2593,17 +2593,17 @@ static void get_stats(void) int bonus; - int dice[18]; + int dice[6]; /* Roll and verify some stats */ while (TRUE) { /* Roll some dice */ - for (j = i = 0; i < 18; i++) + for (j = i = 0; i < 6; i++) { /* Roll the dice */ - dice[i] = randint1(3 + i % 3); + dice[i] = rand_range(3, 12); /* Collect the maximum */ j += dice[i]; @@ -2618,7 +2618,7 @@ static void get_stats(void) for (i = 0; i < 6; i++) { /* Extract 5 + 1d3 + 1d4 + 1d5 */ - j = 5 + dice[3*i] + dice[3*i+1] + dice[3*i+2]; + j = 5 + dice[i]; /* Save that value */ p_ptr->stat_max[i] = j; @@ -5618,7 +5618,7 @@ static bool player_birth_aux(void) #ifdef AUTOROLLER_DELAY /* Delay 1/10 second */ - if (flag) Term_xtra(TERM_XTRA_DELAY, 100); + if (flag) Term_xtra(TERM_XTRA_DELAY, 10); #endif /* Make sure they see everything */ -- 2.11.0