OSDN Git Service

Merge pull request #3569 from sikabane-works/release/3.0.0.88-alpha
[hengbandforosx/hengbandosx.git] / src / player-info / mutation-info.cpp
1 #include "player-info/mutation-info.h"
2 #include "mutation/mutation-flag-types.h"
3 #include "player-info/self-info-util.h"
4 #include "player/player-status-flags.h"
5 #include "system/player-type-definition.h"
6 #include "util/bit-flags-calculator.h"
7
8 /*!< @todo FEAELESS フラグも記述して問題ないと思われる */
9 void set_mutation_info(PlayerType *player_ptr, self_info_type *self_ptr)
10 {
11     if (player_ptr->muta.none()) {
12         return;
13     }
14
15     if (player_ptr->muta.has(PlayerMutationType::SPIT_ACID)) {
16         self_ptr->info[self_ptr->line++] = _("あなたは酸を吹きかけることができる。(ダメージ レベルX1)", "You can spit acid (dam lvl).");
17     }
18
19     if (player_ptr->muta.has(PlayerMutationType::BR_FIRE)) {
20         self_ptr->info[self_ptr->line++] = _("あなたは炎のブレスを吐くことができる。(ダメージ レベルX2)", "You can breathe fire (dam lvl * 2).");
21     }
22
23     if (player_ptr->muta.has(PlayerMutationType::HYPN_GAZE)) {
24         self_ptr->info[self_ptr->line++] = _("あなたの睨みは催眠効果をもつ。", "Your gaze is hypnotic.");
25     }
26
27     if (player_ptr->muta.has(PlayerMutationType::TELEKINES)) {
28         self_ptr->info[self_ptr->line++] = _("あなたは念動力をもっている。", "You are telekinetic.");
29     }
30
31     if (player_ptr->muta.has(PlayerMutationType::VTELEPORT)) {
32         self_ptr->info[self_ptr->line++] = _("あなたは自分の意思でテレポートできる。", "You can teleport at will.");
33     }
34
35     if (player_ptr->muta.has(PlayerMutationType::MIND_BLST)) {
36         self_ptr->info[self_ptr->line++] = _("あなたは精神攻撃を行える。(ダメージ 3~12d3)", "You can Mind Blast your enemies (3 to 12d3 dam).");
37     }
38
39     if (player_ptr->muta.has(PlayerMutationType::RADIATION)) {
40         self_ptr->info[self_ptr->line++] = _("あなたは自分の意思で強い放射線を発生することができる。(ダメージ レベルX2)", "You can emit hard radiation at will (dam lvl * 2).");
41     }
42
43     if (player_ptr->muta.has(PlayerMutationType::VAMPIRISM)) {
44         self_ptr->info[self_ptr->line++] = _(
45             "あなたは吸血鬼のように敵から生命力を吸収することができる。(ダメージ レベルX2)", "Like a vampire, you can drain life from a foe (dam lvl * 2).");
46     }
47
48     if (player_ptr->muta.has(PlayerMutationType::SMELL_MET)) {
49         self_ptr->info[self_ptr->line++] = _("あなたは近くにある貴金属をかぎ分けることができる。", "You can smell nearby precious metal.");
50     }
51
52     if (player_ptr->muta.has(PlayerMutationType::SMELL_MON)) {
53         self_ptr->info[self_ptr->line++] = _("あなたは近くのモンスターの存在をかぎ分けることができる。", "You can smell nearby monsters.");
54     }
55
56     if (player_ptr->muta.has(PlayerMutationType::BLINK)) {
57         self_ptr->info[self_ptr->line++] = _("あなたは短い距離をテレポートできる。", "You can teleport yourself short distances.");
58     }
59
60     if (player_ptr->muta.has(PlayerMutationType::EAT_ROCK)) {
61         self_ptr->info[self_ptr->line++] = _("あなたは硬い岩を食べることができる。", "You can consume solid rock.");
62     }
63
64     if (player_ptr->muta.has(PlayerMutationType::SWAP_POS)) {
65         self_ptr->info[self_ptr->line++] = _("あなたは他の者と場所を入れ替わることができる。", "You can switch locations with another being.");
66     }
67
68     if (player_ptr->muta.has(PlayerMutationType::SHRIEK)) {
69         self_ptr->info[self_ptr->line++] = _("あなたは身の毛もよだつ叫び声を発することができる。(ダメージ レベルX2)", "You can emit a horrible shriek (dam 2 * lvl).");
70     }
71
72     if (player_ptr->muta.has(PlayerMutationType::ILLUMINE)) {
73         self_ptr->info[self_ptr->line++] = _("あなたは明るい光を放つことができる。", "You can emit bright light.");
74     }
75
76     if (player_ptr->muta.has(PlayerMutationType::DET_CURSE)) {
77         self_ptr->info[self_ptr->line++] = _("あなたは邪悪な魔法の危険を感じとることができる。", "You can feel the danger of evil magic.");
78     }
79
80     if (player_ptr->muta.has(PlayerMutationType::BERSERK)) {
81         self_ptr->info[self_ptr->line++] = _("あなたは自分の意思で狂乱戦闘状態になることができる。", "You can drive yourself into a berserk frenzy.");
82     }
83
84     if (player_ptr->muta.has(PlayerMutationType::POLYMORPH)) {
85         self_ptr->info[self_ptr->line++] = _("あなたは自分の意志で変化できる。", "You can polymorph yourself at will.");
86     }
87
88     if (player_ptr->muta.has(PlayerMutationType::MIDAS_TCH)) {
89         self_ptr->info[self_ptr->line++] = _("あなたは通常アイテムを金に変えることができる。", "You can turn ordinary items to gold.");
90     }
91
92     if (player_ptr->muta.has(PlayerMutationType::GROW_MOLD)) {
93         self_ptr->info[self_ptr->line++] = _("あなたは周囲にキノコを生やすことができる。", "You can cause mold to grow near you.");
94     }
95
96     if (player_ptr->muta.has(PlayerMutationType::RESIST)) {
97         self_ptr->info[self_ptr->line++] = _("あなたは元素の攻撃に対して身を硬くすることができる。", "You can harden yourself to the ravages of the elements.");
98     }
99
100     if (player_ptr->muta.has(PlayerMutationType::EARTHQUAKE)) {
101         self_ptr->info[self_ptr->line++] = _("あなたは周囲のダンジョンを崩壊させることができる。", "You can bring down the dungeon around your ears.");
102     }
103
104     if (player_ptr->muta.has(PlayerMutationType::EAT_MAGIC)) {
105         self_ptr->info[self_ptr->line++] = _("あなたは魔法のエネルギーを自分の物として使用できる。", "You can consume magic energy for your own use.");
106     }
107
108     if (player_ptr->muta.has(PlayerMutationType::WEIGH_MAG)) {
109         self_ptr->info[self_ptr->line++] = _("あなたは自分に影響を与える魔法の力を感じることができる。", "You can feel the strength of the magics affecting you.");
110     }
111
112     if (player_ptr->muta.has(PlayerMutationType::STERILITY)) {
113         self_ptr->info[self_ptr->line++] = _("あなたは集団的生殖不能を起こすことができる。", "You can cause mass impotence.");
114     }
115
116     if (player_ptr->muta.has(PlayerMutationType::HIT_AND_AWAY)) {
117         self_ptr->info[self_ptr->line++] = _("あなたは攻撃した後身を守るため逃げることができる。", "You can run for your life after hitting something.");
118     }
119
120     if (player_ptr->muta.has(PlayerMutationType::DAZZLE)) {
121         self_ptr->info[self_ptr->line++] = _("あなたは混乱と盲目を引き起こす放射能を発生することができる。 ", "You can emit confusing, blinding radiation.");
122     }
123
124     if (player_ptr->muta.has(PlayerMutationType::LASER_EYE)) {
125         self_ptr->info[self_ptr->line++] = _("あなたは目からレーザー光線を発することができる。(ダメージ レベルX2)", "Your eyes can fire laser beams (dam 2 * lvl).");
126     }
127
128     if (player_ptr->muta.has(PlayerMutationType::RECALL)) {
129         self_ptr->info[self_ptr->line++] = _("あなたは街とダンジョンの間を行き来することができる。", "You can travel between town and the depths.");
130     }
131
132     if (player_ptr->muta.has(PlayerMutationType::BANISH)) {
133         self_ptr->info[self_ptr->line++] = _("あなたは邪悪なモンスターを地獄に落とすことができる。", "You can send evil creatures directly to Hell.");
134     }
135
136     if (player_ptr->muta.has(PlayerMutationType::COLD_TOUCH)) {
137         self_ptr->info[self_ptr->line++] = _("あなたは敵を触って凍らせることができる。(ダメージ レベルX3)", "You can freeze things with a touch (dam 3 * lvl).");
138     }
139
140     if (player_ptr->muta.has(PlayerMutationType::LAUNCHER)) {
141         self_ptr->info[self_ptr->line++] = _("あなたはアイテムを力強く投げることができる。", "You can hurl objects with great force.");
142     }
143
144     if (player_ptr->muta.has(PlayerMutationType::BERS_RAGE)) {
145         self_ptr->info[self_ptr->line++] = _("あなたは狂戦士化の発作を起こす。", "You are subject to berserker fits.");
146     }
147
148     if (player_ptr->muta.has(PlayerMutationType::COWARDICE)) {
149         self_ptr->info[self_ptr->line++] = _("あなたは時々臆病になる。", "You are subject to cowardice.");
150     }
151
152     if (player_ptr->muta.has(PlayerMutationType::RTELEPORT)) {
153         self_ptr->info[self_ptr->line++] = _("あなたはランダムにテレポートする。", "You may randomly teleport.");
154     }
155
156     if (player_ptr->muta.has(PlayerMutationType::ALCOHOL)) {
157         self_ptr->info[self_ptr->line++] = _("あなたの体はアルコールを分泌する。", "Your body produces alcohol.");
158     }
159
160     if (player_ptr->muta.has(PlayerMutationType::HALLU)) {
161         self_ptr->info[self_ptr->line++] = _("あなたは幻覚を引き起こす精神錯乱に侵されている。", "You have a hallucinatory insanity.");
162     }
163
164     if (player_ptr->muta.has(PlayerMutationType::FLATULENT)) {
165         self_ptr->info[self_ptr->line++] = _("あなたは制御できない強烈な屁をこく。", "You are subject to uncontrollable flatulence.");
166     }
167
168     if (player_ptr->muta.has(PlayerMutationType::PROD_MANA)) {
169         self_ptr->info[self_ptr->line++] = _("あなたは制御不能な魔法のエネルギーを発している。", "You produce magical energy uncontrollably.");
170     }
171
172     if (player_ptr->muta.has(PlayerMutationType::ATT_DEMON)) {
173         self_ptr->info[self_ptr->line++] = _("あなたはデーモンを引きつける。", "You attract demons.");
174     }
175
176     if (player_ptr->muta.has(PlayerMutationType::SCOR_TAIL)) {
177         self_ptr->info[self_ptr->line++] = _("あなたはサソリの尻尾が生えている。(毒、ダメージ 3d7)", "You have a scorpion tail (poison, 3d7).");
178     }
179
180     if (player_ptr->muta.has(PlayerMutationType::HORNS)) {
181         self_ptr->info[self_ptr->line++] = _("あなたは角が生えている。(ダメージ 2d6)", "You have horns (dam. 2d6).");
182     }
183
184     if (player_ptr->muta.has(PlayerMutationType::BEAK)) {
185         self_ptr->info[self_ptr->line++] = _("あなたはクチバシが生えている。(ダメージ 2d4)", "You have a beak (dam. 2d4).");
186     }
187
188     if (player_ptr->muta.has(PlayerMutationType::SPEED_FLUX)) {
189         self_ptr->info[self_ptr->line++] = _("あなたはランダムに早く動いたり遅く動いたりする。", "You move faster or slower randomly.");
190     }
191
192     if (player_ptr->muta.has(PlayerMutationType::BANISH_ALL)) {
193         self_ptr->info[self_ptr->line++] = _("あなたは時々近くのモンスターを消滅させる。", "You sometimes cause nearby creatures to vanish.");
194     }
195
196     if (player_ptr->muta.has(PlayerMutationType::EAT_LIGHT)) {
197         self_ptr->info[self_ptr->line++] = _("あなたは時々周囲の光を吸収して栄養にする。", "You sometimes feed off of the light around you.");
198     }
199
200     if (player_ptr->muta.has(PlayerMutationType::TRUNK)) {
201         self_ptr->info[self_ptr->line++] = _("あなたは象のような鼻を持っている。(ダメージ 1d4)", "You have an elephantine trunk (dam 1d4).");
202     }
203
204     if (player_ptr->muta.has(PlayerMutationType::ATT_ANIMAL)) {
205         self_ptr->info[self_ptr->line++] = _("あなたは動物を引きつける。", "You attract animals.");
206     }
207
208     if (player_ptr->muta.has(PlayerMutationType::TENTACLES)) {
209         self_ptr->info[self_ptr->line++] = _("あなたは邪悪な触手を持っている。(ダメージ 2d5)", "You have evil looking tentacles (dam 2d5).");
210     }
211
212     if (player_ptr->muta.has(PlayerMutationType::RAW_CHAOS)) {
213         self_ptr->info[self_ptr->line++] = _("あなたはしばしば純カオスに包まれる。", "You occasionally are surrounded with raw chaos.");
214     }
215
216     if (player_ptr->muta.has(PlayerMutationType::NORMALITY)) {
217         self_ptr->info[self_ptr->line++] = _("あなたは変異していたが、回復してきている。", "You may be mutated, but you're recovering.");
218     }
219
220     if (player_ptr->muta.has(PlayerMutationType::WRAITH)) {
221         self_ptr->info[self_ptr->line++] = _("あなたの肉体は幽体化したり実体化したりする。", "You fade in and out of physical reality.");
222     }
223
224     if (player_ptr->muta.has(PlayerMutationType::POLY_WOUND)) {
225         self_ptr->info[self_ptr->line++] = _("あなたの健康はカオスの力に影響を受ける。", "Your health is subject to chaotic forces.");
226     }
227
228     if (player_ptr->muta.has(PlayerMutationType::WASTING)) {
229         self_ptr->info[self_ptr->line++] = _("あなたは衰弱する恐ろしい病気にかかっている。", "You have a horrible wasting disease.");
230     }
231
232     if (player_ptr->muta.has(PlayerMutationType::ATT_DRAGON)) {
233         self_ptr->info[self_ptr->line++] = _("あなたはドラゴンを引きつける。", "You attract dragons.");
234     }
235
236     if (player_ptr->muta.has(PlayerMutationType::WEIRD_MIND)) {
237         self_ptr->info[self_ptr->line++] = _("あなたの精神はランダムに拡大したり縮小したりしている。", "Your mind randomly expands and contracts.");
238     }
239
240     if (player_ptr->muta.has(PlayerMutationType::NAUSEA)) {
241         self_ptr->info[self_ptr->line++] = _("あなたの胃は非常に落ち着きがない。", "You have a seriously upset stomach.");
242     }
243
244     if (player_ptr->muta.has(PlayerMutationType::CHAOS_GIFT)) {
245         self_ptr->info[self_ptr->line++] = _("あなたはカオスの守護悪魔から褒美をうけとる。", "Chaos deities give you gifts.");
246     }
247
248     if (player_ptr->muta.has(PlayerMutationType::WALK_SHAD)) {
249         self_ptr->info[self_ptr->line++] = _("あなたはしばしば他の「影」に迷い込む。", "You occasionally stumble into other shadows.");
250     }
251
252     if (player_ptr->muta.has(PlayerMutationType::WARNING)) {
253         self_ptr->info[self_ptr->line++] = _("あなたは敵に関する警告を感じる。", "You receive warnings about your foes.");
254     }
255
256     if (player_ptr->muta.has(PlayerMutationType::INVULN)) {
257         self_ptr->info[self_ptr->line++] = _("あなたは時々負け知らずな気分になる。", "You occasionally feel invincible.");
258     }
259
260     if (player_ptr->muta.has(PlayerMutationType::SP_TO_HP)) {
261         self_ptr->info[self_ptr->line++] = _("あなたは時々血が筋肉にどっと流れる。", "Your blood sometimes rushes to your muscles.");
262     }
263
264     if (player_ptr->muta.has(PlayerMutationType::HP_TO_SP)) {
265         self_ptr->info[self_ptr->line++] = _("あなたは時々頭に血がどっと流れる。", "Your blood sometimes rushes to your head.");
266     }
267
268     if (player_ptr->muta.has(PlayerMutationType::DISARM)) {
269         self_ptr->info[self_ptr->line++] = _("あなたはよくつまづいて物を落とす。", "You occasionally stumble and drop things.");
270     }
271
272     if (player_ptr->muta.has(PlayerMutationType::HYPER_STR)) {
273         self_ptr->info[self_ptr->line++] = _("あなたは超人的に強い。(腕力+4)", "You are superhumanly strong (+4 STR).");
274     }
275
276     if (player_ptr->muta.has(PlayerMutationType::PUNY)) {
277         self_ptr->info[self_ptr->line++] = _("あなたは虚弱だ。(腕力-4)", "You are puny (-4 STR).");
278     }
279
280     if (player_ptr->muta.has(PlayerMutationType::HYPER_INT)) {
281         self_ptr->info[self_ptr->line++] = _("あなたの脳は生体コンピュータだ。(知能&賢さ+4)", "Your brain is a living computer (+4 INT/WIS).");
282     }
283
284     if (player_ptr->muta.has(PlayerMutationType::MORONIC)) {
285         self_ptr->info[self_ptr->line++] = _("あなたは精神薄弱だ。(知能&賢さ-4)", "You are moronic (-4 INT/WIS).");
286     }
287
288     if (player_ptr->muta.has(PlayerMutationType::RESILIENT)) {
289         self_ptr->info[self_ptr->line++] = _("あなたは非常にタフだ。(耐久+4)", "You are very resilient (+4 CON).");
290     }
291
292     if (player_ptr->muta.has(PlayerMutationType::XTRA_FAT)) {
293         self_ptr->info[self_ptr->line++] = _("あなたは極端に太っている。(耐久+2,スピード-2)", "You are extremely fat (+2 CON, -2 speed).");
294     }
295
296     if (player_ptr->muta.has(PlayerMutationType::ALBINO)) {
297         self_ptr->info[self_ptr->line++] = _("あなたはアルビノだ。(耐久-4)", "You are an albino (-4 CON).");
298     }
299
300     if (player_ptr->muta.has(PlayerMutationType::FLESH_ROT)) {
301         self_ptr->info[self_ptr->line++] = _("あなたの肉体は腐敗している。(耐久-2,魅力-1)", "Your flesh is rotting (-2 CON, -1 CHR).");
302     }
303
304     if (player_ptr->muta.has(PlayerMutationType::SILLY_VOI)) {
305         self_ptr->info[self_ptr->line++] = _("あなたの声は間抜けなキーキー声だ。(魅力-4)", "Your voice is a silly squeak (-4 CHR).");
306     }
307
308     if (player_ptr->muta.has(PlayerMutationType::BLANK_FAC)) {
309         self_ptr->info[self_ptr->line++] = _("あなたはのっぺらぼうだ。(魅力-1)", "Your face is featureless (-1 CHR).");
310     }
311
312     if (player_ptr->muta.has(PlayerMutationType::ILL_NORM)) {
313         self_ptr->info[self_ptr->line++] = _("あなたは幻影に覆われている。", "Your appearance is masked with illusion.");
314     }
315
316     if (player_ptr->muta.has(PlayerMutationType::XTRA_EYES)) {
317         self_ptr->info[self_ptr->line++] = _("あなたは余分に二つの目を持っている。(探索+15)", "You have an extra pair of eyes (+15 search).");
318     }
319
320     if (player_ptr->muta.has(PlayerMutationType::MAGIC_RES)) {
321         self_ptr->info[self_ptr->line++] = _("あなたは魔法への耐性をもっている。", "You are resistant to magic.");
322     }
323
324     if (player_ptr->muta.has(PlayerMutationType::XTRA_NOIS)) {
325         self_ptr->info[self_ptr->line++] = _("あなたは変な音を発している。(隠密-3)", "You make a lot of strange noise (-3 stealth).");
326     }
327
328     if (player_ptr->muta.has(PlayerMutationType::INFRAVIS)) {
329         self_ptr->info[self_ptr->line++] = _("あなたは素晴らしい赤外線視力を持っている。(+3)", "You have remarkable infravision (+3).");
330     }
331
332     if (player_ptr->muta.has(PlayerMutationType::XTRA_LEGS)) {
333         self_ptr->info[self_ptr->line++] = _("あなたは余分に二本の足が生えている。(加速+3)", "You have an extra pair of legs (+3 speed).");
334     }
335
336     if (player_ptr->muta.has(PlayerMutationType::SHORT_LEG)) {
337         self_ptr->info[self_ptr->line++] = _("あなたの足は短い突起だ。(加速-3)", "Your legs are short stubs (-3 speed).");
338     }
339
340     if (player_ptr->muta.has(PlayerMutationType::ELEC_TOUC)) {
341         self_ptr->info[self_ptr->line++] = _("あなたの血管には電流が流れている。", "Electricity is running through your veins.");
342     }
343
344     if (player_ptr->muta.has(PlayerMutationType::FIRE_BODY)) {
345         self_ptr->info[self_ptr->line++] = _("あなたの体は炎につつまれている。", "Your body is enveloped in flames.");
346     }
347
348     if (player_ptr->muta.has(PlayerMutationType::WART_SKIN)) {
349         self_ptr->info[self_ptr->line++] = _("あなたの肌はイボに被われている。(魅力-2, AC+5)", "Your skin is covered with warts (-2 CHR, +5 AC).");
350     }
351
352     if (player_ptr->muta.has(PlayerMutationType::SCALES)) {
353         self_ptr->info[self_ptr->line++] = _("あなたの肌は鱗になっている。(魅力-1, AC+10)", "Your skin has turned into scales (-1 CHR, +10 AC).");
354     }
355
356     if (player_ptr->muta.has(PlayerMutationType::IRON_SKIN)) {
357         self_ptr->info[self_ptr->line++] = _("あなたの肌は鉄でできている。(器用-1, AC+25)", "Your skin is made of steel (-1 DEX, +25 AC).");
358     }
359
360     if (player_ptr->muta.has(PlayerMutationType::WINGS)) {
361         self_ptr->info[self_ptr->line++] = _("あなたは羽を持っている。", "You have wings.");
362     }
363
364     if (player_ptr->muta.has(PlayerMutationType::FEARLESS)) {
365         /* Unnecessary */
366     }
367
368     if (player_ptr->muta.has(PlayerMutationType::REGEN)) {
369         /* Unnecessary */
370     }
371
372     if (player_ptr->muta.has(PlayerMutationType::ESP)) {
373         /* Unnecessary */
374     }
375
376     if (player_ptr->muta.has(PlayerMutationType::LIMBER)) {
377         self_ptr->info[self_ptr->line++] = _("あなたの体は非常にしなやかだ。(器用+3)", "Your body is very limber (+3 DEX).");
378     }
379
380     if (player_ptr->muta.has(PlayerMutationType::ARTHRITIS)) {
381         self_ptr->info[self_ptr->line++] = _("あなたはいつも関節に痛みを感じている。(器用-3)", "Your joints ache constantly (-3 DEX).");
382     }
383
384     if (player_ptr->muta.has(PlayerMutationType::VULN_ELEM)) {
385         self_ptr->info[self_ptr->line++] = _("あなたは元素の攻撃に弱い。", "You are susceptible to damage from the elements.");
386     }
387
388     if (player_ptr->muta.has(PlayerMutationType::MOTION)) {
389         self_ptr->info[self_ptr->line++] = _("あなたの動作は正確で力強い。(隠密+1)", "Your movements are precise and forceful (+1 STL).");
390     }
391
392     if (has_good_luck(player_ptr)) {
393         self_ptr->info[self_ptr->line++] = _("あなたは白いオーラにつつまれている。", "There is a white aura surrounding you.");
394     }
395
396     if (player_ptr->muta.has(PlayerMutationType::BAD_LUCK)) {
397         self_ptr->info[self_ptr->line++] = _("あなたは黒いオーラにつつまれている。", "There is a black aura surrounding you.");
398     }
399 }