OSDN Git Service

[Refactor] #40233 Moved display_store() from store.c to display-store.c/h
[hengband/hengband.git] / src / io / mutations-dump.c
1 /*!
2  * @brief 突然変異の一覧を出力する
3  * @date 2020/04/24
4  * @author Hourier
5  */
6
7 #include "io/mutations-dump.h"
8 #include "mutation/mutation-flag-types.h"
9
10 /*!
11  * @brief ファイルポインタを通じて突然変異の一覧を出力する
12  * @param out_file 出力先ファイルポインタ
13  * @return なし
14  */
15 void dump_mutations(player_type *creature_ptr, FILE *out_file)
16 {
17     if (!out_file)
18         return;
19
20     if (creature_ptr->muta1) {
21         if (creature_ptr->muta1 & MUT1_SPIT_ACID)
22             fprintf(out_file, _(" あなたは酸を吹きかけることができる。(ダメージ レベルX1)\n", " You can spit acid (dam lvl).\n"));
23
24         if (creature_ptr->muta1 & MUT1_BR_FIRE)
25             fprintf(out_file, _(" あなたは炎のブレスを吐くことができる。(ダメージ レベルX2)\n", " You can breathe fire (dam lvl * 2).\n"));
26
27         if (creature_ptr->muta1 & MUT1_HYPN_GAZE)
28             fprintf(out_file, _(" あなたの睨みは催眠効果をもつ。\n", " Your gaze is hypnotic.\n"));
29
30         if (creature_ptr->muta1 & MUT1_TELEKINES)
31             fprintf(out_file, _(" あなたは念動力をもっている。\n", " You are telekinetic.\n"));
32
33         if (creature_ptr->muta1 & MUT1_VTELEPORT)
34             fprintf(out_file, _(" あなたは自分の意思でテレポートできる。\n", " You can teleport at will.\n"));
35
36         if (creature_ptr->muta1 & MUT1_MIND_BLST)
37             fprintf(out_file, _(" あなたは敵を精神攻撃できる。\n", " You can Mind Blast your enemies.\n"));
38
39         if (creature_ptr->muta1 & MUT1_RADIATION)
40             fprintf(out_file, _(" あなたは自分の意思で放射能を発生することができる。\n", " You can emit hard radiation at will.\n"));
41
42         if (creature_ptr->muta1 & MUT1_VAMPIRISM)
43             fprintf(out_file, _(" あなたは吸血鬼のように敵から生命力を吸収することができる。\n", " You can drain life from a foe like a vampire.\n"));
44
45         if (creature_ptr->muta1 & MUT1_SMELL_MET)
46             fprintf(out_file, _(" あなたは近くにある貴金属をかぎ分けることができる。\n", " You can smell nearby precious metal.\n"));
47
48         if (creature_ptr->muta1 & MUT1_SMELL_MON)
49             fprintf(out_file, _(" あなたは近くのモンスターの存在をかぎ分けることができる。\n", " You can smell nearby monsters.\n"));
50
51         if (creature_ptr->muta1 & MUT1_BLINK)
52             fprintf(out_file, _(" あなたは短い距離をテレポートできる。\n", " You can teleport yourself short distances.\n"));
53
54         if (creature_ptr->muta1 & MUT1_EAT_ROCK)
55             fprintf(out_file, _(" あなたは硬い岩を食べることができる。\n", " You can consume solid rock.\n"));
56
57         if (creature_ptr->muta1 & MUT1_SWAP_POS)
58             fprintf(out_file, _(" あなたは他の者と場所を入れ替わることができる。\n", " You can switch locations with another being.\n"));
59
60         if (creature_ptr->muta1 & MUT1_SHRIEK)
61             fprintf(out_file, _(" あなたは身の毛もよだつ叫び声を発することができる。\n", " You can emit a horrible shriek.\n"));
62
63         if (creature_ptr->muta1 & MUT1_ILLUMINE)
64             fprintf(out_file, _(" あなたは明るい光を放つことができる。\n", " You can emit bright light.\n"));
65
66         if (creature_ptr->muta1 & MUT1_DET_CURSE)
67             fprintf(out_file, _(" あなたは邪悪な魔法の危険を感じとることができる。\n", " You can feel the danger of evil magic.\n"));
68
69         if (creature_ptr->muta1 & MUT1_BERSERK)
70             fprintf(out_file, _(" あなたは自分の意思で狂乱戦闘状態になることができる。\n", " You can drive yourself into a berserk frenzy.\n"));
71
72         if (creature_ptr->muta1 & MUT1_POLYMORPH)
73             fprintf(out_file, _(" あなたは自分の意志で変化できる。\n", " You can polymorph yourself at will.\n"));
74
75         if (creature_ptr->muta1 & MUT1_MIDAS_TCH)
76             fprintf(out_file, _(" あなたは通常アイテムを金に変えることができる。\n", " You can turn ordinary items to gold.\n"));
77
78         if (creature_ptr->muta1 & MUT1_GROW_MOLD)
79             fprintf(out_file, _(" あなたは周囲にキノコを生やすことができる。\n", " You can cause mold to grow near you.\n"));
80
81         if (creature_ptr->muta1 & MUT1_RESIST)
82             fprintf(out_file, _(" あなたは元素の攻撃に対して身を硬くすることができる。\n", " You can harden yourself to the ravages of the elements.\n"));
83
84         if (creature_ptr->muta1 & MUT1_EARTHQUAKE)
85             fprintf(out_file, _(" あなたは周囲のダンジョンを崩壊させることができる。\n", " You can bring down the dungeon around your ears.\n"));
86
87         if (creature_ptr->muta1 & MUT1_EAT_MAGIC)
88             fprintf(out_file, _(" あなたは魔法のエネルギーを自分の物として使用できる。\n", " You can consume magic energy for your own use.\n"));
89
90         if (creature_ptr->muta1 & MUT1_WEIGH_MAG)
91             fprintf(out_file, _(" あなたは自分に影響を与える魔法の力を感じることができる。\n", " You can feel the strength of the magics affecting you.\n"));
92
93         if (creature_ptr->muta1 & MUT1_STERILITY)
94             fprintf(out_file, _(" あなたは集団的生殖不能を起こすことができる。\n", " You can cause mass impotence.\n"));
95
96         if (creature_ptr->muta1 & MUT1_HIT_AND_AWAY)
97             fprintf(out_file, _(" あなたは攻撃した後身を守るため逃げることができる。\n", " You can run for your life after hitting something.\n"));
98
99         if (creature_ptr->muta1 & MUT1_DAZZLE)
100             fprintf(out_file, _(" あなたは混乱と盲目を引き起こす放射能を発生することができる。 \n", " You can emit confusing, blinding radiation.\n"));
101
102         if (creature_ptr->muta1 & MUT1_LASER_EYE)
103             fprintf(out_file, _(" あなたは目からレーザー光線を発射することができる。\n", " Your eyes can fire laser beams.\n"));
104
105         if (creature_ptr->muta1 & MUT1_RECALL)
106             fprintf(out_file, _(" あなたは街とダンジョンの間を行き来することができる。\n", " You can travel between town and the depths.\n"));
107
108         if (creature_ptr->muta1 & MUT1_BANISH)
109             fprintf(out_file, _(" あなたは邪悪なモンスターを地獄に落とすことができる。\n", " You can send evil creatures directly to Hell.\n"));
110
111         if (creature_ptr->muta1 & MUT1_COLD_TOUCH)
112             fprintf(out_file, _(" あなたは物を触って凍らせることができる。\n", " You can freeze things with a touch.\n"));
113
114         if (creature_ptr->muta1 & MUT1_LAUNCHER)
115             fprintf(out_file, _(" あなたはアイテムを力強く投げることができる。\n", " You can hurl objects with great force.\n"));
116     }
117
118     if (creature_ptr->muta2) {
119         if (creature_ptr->muta2 & MUT2_BERS_RAGE)
120             fprintf(out_file, _(" あなたは狂戦士化の発作を起こす。\n", " You are subject to berserker fits.\n"));
121
122         if (creature_ptr->muta2 & MUT2_COWARDICE)
123             fprintf(out_file, _(" あなたは時々臆病になる。\n", " You are subject to cowardice.\n"));
124
125         if (creature_ptr->muta2 & MUT2_RTELEPORT)
126             fprintf(out_file, _(" あなたはランダムにテレポートする。\n", " You sometimes randomly teleport.\n"));
127
128         if (creature_ptr->muta2 & MUT2_ALCOHOL)
129             fprintf(out_file, _(" あなたの体はアルコールを分泌する。\n", " Your body produces alcohol.\n"));
130
131         if (creature_ptr->muta2 & MUT2_HALLU)
132             fprintf(out_file, _(" あなたは幻覚を引き起こす精神錯乱に侵されている。\n", " You have a hallucinatory insanity.\n"));
133
134         if (creature_ptr->muta2 & MUT2_FLATULENT)
135             fprintf(out_file, _(" あなたは制御できない強烈な屁をこく。\n", " You are subject to uncontrollable flatulence.\n"));
136
137         if (creature_ptr->muta2 & MUT2_PROD_MANA)
138             fprintf(out_file, _(" あなたは制御不能な魔法のエネルギーを発している。\n", " You produce magical energy uncontrollably.\n"));
139
140         if (creature_ptr->muta2 & MUT2_ATT_DEMON)
141             fprintf(out_file, _(" あなたはデーモンを引きつける。\n", " You attract demons.\n"));
142
143         if (creature_ptr->muta2 & MUT2_SCOR_TAIL)
144             fprintf(out_file, _(" あなたはサソリの尻尾が生えている。(毒、ダメージ 3d7)\n", " You have a scorpion tail (poison, 3d7).\n"));
145
146         if (creature_ptr->muta2 & MUT2_HORNS)
147             fprintf(out_file, _(" あなたは角が生えている。(ダメージ 2d6)\n", " You have horns (dam. 2d6).\n"));
148
149         if (creature_ptr->muta2 & MUT2_BEAK)
150             fprintf(out_file, _(" あなたはクチバシが生えている。(ダメージ 2d4)\n", " You have a beak (dam. 2d4).\n"));
151
152         if (creature_ptr->muta2 & MUT2_SPEED_FLUX)
153             fprintf(out_file, _(" あなたはランダムに早く動いたり遅く動いたりする。\n", " You move faster or slower randomly.\n"));
154
155         if (creature_ptr->muta2 & MUT2_BANISH_ALL)
156             fprintf(out_file, _(" あなたは時々近くのモンスターを消滅させる。\n", " You sometimes cause nearby creatures to vanish.\n"));
157
158         if (creature_ptr->muta2 & MUT2_EAT_LIGHT)
159             fprintf(out_file, _(" あなたは時々周囲の光を吸収して栄養にする。\n", " You sometimes feed off of the light around you.\n"));
160
161         if (creature_ptr->muta2 & MUT2_TRUNK)
162             fprintf(out_file, _(" あなたは象のような鼻を持っている。(ダメージ 1d4)\n", " You have an elephantine trunk (dam 1d4).\n"));
163
164         if (creature_ptr->muta2 & MUT2_ATT_ANIMAL)
165             fprintf(out_file, _(" あなたは動物を引きつける。\n", " You attract animals.\n"));
166
167         if (creature_ptr->muta2 & MUT2_TENTACLES)
168             fprintf(out_file, _(" あなたは邪悪な触手を持っている。(ダメージ 2d5)\n", " You have evil looking tentacles (dam 2d5).\n"));
169
170         if (creature_ptr->muta2 & MUT2_RAW_CHAOS)
171             fprintf(out_file, _(" あなたはしばしば純カオスに包まれる。\n", " You occasionally are surrounded with raw chaos.\n"));
172
173         if (creature_ptr->muta2 & MUT2_NORMALITY)
174             fprintf(out_file, _(" あなたは変異していたが、回復してきている。\n", " You may be mutated, but you're recovering.\n"));
175
176         if (creature_ptr->muta2 & MUT2_WRAITH)
177             fprintf(out_file, _(" あなたの肉体は幽体化したり実体化したりする。\n", " You fade in and out of physical reality.\n"));
178
179         if (creature_ptr->muta2 & MUT2_POLY_WOUND)
180             fprintf(out_file, _(" あなたの健康はカオスの力に影響を受ける。\n", " Your health is subject to chaotic forces.\n"));
181
182         if (creature_ptr->muta2 & MUT2_WASTING)
183             fprintf(out_file, _(" あなたは衰弱する恐ろしい病気にかかっている。\n", " You have a horrible wasting disease.\n"));
184
185         if (creature_ptr->muta2 & MUT2_ATT_DRAGON)
186             fprintf(out_file, _(" あなたはドラゴンを引きつける。\n", " You attract dragons.\n"));
187
188         if (creature_ptr->muta2 & MUT2_WEIRD_MIND)
189             fprintf(out_file, _(" あなたの精神はランダムに拡大したり縮小したりしている。\n", " Your mind randomly expands and contracts.\n"));
190
191         if (creature_ptr->muta2 & MUT2_NAUSEA)
192             fprintf(out_file, _(" あなたの胃は非常に落ち着きがない。\n", " You have a seriously upset stomach.\n"));
193
194         if (creature_ptr->muta2 & MUT2_CHAOS_GIFT)
195             fprintf(out_file, _(" あなたはカオスの守護悪魔から褒美をうけとる。\n", " Chaos deities give you gifts.\n"));
196
197         if (creature_ptr->muta2 & MUT2_WALK_SHAD)
198             fprintf(out_file, _(" あなたはしばしば他の「影」に迷い込む。\n", " You occasionally stumble into other shadows.\n"));
199
200         if (creature_ptr->muta2 & MUT2_WARNING)
201             fprintf(out_file, _(" あなたは敵に関する警告を感じる。\n", " You receive warnings about your foes.\n"));
202
203         if (creature_ptr->muta2 & MUT2_INVULN)
204             fprintf(out_file, _(" あなたは時々負け知らずな気分になる。\n", " You occasionally feel invincible.\n"));
205
206         if (creature_ptr->muta2 & MUT2_SP_TO_HP)
207             fprintf(out_file, _(" あなたは時々血が筋肉にどっと流れる。\n", " Your blood sometimes rushes to your muscles.\n"));
208
209         if (creature_ptr->muta2 & MUT2_HP_TO_SP)
210             fprintf(out_file, _(" あなたは時々頭に血がどっと流れる。\n", " Your blood sometimes rushes to your head.\n"));
211
212         if (creature_ptr->muta2 & MUT2_DISARM)
213             fprintf(out_file, _(" あなたはよくつまづいて物を落とす。\n", " You occasionally stumble and drop things.\n"));
214     }
215
216     if (creature_ptr->muta3) {
217         if (creature_ptr->muta3 & MUT3_HYPER_STR)
218             fprintf(out_file, _(" あなたは超人的に強い。(腕力+4)\n", " You are superhumanly strong (+4 STR).\n"));
219
220         if (creature_ptr->muta3 & MUT3_PUNY)
221             fprintf(out_file, _(" あなたは虚弱だ。(腕力-4)\n", " You are puny (-4 STR).\n"));
222
223         if (creature_ptr->muta3 & MUT3_HYPER_INT)
224             fprintf(out_file, _(" あなたの脳は生体コンピュータだ。(知能&賢さ+4)\n", " Your brain is a living computer (+4 INT/WIS).\n"));
225
226         if (creature_ptr->muta3 & MUT3_MORONIC)
227             fprintf(out_file, _(" あなたは精神薄弱だ。(知能&賢さ-4)\n", " You are moronic (-4 INT/WIS).\n"));
228
229         if (creature_ptr->muta3 & MUT3_RESILIENT)
230             fprintf(out_file, _(" あなたの体は弾力性に富んでいる。(耐久+4)\n", " You are very resilient (+4 CON).\n"));
231
232         if (creature_ptr->muta3 & MUT3_XTRA_FAT)
233             fprintf(out_file, _(" あなたは極端に太っている。(耐久+2,スピード-2)\n", " You are extremely fat (+2 CON, -2 speed).\n"));
234
235         if (creature_ptr->muta3 & MUT3_ALBINO)
236             fprintf(out_file, _(" あなたはアルビノだ。(耐久-4)\n", " You are albino (-4 CON).\n"));
237
238         if (creature_ptr->muta3 & MUT3_FLESH_ROT)
239             fprintf(out_file, _(" あなたの肉体は腐敗している。(耐久-2,魅力-1)\n", " Your flesh is rotting (-2 CON, -1 CHR).\n"));
240
241         if (creature_ptr->muta3 & MUT3_SILLY_VOI)
242             fprintf(out_file, _(" あなたの声は間抜けなキーキー声だ。(魅力-4)\n", " Your voice is a silly squeak (-4 CHR).\n"));
243
244         if (creature_ptr->muta3 & MUT3_BLANK_FAC)
245             fprintf(out_file, _(" あなたはのっぺらぼうだ。(魅力-1)\n", " Your face is featureless (-1 CHR).\n"));
246
247         if (creature_ptr->muta3 & MUT3_ILL_NORM)
248             fprintf(out_file, _(" あなたは幻影に覆われている。\n", " Your appearance is masked with illusion.\n"));
249
250         if (creature_ptr->muta3 & MUT3_XTRA_EYES)
251             fprintf(out_file, _(" あなたは余分に二つの目を持っている。(探索+15)\n", " You have an extra pair of eyes (+15 search).\n"));
252
253         if (creature_ptr->muta3 & MUT3_MAGIC_RES)
254             fprintf(out_file, _(" あなたは魔法への耐性をもっている。\n", " You are resistant to magic.\n"));
255
256         if (creature_ptr->muta3 & MUT3_XTRA_NOIS)
257             fprintf(out_file, _(" あなたは変な音を発している。(隠密-3)\n", " You make a lot of strange noise (-3 stealth).\n"));
258
259         if (creature_ptr->muta3 & MUT3_INFRAVIS)
260             fprintf(out_file, _(" あなたは素晴らしい赤外線視力を持っている。(+3)\n", " You have remarkable infravision (+3).\n"));
261
262         if (creature_ptr->muta3 & MUT3_XTRA_LEGS)
263             fprintf(out_file, _(" あなたは余分に二本の足が生えている。(加速+3)\n", " You have an extra pair of legs (+3 speed).\n"));
264
265         if (creature_ptr->muta3 & MUT3_SHORT_LEG)
266             fprintf(out_file, _(" あなたの足は短い突起だ。(加速-3)\n", " Your legs are short stubs (-3 speed).\n"));
267
268         if (creature_ptr->muta3 & MUT3_ELEC_TOUC)
269             fprintf(out_file, _(" あなたの血管には電流が流れている。\n", " Electricity runs through your veins.\n"));
270
271         if (creature_ptr->muta3 & MUT3_FIRE_BODY)
272             fprintf(out_file, _(" あなたの体は炎につつまれている。\n", " Your body is enveloped in flames.\n"));
273
274         if (creature_ptr->muta3 & MUT3_WART_SKIN)
275             fprintf(out_file, _(" あなたの肌はイボに被われている。(魅力-2, AC+5)\n", " Your skin is covered with warts (-2 CHR, +5 AC).\n"));
276
277         if (creature_ptr->muta3 & MUT3_SCALES)
278             fprintf(out_file, _(" あなたの肌は鱗になっている。(魅力-1, AC+10)\n", " Your skin has turned into scales (-1 CHR, +10 AC).\n"));
279
280         if (creature_ptr->muta3 & MUT3_IRON_SKIN)
281             fprintf(out_file, _(" あなたの肌は鉄でできている。(器用-1, AC+25)\n", " Your skin is made of steel (-1 DEX, +25 AC).\n"));
282
283         if (creature_ptr->muta3 & MUT3_WINGS)
284             fprintf(out_file, _(" あなたは羽を持っている。\n", " You have wings.\n"));
285
286         if (creature_ptr->muta3 & MUT3_FEARLESS)
287             fprintf(out_file, _(" あなたは全く恐怖を感じない。\n", " You are completely fearless.\n"));
288
289         if (creature_ptr->muta3 & MUT3_REGEN)
290             fprintf(out_file, _(" あなたは急速に回復する。\n", " You are regenerating.\n"));
291
292         if (creature_ptr->muta3 & MUT3_ESP)
293             fprintf(out_file, _(" あなたはテレパシーを持っている。\n", " You are telepathic.\n"));
294
295         if (creature_ptr->muta3 & MUT3_LIMBER)
296             fprintf(out_file, _(" あなたの体は非常にしなやかだ。(器用+3)\n", " Your body is very limber (+3 DEX).\n"));
297
298         if (creature_ptr->muta3 & MUT3_ARTHRITIS)
299             fprintf(out_file, _(" あなたはいつも関節に痛みを感じている。(器用-3)\n", " Your joints ache constantly (-3 DEX).\n"));
300
301         if (creature_ptr->muta3 & MUT3_VULN_ELEM)
302             fprintf(out_file, _(" あなたは元素の攻撃に弱い。\n", " You are susceptible to damage from the elements.\n"));
303
304         if (creature_ptr->muta3 & MUT3_MOTION)
305             fprintf(out_file, _(" あなたの動作は正確で力強い。(隠密+1)\n", " Your movements are precise and forceful (+1 STL).\n"));
306
307         if (creature_ptr->muta3 & MUT3_GOOD_LUCK)
308             fprintf(out_file, _(" あなたは白いオーラにつつまれている。\n", " There is a white aura surrounding you.\n"));
309
310         if (creature_ptr->muta3 & MUT3_BAD_LUCK)
311             fprintf(out_file, _(" あなたは黒いオーラにつつまれている。\n", " There is a black aura surrounding you.\n"));
312     }
313 }