1 #include "display-util.h"
2 #include "term/term-color-types.h"
13 { 1, 10, 25, "打撃修正(格闘)"},
14 { 1, 10, 25, "打撃修正(両手)"},
15 { 1, 10, 25, "打撃修正(右手)"},
16 { 1, 10, 25, "打撃修正(左手)"},
17 { 1, 11, 25, "打撃修正(左手)"},
18 { 1, 11, 25, "打撃修正(右手)"},
20 { 1, 15, 25, "射撃攻撃修正"},
21 { 1, 16, 25, "射撃武器倍率"},
32 {29, 20, 21, "プレイ時間"},
33 {53, 10, -1, "打撃命中 :"},
34 {53, 11, -1, "射撃命中 :"},
35 {53, 12, -1, "魔法防御 :"},
36 {53, 13, -1, "隠密行動 :"},
40 {53, 18, -1, "魔法道具 :"},
43 { 1, 13, 25, "平均ダメージ"},
44 {53, 20, -1, "赤外線視力:"},
50 { 1, 7, -1, "守護魔神 : "},
58 {53, 19, -1, "掘削 :" },
62 { 1, 10, 25, "Bare hand"},
63 { 1, 10, 25, "Two hands"},
64 { 1, 10, 25, "Right hand"},
65 { 1, 10, 25, "Left hand"},
66 { 1, 11, 25, "Left hand"},
67 { 1, 11, 25, "Right hand"},
68 { 1, 11, 25, "Posture"},
69 { 1, 15, 25, "Shooting"},
70 { 1, 16, 25, "Multiplier"},
71 { 1, 20, 25, "Speed"},
73 {29, 13, 21, "Level"},
74 {29, 14, 21, "Experience"},
75 {29, 15, 21, "Max Exp"},
76 {29, 16, 21, "Exp to Adv"},
79 {29, 10, 21, "Hit point"},
80 {29, 11, 21, "SP (Mana)"},
81 {29, 20, 21, "Play time"},
82 {53, 10, -1, "Fighting : "},
83 {53, 11, -1, "Bows/Throw : "},
84 {53, 12, -1, "SavingThrow: "},
85 {53, 13, -1, "Stealth : "},
86 {53, 15, -1, "Perception : "},
87 {53, 16, -1, "Searching : "},
88 {53, 17, -1, "Disarming : "},
89 {53, 18, -1, "MagicDevice: "},
90 { 1, 12, 25, "Blows/Round"},
91 { 1, 17, 25, "Shots/Round"},
92 { 1, 13, 25, "AverageDmg/Rnd"},
93 {53, 20, -1, "Infravision: "},
94 {26, 1, -1, "Name : "},
95 { 1, 3, -1, "Sex : "},
96 { 1, 4, -1, "Race : "},
97 { 1, 5, -1, "Class : "},
98 { 1, 6, -1, "Magic : "},
99 { 1, 7, -1, "Patron : "},
101 {29, 4, 21, "Height"},
102 {29, 5, 21, "Weight"},
103 {29, 6, 21, "Social Class"},
104 {29, 7, 21, "Align"},
105 {29, 14, 21, "Construction"},
106 {29, 16, 21, "Const to Adv"},
107 {53, 19, -1, "Digging : " },
113 * @brief プレイヤーのステータス1種を出力する
115 * @param val 値を保管した文字列ポインタ
119 void display_player_one_line(int entry, concptr val, TERM_COLOR attr)
121 concptr head = disp_player_line[entry].header;
122 int head_len = strlen(head);
123 int row = disp_player_line[entry].row;
124 int col = disp_player_line[entry].col;
125 int len = disp_player_line[entry].len;
126 term_putstr(col, row, -1, TERM_WHITE, head);
132 term_putstr(col + head_len, row, -1, attr, val);
136 int val_len = len - head_len;
138 sprintf(buf, "%*.*s", val_len, val_len, val);
139 term_putstr(col + head_len, row, -1, attr, buf);