* For efficiency, we include a chunk of "calc_bonuses()".\n
* @return なし
*/
-static void get_stats(void)
+static void get_stats(player_type *creature_ptr)
{
/* Roll and verify some stats */
while (TRUE)
/* Save that value */
sum += val;
- p_ptr->stat_cur[3*i] = p_ptr->stat_max[3*i] = val;
+ creature_ptr->stat_cur[3*i] = creature_ptr->stat_max[3*i] = val;
/* Extract 5 + 1d3 + 1d4 + 1d5 */
val = 5 + 3;
/* Save that value */
sum += val;
- p_ptr->stat_cur[3*i+1] = p_ptr->stat_max[3*i+1] = val;
+ creature_ptr->stat_cur[3*i+1] = creature_ptr->stat_max[3*i+1] = val;
/* Extract 5 + 1d3 + 1d4 + 1d5 */
val = 5 + 3;
/* Save that value */
sum += val;
- p_ptr->stat_cur[3*i+2] = p_ptr->stat_max[3*i+2] = val;
+ creature_ptr->stat_cur[3*i+2] = creature_ptr->stat_max[3*i+2] = val;
}
/* Verify totals */
else
{
/* Get a new character */
- get_stats();
+ get_stats(p_ptr);
/* Roll for age/height/weight */
get_ahw();
bool accept = TRUE;
/* Get a new character */
- get_stats();
+ get_stats(p_ptr);
/* Advance the round */
auto_round++;