OSDN Git Service

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