OSDN Git Service

Merge pull request #1774 from habu1010/feature/refactor-weapon-skill-table
[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(player_type *player_ptr)
18 {
19     if (!autoroller)
20         return;
21
22     const int col = 22;
23     for (int i = 0; i < A_MAX; i++) {
24         int j = rp_ptr->r_adj[i] + cp_ptr->c_adj[i] + ap_ptr->a_adj[i];
25         int m = adjust_stat(player_ptr->stat_max[i], j);
26         char buf[80];
27         cnv_stat(m, buf);
28         c_put_str(TERM_L_GREEN, buf, 3 + i, col + 24);
29     }
30 }