OSDN Git Service

[Refactor] mind_mirror_master をパスカルケース化
[hengbandforosx/hengbandosx.git] / src / view / display-birth.cpp
1 #include "view/display-birth.h"
2 #include "birth/auto-roller.h"
3 #include "birth/birth-stat.h"
4 #include "game-option/birth-options.h"
5 #include "player-info/class-info.h"
6 #include "player-info/race-info.h"
7 #include "player/player-personality.h"
8 #include "player/player-status.h"
9 #include "system/player-type-definition.h"
10 #include "term/screen-processor.h"
11 #include "term/term-color-types.h"
12
13 /*!
14  * @brief オートロール中のステータスを表示する / Display stat values, subset of "put_stats()"
15  * @details See 'display_player(p_ptr, )' for screen layout constraints.
16  */
17 void birth_put_stats(PlayerType *player_ptr)
18 {
19     if (!autoroller) {
20         return;
21     }
22
23     const int col = 22;
24     for (int i = 0; i < A_MAX; i++) {
25         int j = rp_ptr->r_adj[i] + cp_ptr->c_adj[i] + ap_ptr->a_adj[i];
26         int m = adjust_stat(player_ptr->stat_max[i], j);
27         char buf[80];
28         cnv_stat(m, buf);
29         c_put_str(TERM_L_GREEN, buf, 3 + i, col + 24);
30     }
31 }