OSDN Git Service

[Refactor] #3286 Removed player-redraw-types.h
[hengbandforosx/hengbandosx.git] / src / player-info / body-improvement-info.cpp
1 #include "player-info/body-improvement-info.h"
2 #include "player-info/self-info-util.h"
3 #include "player/player-status-flags.h"
4 #include "player/player-status.h"
5 #include "system/player-type-definition.h"
6
7 /*!< @todo 並び順の都合で連番を付ける。まとめても良いならまとめてしまう予定 */
8 void set_body_improvement_info_1(PlayerType *player_ptr, self_info_type *self_ptr)
9 {
10     if (is_blessed(player_ptr)) {
11         self_ptr->info[self_ptr->line++] = _("あなたは高潔さを感じている。", "You feel rightous.");
12     }
13
14     if (is_hero(player_ptr)) {
15         self_ptr->info[self_ptr->line++] = _("あなたはヒーロー気分だ。", "You feel heroic.");
16     }
17
18     if (is_shero(player_ptr)) {
19         self_ptr->info[self_ptr->line++] = _("あなたは戦闘狂だ。", "You are in a battle rage.");
20     }
21
22     if (player_ptr->protevil) {
23         self_ptr->info[self_ptr->line++] = _("あなたは邪悪なる存在から守られている。", "You are protected from evil.");
24     }
25
26     if (player_ptr->shield) {
27         self_ptr->info[self_ptr->line++] = _("あなたは神秘のシールドで守られている。", "You are protected by a mystic shield.");
28     }
29
30     if (is_invuln(player_ptr)) {
31         self_ptr->info[self_ptr->line++] = _("あなたは現在傷つかない。", "You are temporarily invulnerable.");
32     }
33
34     if (player_ptr->wraith_form) {
35         self_ptr->info[self_ptr->line++] = _("あなたは一時的に幽体化している。", "You are temporarily incorporeal.");
36     }
37 }
38
39 /*!< @todo 並び順の都合で連番を付ける。まとめても良いならまとめてしまう予定 */
40 void set_body_improvement_info_2(PlayerType *player_ptr, self_info_type *self_ptr)
41 {
42     if (player_ptr->new_spells) {
43         self_ptr->info[self_ptr->line++] = _("あなたは呪文や祈りを学ぶことができる。", "You can learn some spells/prayers.");
44     }
45
46     if (player_ptr->word_recall) {
47         self_ptr->info[self_ptr->line++] = _("あなたはすぐに帰還するだろう。", "You will soon be recalled.");
48     }
49
50     if (player_ptr->alter_reality) {
51         self_ptr->info[self_ptr->line++] = _("あなたはすぐにこの世界を離れるだろう。", "You will soon be altered.");
52     }
53
54     if (player_ptr->see_infra) {
55         self_ptr->info[self_ptr->line++] = _("あなたの瞳は赤外線に敏感である。", "Your eyes are sensitive to infrared light.");
56     }
57
58     if (player_ptr->see_inv) {
59         self_ptr->info[self_ptr->line++] = _("あなたは透明なモンスターを見ることができる。", "You can see invisible creatures.");
60     }
61
62     if (player_ptr->levitation) {
63         self_ptr->info[self_ptr->line++] = _("あなたは飛ぶことができる。", "You can fly.");
64     }
65
66     if (player_ptr->free_act) {
67         self_ptr->info[self_ptr->line++] = _("あなたは麻痺知らずの効果を持っている。", "You have free action.");
68     }
69
70     if (player_ptr->regenerate) {
71         self_ptr->info[self_ptr->line++] = _("あなたは素早く体力を回復する。", "You regenerate quickly.");
72     }
73
74     if (player_ptr->slow_digest) {
75         self_ptr->info[self_ptr->line++] = _("あなたは食欲が少ない。", "Your appetite is small.");
76     }
77 }
78
79 /*!< @todo 並び順の都合で連番を付ける。まとめても良いならまとめてしまう予定 */
80 void set_body_improvement_info_3(PlayerType *player_ptr, self_info_type *self_ptr)
81 {
82     if (player_ptr->hold_exp) {
83         self_ptr->info[self_ptr->line++] = _("あなたは自己の経験値をしっかりと維持する。", "You have a firm hold on your experience.");
84     }
85
86     if (has_reflect(player_ptr)) {
87         self_ptr->info[self_ptr->line++] = _("あなたは矢の呪文を反射する。", "You reflect bolt spells.");
88     }
89
90     if (has_resist_curse(player_ptr)) {
91         self_ptr->info[self_ptr->line++] = _("あなたはより強く呪いに抵抗できる。", "You can resist curses powerfully.");
92     }
93
94     if (has_sh_fire(player_ptr)) {
95         self_ptr->info[self_ptr->line++] = _("あなたは炎のオーラに包まれている。", "You are surrounded with a fiery aura.");
96     }
97
98     if (get_player_flags(player_ptr, TR_SELF_FIRE)) {
99         self_ptr->info[self_ptr->line++] = _("あなたは身を焼く炎に包まれている。", "You are being damaged with fire.");
100     }
101
102     if (has_sh_elec(player_ptr)) {
103         self_ptr->info[self_ptr->line++] = _("あなたは電気のオーラに包まれている。", "You are surrounded with an electricity aura.");
104     }
105
106     if (get_player_flags(player_ptr, TR_SELF_ELEC)) {
107         self_ptr->info[self_ptr->line++] = _("あなたは身を焦がす電撃に包まれている。", "You are being damaged with electricity.");
108     }
109
110     if (has_sh_cold(player_ptr)) {
111         self_ptr->info[self_ptr->line++] = _("あなたは冷気のオーラに包まれている。", "You are surrounded with an aura of coldness.");
112     }
113
114     if (get_player_flags(player_ptr, TR_SELF_COLD)) {
115         self_ptr->info[self_ptr->line++] = _("あなたは身も凍る冷気に包まれている。", "You are being damaged with coldness.");
116     }
117
118     if (player_ptr->tim_sh_holy) {
119         self_ptr->info[self_ptr->line++] = _("あなたは聖なるオーラに包まれている。", "You are surrounded with a holy aura.");
120     }
121
122     if (player_ptr->tim_sh_touki) {
123         self_ptr->info[self_ptr->line++] = _("あなたは闘気のオーラに包まれている。", "You are surrounded with an energy aura.");
124     }
125
126     if (player_ptr->anti_magic) {
127         self_ptr->info[self_ptr->line++] = _("あなたは反魔法シールドに包まれている。", "You are surrounded by an anti-magic shell.");
128     }
129
130     if (player_ptr->anti_tele) {
131         self_ptr->info[self_ptr->line++] = _("あなたはテレポートできない。", "You cannot teleport.");
132     }
133
134     if (player_ptr->lite) {
135         self_ptr->info[self_ptr->line++] = _("あなたの身体は光っている。", "You are carrying a permanent light.");
136     }
137
138     if (player_ptr->warning) {
139         self_ptr->info[self_ptr->line++] = _("あなたは行動の前に危険を察知することができる。", "You will be warned before dangerous actions.");
140     }
141
142     if (player_ptr->dec_mana) {
143         self_ptr->info[self_ptr->line++] = _("あなたは少ない消費魔力で魔法を唱えることができる。", "You can cast spells with fewer mana points.");
144     }
145
146     if (player_ptr->easy_spell) {
147         self_ptr->info[self_ptr->line++] = _("あなたは低い失敗率で魔法を唱えることができる。", "Your magic fails less often.");
148     }
149
150     if (player_ptr->heavy_spell) {
151         self_ptr->info[self_ptr->line++] = _("あなたは高い失敗率で魔法を唱えなければいけない。", "Your magic fails more often.");
152     }
153
154     if (player_ptr->mighty_throw) {
155         self_ptr->info[self_ptr->line++] = _("あなたは強く物を投げる。", "You can throw objects powerfully.");
156     }
157 }
158
159 /*!< @todo 並び順の都合で連番を付ける。まとめても良いならまとめてしまう予定 */
160 void set_body_improvement_info_4(PlayerType *player_ptr, self_info_type *self_ptr)
161 {
162     if (has_resist_fear(player_ptr)) {
163         self_ptr->info[self_ptr->line++] = _("あなたは全く恐怖を感じない。", "You are completely fearless.");
164     }
165
166     if (has_resist_blind(player_ptr)) {
167         self_ptr->info[self_ptr->line++] = _("あなたの目は盲目への耐性を持っている。", "Your eyes are resistant to blindness.");
168     }
169
170     if (has_resist_time(player_ptr)) {
171         self_ptr->info[self_ptr->line++] = _("あなたは時間逆転への耐性を持っている。", "You are resistant to time.");
172     }
173 }