OSDN Git Service

[Fix] #41001 新オートローラー実装時に残った宣言漏れと警告の修正。 / Fix declaration and warning.
[hengband/hengband.git] / src / birth / auto-roller.h
1 #pragma once
2
3 #include "system/angband.h"
4
5 /*! オートローラの年齢、身長、体重、社会的地位の要求水準 */
6 typedef struct {
7     s16b agemin, agemax;
8     s16b htmin, htmax;
9     s16b wtmin, wtmax;
10     s16b scmin, scmax;
11 } chara_limit_type;
12
13 extern s16b stat_limit[6];
14 extern s32b stat_match[6];
15 extern s32b auto_round;
16 extern s32b auto_upper_round;
17
18 /*! オートローラの要求値実現確率 */
19 static s32b autoroll_chance;
20
21 /* emulate 5 + 1d3 + 1d4 + 1d5 by randint0(60) */
22 static BASE_STATUS rand3_4_5[60] = {
23     8, 9, 9, 9, 10, 10, 10, 10, 10, 10, /*00-09*/
24     11, 11, 11, 11, 11, 11, 11, 11, 11, 12, /*10-19*/
25     12, 12, 12, 12, 12, 12, 12, 12, 12, 12, /*20-29*/
26     13, 13, 13, 13, 13, 13, 13, 13, 13, 13, /*30-49*/
27     13, 14, 14, 14, 14, 14, 14, 14, 14, 14, /*40-49*/
28     15, 15, 15, 15, 15, 15, 16, 16, 16, 17 /*50-59*/
29 };
30
31 bool get_stat_limits(player_type *creature_ptr);
32 void initialize_chara_limit(chara_limit_type *chara_limit_ptr);
33 bool get_chara_limits(player_type *creature_ptr, chara_limit_type *chara_limit_ptr);
34 static s32b get_autoroller_prob(int *minval);