* @brief プレイヤーの限界ステータスを決める。
* @return なし
*/
-void get_max_stats(void)
+void get_max_stats(player_type *creature_ptr)
{
int i, j;
int dice[6];
BASE_STATUS max_max = 18 + 60 + dice[i]*10;
/* Save that value */
- p_ptr->stat_max_max[i] = max_max;
- if (p_ptr->stat_max[i] > max_max)
- p_ptr->stat_max[i] = max_max;
- if (p_ptr->stat_cur[i] > max_max)
- p_ptr->stat_cur[i] = max_max;
+ creature_ptr->stat_max_max[i] = max_max;
+ if (creature_ptr->stat_max[i] > max_max)
+ creature_ptr->stat_max[i] = max_max;
+ if (creature_ptr->stat_cur[i] > max_max)
+ creature_ptr->stat_cur[i] = max_max;
}
- p_ptr->knowledge &= ~(KNOW_STAT);
- p_ptr->redraw |= (PR_STATS);
+ creature_ptr->knowledge &= ~(KNOW_STAT);
+ creature_ptr->redraw |= (PR_STATS);
}
/*** Finish up ***/
- get_max_stats();
+ get_max_stats(p_ptr);
get_virtues(p_ptr);
/* birth.c */
extern void add_history_from_pref_line(concptr t);
extern void player_birth(player_type *creature_ptr);
-extern void get_max_stats(void);
+extern void get_max_stats(player_type *creature_ptr);
extern void get_height_weight(void);
extern void player_outfit(void);
extern void dump_yourself(FILE *fff);