OSDN Git Service

61d2651f5dabade8f581cb7409afc482edabf4f9
[hengband/hengband.git] / src / mutation.c
1 /*!
2  * @file mutation.c
3  * @brief 突然変異ルールの実装 / Mutation effects (and racial powers)
4  * @date 2014/01/11
5  * @author
6  * Copyright (c) 1997 Ben Harrison, James E. Wilson, Robert A. Koeneke\n
7  *\n
8  * This software may be copied and distributed for educational, research,\n
9  * and not for profit purposes provided that this copyright and statement\n
10  * are included in all such copies.  Other copyrights may also apply.\n
11  * 2014 Deskull rearranged comment for Doxygen.\n
12  */
13
14 #include "angband.h"
15 #include "util.h"
16
17 #include "cmd-dump.h"
18 #include "mutation.h"
19
20 #include "selfinfo.h"
21 #include "spells-summon.h"
22 #include "avatar.h"
23 #include "player-status.h"
24 #include "player-effects.h"
25 #include "spells-status.h"
26 #include "object-hook.h"
27 #include "spells.h"
28 #include "cmd-basic.h"
29 #include "files.h"
30 #include "floor.h"
31 #include "targeting.h"
32
33 /*!
34  * @brief プレイヤーに突然変異を与える
35  * @param choose_mut 与えたい突然変異のID、0ならばランダムに選択
36  * @return なし
37  */
38 bool gain_mutation(player_type *creature_ptr, MUTATION_IDX choose_mut)
39 {
40         int attempts_left = 20;
41         concptr muta_desc = "";
42         bool muta_chosen = FALSE;
43         BIT_FLAGS muta_which = 0;
44         BIT_FLAGS *muta_class = NULL;
45
46         if (choose_mut) attempts_left = 1;
47
48         while (attempts_left--)
49         {
50                 switch (choose_mut ? choose_mut : (creature_ptr->pclass == CLASS_BERSERKER ? 74+randint1(119) : randint1(193)))
51                 {
52                 case 1: case 2: case 3: case 4:
53                         muta_class = &(creature_ptr->muta1);
54                         muta_which = MUT1_SPIT_ACID;
55                         muta_desc = _("酸を吐く能力を得た。", "You gain the ability to spit acid.");
56                         break;
57                         
58                 case 5: case 6: case 7:
59                         muta_class = &(creature_ptr->muta1);
60                         muta_which = MUT1_BR_FIRE;
61                         muta_desc = _("火を吐く能力を得た。", "You gain the ability to breathe fire.");
62                         break;
63                         
64                 case 8: case 9:
65                         muta_class = &(creature_ptr->muta1);
66                         muta_which = MUT1_HYPN_GAZE;
67                         muta_desc = _("催眠眼の能力を得た。", "Your eyes look mesmerizing...");
68                         break;
69                         
70                 case 10: case 11:
71                         muta_class = &(creature_ptr->muta1);
72                         muta_which = MUT1_TELEKINES;
73                         muta_desc = _("物体を念動力で動かす能力を得た。", "You gain the ability to move objects telekinetically.");
74                         break;
75                         
76                 case 12: case 13: case 14:
77                         muta_class = &(creature_ptr->muta1);
78                         muta_which = MUT1_VTELEPORT;
79                         muta_desc = _("自分の意思でテレポートする能力を得た。", "You gain the power of teleportation at will.");
80                         break;
81                         
82                 case 15: case 16:
83                         muta_class = &(creature_ptr->muta1);
84                         muta_which = MUT1_MIND_BLST;
85                         muta_desc = _("精神攻撃の能力を得た。", "You gain the power of Mind Blast.");
86                         break;
87                         
88                 case 17: case 18:
89                         muta_class = &(creature_ptr->muta1);
90                         muta_which = MUT1_RADIATION;
91                         muta_desc = _("あなたは強い放射線を発生し始めた。", "You start emitting hard radiation.");
92                         break;
93                         
94                 case 19: case 20:
95                         muta_class = &(creature_ptr->muta1);
96                         muta_which = MUT1_VAMPIRISM;
97                         muta_desc = _("生命力を吸収できるようになった。", "You become vampiric.");
98                         break;
99                         
100                 case 21: case 22: case 23:
101                         muta_class = &(creature_ptr->muta1);
102                         muta_which = MUT1_SMELL_MET;
103                         muta_desc = _("金属の匂いを嗅ぎ分けられるようになった。", "You smell a metallic odor.");
104                         break;
105                         
106                 case 24: case 25: case 26: case 27:
107                         muta_class = &(creature_ptr->muta1);
108                         muta_which = MUT1_SMELL_MON;
109                         muta_desc = _("モンスターの臭いを嗅ぎ分けられるようになった。", "You smell filthy monsters.");
110                         break;
111                         
112                 case 28: case 29: case 30:
113                         muta_class = &(creature_ptr->muta1);
114                         muta_which = MUT1_BLINK;
115                         muta_desc = _("近距離テレポートの能力を得た。", "You gain the power of minor teleportation.");
116                         break;
117                         
118                 case 31: case 32:
119                         muta_class = &(creature_ptr->muta1);
120                         muta_which = MUT1_EAT_ROCK;
121                         muta_desc = _("壁が美味しそうに見える。", "The walls look delicious.");
122                         break;
123                         
124                 case 33: case 34:
125                         muta_class = &(creature_ptr->muta1);
126                         muta_which = MUT1_SWAP_POS;
127                         muta_desc = _("他人の靴で一マイル歩くような気分がする。", "You feel like walking a mile in someone else's shoes.");
128                         break;
129                         
130                 case 35: case 36: case 37:
131                         muta_class = &(creature_ptr->muta1);
132                         muta_which = MUT1_SHRIEK;
133                         muta_desc = _("あなたの声は相当強くなった。", "Your vocal cords get much tougher.");
134                         break;
135                         
136                 case 38: case 39: case 40:
137                         muta_class = &(creature_ptr->muta1);
138                         muta_which = MUT1_ILLUMINE;
139                         muta_desc = _("あなたは光り輝いて部屋を明るくするようになった。", "You can light up rooms with your presence.");
140                         break;
141                         
142                 case 41: case 42:
143                         muta_class = &(creature_ptr->muta1);
144                         muta_which = MUT1_DET_CURSE;
145                         muta_desc = _("邪悪な魔法を感知できるようになった。", "You can feel evil magics.");
146                         break;
147                         
148                 case 43: case 44: case 45:
149                         muta_class = &(creature_ptr->muta1);
150                         muta_which = MUT1_BERSERK;
151                         muta_desc = _("制御できる激情を感じる。", "You feel a controlled rage.");
152                         break;
153                         
154                 case 46:
155                         muta_class = &(creature_ptr->muta1);
156                         muta_which = MUT1_POLYMORPH;
157                         muta_desc = _("体が変異しやすくなった。", "Your body seems mutable.");
158                         break;
159                         
160                 case 47: case 48:
161                         muta_class = &(creature_ptr->muta1);
162                         muta_which = MUT1_MIDAS_TCH;
163                         muta_desc = _("「ミダス王の手」の能力を得た。", "You gain the Midas touch.");/*トゥームレイダースにありましたね。 */
164                         break;
165                         
166                 case 49:
167                         muta_class = &(creature_ptr->muta1);
168                         muta_which = MUT1_GROW_MOLD;
169                         muta_desc = _("突然カビに親しみを覚えた。", "You feel a sudden affinity for mold.");
170                         break;
171                         
172                 case 50: case 51: case 52:
173                         muta_class = &(creature_ptr->muta1);
174                         muta_which = MUT1_RESIST;
175                         muta_desc = _("あなたは自分自身を守れる気がする。", "You feel like you can protect yourself.");
176                         break;
177                         
178                 case 53: case 54: case 55:
179                         muta_class = &(creature_ptr->muta1);
180                         muta_which = MUT1_EARTHQUAKE;
181                         muta_desc = _("ダンジョンを破壊する能力を得た。", "You gain the ability to wreck the dungeon.");
182                         break;
183                         
184                 case 56:
185                         muta_class = &(creature_ptr->muta1);
186                         muta_which = MUT1_EAT_MAGIC;
187                         muta_desc = _("魔法のアイテムが美味そうに見える。", "Your magic items look delicious.");
188                         break;
189                         
190                 case 57: case 58:
191                         muta_class = &(creature_ptr->muta1);
192                         muta_which = MUT1_WEIGH_MAG;
193                         muta_desc = _("あなたは周囲にある魔法をより良く理解できる気がする。", "You feel you can better understand the magic around you.");
194                         break;
195                         
196                 case 59:
197                         muta_class = &(creature_ptr->muta1);
198                         muta_which = MUT1_STERILITY;
199                         muta_desc = _("周りの全ての者に頭痛を起こすことができる。", "You can give everything around you a headache.");
200                         break;
201                 case 60: case 61:
202                         muta_class = &(creature_ptr->muta1);
203                         muta_which = MUT1_PANIC_HIT;
204                         muta_desc = _("突然、泥棒の気分が分かるようになった。", "You suddenly understand how thieves feel.");
205                         break;
206                         
207                 case 62: case 63: case 64:
208                         muta_class = &(creature_ptr->muta1);
209                         muta_which = MUT1_DAZZLE;
210                         muta_desc = _("眩い閃光を発する能力を得た。", "You gain the ability to emit dazzling lights.");
211                         break;
212                         
213                 case 65: case 66: case 67:
214                         muta_class = &(creature_ptr->muta1);
215                         muta_which = MUT1_LASER_EYE;
216                         muta_desc = _("あなたの目は一瞬焼け付いた。", "Your eyes burn for a moment.");
217                         break;
218                         
219                 case 68: case 69:
220                         muta_class = &(creature_ptr->muta1);
221                         muta_which = MUT1_RECALL;
222                         muta_desc = _("少しだけホームシックになったが、すぐ直った。", "You feel briefly homesick, but it passes.");
223                         break;
224                         
225                 case 70:
226                         muta_class = &(creature_ptr->muta1);
227                         muta_which = MUT1_BANISH;
228                         muta_desc = _("神聖な怒りの力に満たされた。", "You feel a holy wrath fill you.");
229                         break;
230                         
231                 case 71: case 72:
232                         muta_class = &(creature_ptr->muta1);
233                         muta_which = MUT1_COLD_TOUCH;
234                         muta_desc = _("あなたの両手はとても冷たくなった。", "Your hands get very cold.");
235                         break;
236                         
237                 case 73: case 74:
238                         muta_class = &(creature_ptr->muta1);
239                         muta_which = MUT1_LAUNCHER;
240                         muta_desc = _("あなたの物を投げる手はかなり強くなった気がする。", "Your throwing arm feels much stronger.");
241                         break;
242                         
243                 case 75:
244                         muta_class = &(creature_ptr->muta2);
245                         muta_which = MUT2_BERS_RAGE;
246                         muta_desc = _("あなたは狂暴化の発作を起こすようになった!", "You become subject to fits of berserk rage!");
247                         break;
248                         
249                 case 76:
250                         muta_class = &(creature_ptr->muta2);
251                         muta_which = MUT2_COWARDICE;
252                         muta_desc = _("信じられないくらい臆病になった!", "You become an incredible coward!");
253                         break;
254                         
255                 case 77:
256                         muta_class = &(creature_ptr->muta2);
257                         muta_which = MUT2_RTELEPORT;
258                         muta_desc = _("あなたの位置は非常に不確定になった。", "Your position seems very uncertain...");
259                         break;
260                         
261                 case 78:
262                         muta_class = &(creature_ptr->muta2);
263                         muta_which = MUT2_ALCOHOL;
264                         muta_desc = _("あなたはアルコールを分泌するようになった。", "Your body starts producing alcohol!");
265                         break;
266                         
267                 case 79:
268                         muta_class = &(creature_ptr->muta2);
269                         muta_which = MUT2_HALLU;
270                         muta_desc = _("あなたは幻覚を引き起こす精神錯乱に侵された。", "You are afflicted by a hallucinatory insanity!");
271                         break;
272                         
273                 case 80:
274                         muta_class = &(creature_ptr->muta2);
275                         muta_which = MUT2_FLATULENT;
276                         muta_desc = _( "あなたは制御不能な強烈な屁をこくようになった。",  "You become subject to uncontrollable flatulence.");
277
278                         break;
279                 case 81: case 82:
280                         muta_class = &(creature_ptr->muta2);
281                         muta_which = MUT2_SCOR_TAIL;
282                         muta_desc = _( "サソリの尻尾が生えてきた!",  "You grow a scorpion tail!");
283
284                         break;
285                 case 83: case 84:
286                         muta_class = &(creature_ptr->muta2);
287                         muta_which = MUT2_HORNS;
288                         muta_desc = _( "額に角が生えた!",  "Horns pop forth into your forehead!");
289
290                         break;
291                 case 85: case 86:
292                         muta_class = &(creature_ptr->muta2);
293                         muta_which = MUT2_BEAK;
294                         muta_desc = _( "口が鋭く強いクチバシに変化した!",  "Your mouth turns into a sharp, powerful beak!");
295
296                         break;
297                 case 87: case 88:
298                         muta_class = &(creature_ptr->muta2);
299                         muta_which = MUT2_ATT_DEMON;
300                         muta_desc = _( "悪魔を引き付けるようになった。",  "You start attracting demons.");
301
302                         break;
303                 case 89:
304                         muta_class = &(creature_ptr->muta2);
305                         muta_which = MUT2_PROD_MANA;
306                         muta_desc = _( "あなたは制御不能な魔法のエネルギーを発生するようになった。",  "You start producing magical energy uncontrollably.");
307
308                         break;
309                 case 90: case 91:
310                         muta_class = &(creature_ptr->muta2);
311                         muta_which = MUT2_SPEED_FLUX;
312                         muta_desc = _( "あなたは躁鬱質になった。",  "You become manic-depressive.");
313
314                         break;
315                 case 92: case 93:
316                         muta_class = &(creature_ptr->muta2);
317                         muta_which = MUT2_BANISH_ALL;
318                         muta_desc = _( "恐ろしい力があなたの背後に潜んでいる気がする。",  "You feel a terrifying power lurking behind you.");
319
320                         break;
321                 case 94:
322                         muta_class = &(creature_ptr->muta2);
323                         muta_which = MUT2_EAT_LIGHT;
324                         muta_desc = _( "あなたはウンゴリアントに奇妙な親しみを覚えるようになった。",  "You feel a strange kinship with Ungoliant.");
325
326                         break;
327                 case 95: case 96:
328                         muta_class = &(creature_ptr->muta2);
329                         muta_which = MUT2_TRUNK;
330                         muta_desc = _( "あなたの鼻は伸びて象の鼻のようになった。",  "Your nose grows into an elephant-like trunk.");
331
332                         break;
333                 case 97:
334                         muta_class = &(creature_ptr->muta2);
335                         muta_which = MUT2_ATT_ANIMAL;
336                         muta_desc = _( "動物を引き付けるようになった。",  "You start attracting animals.");
337
338                         break;
339                 case 98:
340                         muta_class = &(creature_ptr->muta2);
341                         muta_which = MUT2_TENTACLES;
342                         muta_desc = _( "邪悪な触手が体の両側に生えてきた。",  "Evil-looking tentacles sprout from your sides.");
343
344                         break;
345                 case 99:
346                         muta_class = &(creature_ptr->muta2);
347                         muta_which = MUT2_RAW_CHAOS;
348                         muta_desc = _( "周囲の空間が不安定になった気がする。",  "You feel the universe is less stable around you.");
349
350                         break;
351                 case 100: case 101: case 102:
352                         muta_class = &(creature_ptr->muta2);
353                         muta_which = MUT2_NORMALITY;
354                         muta_desc = _( "あなたは奇妙なほど普通になった気がする。",  "You feel strangely normal.");
355
356                         break;
357                 case 103:
358                         muta_class = &(creature_ptr->muta2);
359                         muta_which = MUT2_WRAITH;
360                         muta_desc = _( "あなたは幽体化したり実体化したりするようになった。",  "You start to fade in and out of the physical world.");
361
362                         break;
363                 case 104:
364                         muta_class = &(creature_ptr->muta2);
365                         muta_which = MUT2_POLY_WOUND;
366                         muta_desc = _( "あなたはカオスの力が古い傷に入り込んでくるのを感じた。",  "You feel forces of chaos entering your old scars.");
367
368                         break;
369                 case 105:
370                         muta_class = &(creature_ptr->muta2);
371                         muta_which = MUT2_WASTING;
372                         muta_desc = _( "あなたは突然おぞましい衰弱病にかかった。",  "You suddenly contract a horrible wasting disease.");
373
374                         break;
375                 case 106:
376                         muta_class = &(creature_ptr->muta2);
377                         muta_which = MUT2_ATT_DRAGON;
378                         muta_desc = _( "あなたはドラゴンを引きつけるようになった。",  "You start attracting dragons.");
379
380                         break;
381                 case 107: case 108:
382                         muta_class = &(creature_ptr->muta2);
383                         muta_which = MUT2_WEIRD_MIND;
384                         muta_desc = _( "あなたの思考は突然おかしな方向に向き始めた。",  "Your thoughts suddenly take off in strange directions.");
385
386                         break;
387                 case 109:
388                         muta_class = &(creature_ptr->muta2);
389                         muta_which = MUT2_NAUSEA;
390                         muta_desc = _( "胃袋がピクピクしはじめた。",  "Your stomach starts to roil nauseously.");
391
392                         break;
393                 case 110: case 111:
394                         /* Chaos warriors already have a chaos deity */
395                         if (creature_ptr->pclass != CLASS_CHAOS_WARRIOR)
396                         {
397                                 muta_class = &(creature_ptr->muta2);
398                                 muta_which = MUT2_CHAOS_GIFT;
399                         muta_desc = _( "あなたはカオスの守護悪魔の注意を惹くようになった。",  "You attract the notice of a chaos deity!");
400
401                         }
402                         break;
403                 case 112:
404                         muta_class = &(creature_ptr->muta2);
405                         muta_which = MUT2_WALK_SHAD;
406                         muta_desc = _( "あなたは現実が紙のように薄いと感じるようになった。",  "You feel like reality is as thin as paper.");
407
408                         break;
409                 case 113: case 114:
410                         muta_class = &(creature_ptr->muta2);
411                         muta_which = MUT2_WARNING;
412                         muta_desc = _( "あなたは突然パラノイアになった気がする。",  "You suddenly feel paranoid.");
413
414                         break;
415                 case 115:
416                         muta_class = &(creature_ptr->muta2);
417                         muta_which = MUT2_INVULN;
418                         muta_desc = _( "あなたは祝福され、無敵状態になる発作を起こすようになった。",  "You are blessed with fits of invulnerability.");
419
420                         break;
421                 case 116: case 117:
422                         muta_class = &(creature_ptr->muta2);
423                         muta_which = MUT2_SP_TO_HP;
424                         muta_desc = _( "魔法の治癒の発作を起こすようになった。",  "You are subject to fits of magical healing.");
425
426                         break;
427                 case 118:
428                         muta_class = &(creature_ptr->muta2);
429                         muta_which = MUT2_HP_TO_SP;
430                         muta_desc = _( "痛みを伴う精神明瞭化の発作を起こすようになった。",  "You are subject to fits of painful clarity.");
431
432                         break;
433                 case 119:
434                         muta_class = &(creature_ptr->muta2);
435                         muta_which = MUT2_DISARM;
436                         muta_desc = _( "あなたの脚は長さが四倍になった。",  "Your feet grow to four times their former size.");
437
438                         break;
439                 case 120: case 121: case 122:
440                         muta_class = &(creature_ptr->muta3);
441                         muta_which = MUT3_HYPER_STR;
442                         muta_desc = _( "超人的に強くなった!",  "You current_world_ptr->game_turn into a superhuman he-man!");
443
444                         break;
445                 case 123: case 124: case 125:
446                         muta_class = &(creature_ptr->muta3);
447                         muta_which = MUT3_PUNY;
448                         muta_desc = _( "筋肉が弱ってしまった...",  "Your muscles wither away...");
449
450                         break;
451                 case 126: case 127: case 128:
452                         muta_class = &(creature_ptr->muta3);
453                         muta_which = MUT3_HYPER_INT;
454                         muta_desc = _( "あなたの脳は生体コンピュータに進化した!",  "Your brain evolves into a living computer!");
455
456                         break;
457                 case 129: case 130: case 131:
458                         muta_class = &(creature_ptr->muta3);
459                         muta_which = MUT3_MORONIC;
460                         muta_desc = _( "脳が萎縮してしまった...",  "Your brain withers away...");
461
462                         break;
463                 case 132: case 133:
464                         muta_class = &(creature_ptr->muta3);
465                         muta_which = MUT3_RESILIENT;
466                         muta_desc = _( "並外れてタフになった。",  "You become extraordinarily resilient.");
467
468                         break;
469                 case 134: case 135:
470                         muta_class = &(creature_ptr->muta3);
471                         muta_which = MUT3_XTRA_FAT;
472                         muta_desc = _( "あなたは気持ち悪いくらい太った!",  "You become sickeningly fat!");
473
474                         break;
475                 case 136: case 137:
476                         muta_class = &(creature_ptr->muta3);
477                         muta_which = MUT3_ALBINO;
478                         muta_desc = _( "アルビノになった!弱くなった気がする...",  "You current_world_ptr->game_turn into an albino! You feel frail...");
479
480                         break;
481                 case 138: case 139: case 140:
482                         muta_class = &(creature_ptr->muta3);
483                         muta_which = MUT3_FLESH_ROT;
484                         muta_desc = _( "あなたの肉体は腐敗する病気に侵された!",  "Your flesh is afflicted by a rotting disease!");
485
486                         break;
487                 case 141: case 142:
488                         muta_class = &(creature_ptr->muta3);
489                         muta_which = MUT3_SILLY_VOI;
490                         muta_desc = _( "声が間抜けなキーキー声になった!",  "Your voice turns into a ridiculous squeak!");
491
492                         break;
493                 case 143: case 144:
494                         muta_class = &(creature_ptr->muta3);
495                         muta_which = MUT3_BLANK_FAC;
496                         muta_desc = _( "のっぺらぼうになった!",  "Your face becomes completely featureless!");
497
498                         break;
499                 case 145:
500                         muta_class = &(creature_ptr->muta3);
501                         muta_which = MUT3_ILL_NORM;
502                         muta_desc = _( "心の安らぐ幻影を映し出すようになった。",  "You start projecting a reassuring image.");
503
504                         break;
505                 case 146: case 147: case 148:
506                         muta_class = &(creature_ptr->muta3);
507                         muta_which = MUT3_XTRA_EYES;
508                         muta_desc = _( "新たに二つの目が出来た!",  "You grow an extra pair of eyes!");
509
510                         break;
511                 case 149: case 150:
512                         muta_class = &(creature_ptr->muta3);
513                         muta_which = MUT3_MAGIC_RES;
514                         muta_desc = _( "魔法への耐性がついた。",  "You become resistant to magic.");
515
516                         break;
517                 case 151: case 152: case 153:
518                         muta_class = &(creature_ptr->muta3);
519                         muta_which = MUT3_XTRA_NOIS;
520                         muta_desc = _( "あなたは奇妙な音を立て始めた!",  "You start making strange noise!");
521
522                         break;
523                 case 154: case 155: case 156:
524                         muta_class = &(creature_ptr->muta3);
525                         muta_which = MUT3_INFRAVIS;
526                         muta_desc = _( "赤外線視力が増した。",  "Your infravision is improved.");
527
528                         break;
529                 case 157: case 158:
530                         muta_class = &(creature_ptr->muta3);
531                         muta_which = MUT3_XTRA_LEGS;
532                         muta_desc = _( "新たに二本の足が生えてきた!",  "You grow an extra pair of legs!");
533
534                         break;
535                 case 159: case 160:
536                         muta_class = &(creature_ptr->muta3);
537                         muta_which = MUT3_SHORT_LEG;
538                         muta_desc = _( "足が短い突起になってしまった!",  "Your legs current_world_ptr->game_turn into short stubs!");
539
540                         break;
541                 case 161: case 162:
542                         muta_class = &(creature_ptr->muta3);
543                         muta_which = MUT3_ELEC_TOUC;
544                         muta_desc = _( "血管を電流が流れ始めた!",  "Electricity starts running through you!");
545
546                         break;
547                 case 163: case 164:
548                         muta_class = &(creature_ptr->muta3);
549                         muta_which = MUT3_FIRE_BODY;
550                         muta_desc = _( "あなたの体は炎につつまれている。",  "Your body is enveloped in flames!");
551
552                         break;
553                 case 165: case 166: case 167:
554                         muta_class = &(creature_ptr->muta3);
555                         muta_which = MUT3_WART_SKIN;
556                         muta_desc = _( "気持ち悪いイボイボが体中にできた!",  "Disgusting warts appear everywhere on you!");
557
558                         break;
559                 case 168: case 169: case 170:
560                         muta_class = &(creature_ptr->muta3);
561                         muta_which = MUT3_SCALES;
562                         muta_desc = _( "肌が黒い鱗に変わった!",  "Your skin turns into black scales!");
563
564                         break;
565                 case 171: case 172:
566                         muta_class = &(creature_ptr->muta3);
567                         muta_which = MUT3_IRON_SKIN;
568                         muta_desc = _( "あなたの肌は鉄になった!",  "Your skin turns to steel!");
569
570                         break;
571                 case 173: case 174:
572                         muta_class = &(creature_ptr->muta3);
573                         muta_which = MUT3_WINGS;
574                         muta_desc = _( "背中に羽が生えた。",  "You grow a pair of wings.");
575
576                         break;
577                 case 175: case 176: case 177:
578                         muta_class = &(creature_ptr->muta3);
579                         muta_which = MUT3_FEARLESS;
580                         muta_desc = _( "完全に怖れ知らずになった。",  "You become completely fearless.");
581
582                         break;
583                 case 178: case 179:
584                         muta_class = &(creature_ptr->muta3);
585                         muta_which = MUT3_REGEN;
586                         muta_desc = _( "急速に回復し始めた。",  "You start regenerating.");
587
588                         break;
589                 case 180: case 181:
590                         muta_class = &(creature_ptr->muta3);
591                         muta_which = MUT3_ESP;
592                         muta_desc = _( "テレパシーの能力を得た!",  "You develop a telepathic ability!");
593
594                         break;
595                 case 182: case 183: case 184:
596                         muta_class = &(creature_ptr->muta3);
597                         muta_which = MUT3_LIMBER;
598                         muta_desc = _( "筋肉がしなやかになった。",  "Your muscles become limber.");
599
600                         break;
601                 case 185: case 186: case 187:
602                         muta_class = &(creature_ptr->muta3);
603                         muta_which = MUT3_ARTHRITIS;
604                         muta_desc = _( "関節が突然痛み出した。",  "Your joints suddenly hurt.");
605
606                         break;
607                 case 188:
608                         if (creature_ptr->pseikaku == SEIKAKU_LUCKY) break;
609                         muta_class = &(creature_ptr->muta3);
610                         muta_which = MUT3_BAD_LUCK;
611                         muta_desc = _( "悪意に満ちた黒いオーラがあなたをとりまいた...",  "There is a malignant black aura surrounding you...");
612
613                         break;
614                 case 189:
615                         muta_class = &(creature_ptr->muta3);
616                         muta_which = MUT3_VULN_ELEM;
617                         muta_desc = _( "妙に無防備になった気がする。",  "You feel strangely exposed.");
618
619                         break;
620                 case 190: case 191: case 192:
621                         muta_class = &(creature_ptr->muta3);
622                         muta_which = MUT3_MOTION;
623                         muta_desc = _( "体の動作がより正確になった。",  "You move with new assurance.");
624
625                         break;
626                 case 193:
627                         muta_class = &(creature_ptr->muta3);
628                         muta_which = MUT3_GOOD_LUCK;
629                         muta_desc = _( "慈悲深い白いオーラがあなたをとりまいた...",  "There is a benevolent white aura surrounding you...");
630
631                         break;
632                 default:
633                         muta_class = NULL;
634                         muta_which = 0;
635                 }
636
637                 if (muta_class && muta_which)
638                 {
639                         if (!(*muta_class & muta_which))
640                         {
641                                 muta_chosen = TRUE;
642                         }
643                 }
644                 if (muta_chosen == TRUE) break;
645         }
646
647         if (!muta_chosen)
648         {
649                 msg_print(_("普通になった気がする。", "You feel normal."));
650
651                 return FALSE;
652         }
653         else
654         {
655                 chg_virtue(V_CHANCE, 1);
656
657                 /*
658                   some races are apt to gain specified mutations
659                   This should be allowed only if "choose_mut" is 0.
660                                                         --- henkma
661                 */
662                 if(!choose_mut){
663                         if (creature_ptr->prace == RACE_VAMPIRE &&
664                           !(creature_ptr->muta1 & MUT1_HYPN_GAZE) &&
665                            (randint1(10) < 7))
666                         {
667                                 muta_class = &(creature_ptr->muta1);
668                                 muta_which = MUT1_HYPN_GAZE;
669                         muta_desc = _( "眼が幻惑的になった...",  "Your eyes look mesmerizing...");
670
671                         }
672
673                         else if (creature_ptr->prace == RACE_IMP &&
674                                  !(creature_ptr->muta2 & MUT2_HORNS) &&
675                                  (randint1(10) < 7))
676                           {
677                                 muta_class = &(creature_ptr->muta2);
678                                 muta_which = MUT2_HORNS;
679                         muta_desc = _( "角が額から生えてきた!",  "Horns pop forth into your forehead!");
680
681                         }
682
683                         else if (creature_ptr->prace == RACE_YEEK &&
684                                 !(creature_ptr->muta1 & MUT1_SHRIEK) &&
685                                 (randint1(10) < 7))
686                         {
687                                 muta_class = &(creature_ptr->muta1);
688                                 muta_which = MUT1_SHRIEK;
689                         muta_desc = _( "声質がかなり強くなった。",  "Your vocal cords get much tougher.");
690
691                         }
692
693                         else if (creature_ptr->prace == RACE_BEASTMAN &&
694                                 !(creature_ptr->muta1 & MUT1_POLYMORPH) &&
695                                 (randint1(10) < 2))
696                         {
697                                 muta_class = &(creature_ptr->muta1);
698                                 muta_which = MUT1_POLYMORPH;
699                         muta_desc = _( "あなたの肉体は変化できるようになった、",  "Your body seems mutable.");
700
701                         }
702
703                         else if (creature_ptr->prace == RACE_MIND_FLAYER &&
704                                 !(creature_ptr->muta2 & MUT2_TENTACLES) &&
705                                 (randint1(10) < 7))
706                         {
707                                 muta_class = &(creature_ptr->muta2);
708                                 muta_which = MUT2_TENTACLES;
709                         muta_desc = _( "邪悪な触手が口の周りに生えた。",  "Evil-looking tentacles sprout from your mouth.");
710
711                         }
712                 }
713                 msg_print(_("突然変異した!", "You mutate!"));
714
715                 msg_print(muta_desc);
716                 *muta_class |= muta_which;
717
718                 if (muta_class == &(creature_ptr->muta3))
719                 {
720                         if (muta_which == MUT3_PUNY)
721                         {
722                                 if (creature_ptr->muta3 & MUT3_HYPER_STR)
723                                 {
724                                         msg_print(_("あなたはもう超人的に強くはない!", "You no longer feel super-strong!"));
725
726                                         creature_ptr->muta3 &= ~(MUT3_HYPER_STR);
727                                 }
728                         }
729                         else if (muta_which == MUT3_HYPER_STR)
730                         {
731                                 if (creature_ptr->muta3 & MUT3_PUNY)
732                                 {
733                                         msg_print(_("あなたはもう虚弱ではない!", "You no longer feel puny!"));
734
735                                         creature_ptr->muta3 &= ~(MUT3_PUNY);
736                                 }
737                         }
738                         else if (muta_which == MUT3_MORONIC)
739                         {
740                                 if (creature_ptr->muta3 & MUT3_HYPER_INT)
741                                 {
742                                         msg_print(_("あなたの脳はもう生体コンピュータではない。", "Your brain is no longer a living computer."));
743
744                                         creature_ptr->muta3 &= ~(MUT3_HYPER_INT);
745                                 }
746                         }
747                         else if (muta_which == MUT3_HYPER_INT)
748                         {
749                                 if (creature_ptr->muta3 & MUT3_MORONIC)
750                                 {
751                                         msg_print(_("あなたはもう精神薄弱ではない。", "You are no longer moronic."));
752
753                                         creature_ptr->muta3 &= ~(MUT3_MORONIC);
754                                 }
755                         }
756                         else if (muta_which == MUT3_IRON_SKIN)
757                         {
758                                 if (creature_ptr->muta3 & MUT3_SCALES)
759                                 {
760                                         msg_print(_("鱗がなくなった。", "You lose your scales."));
761
762                                         creature_ptr->muta3 &= ~(MUT3_SCALES);
763                                 }
764                                 if (creature_ptr->muta3 & MUT3_FLESH_ROT)
765                                 {
766                                         msg_print(_("肉体が腐乱しなくなった。", "Your flesh rots no longer."));
767
768                                         creature_ptr->muta3 &= ~(MUT3_FLESH_ROT);
769                                 }
770                                 if (creature_ptr->muta3 & MUT3_WART_SKIN)
771                                 {
772                                         msg_print(_("肌のイボイボがなくなった。", "You lose your warts."));
773
774                                         creature_ptr->muta3 &= ~(MUT3_WART_SKIN);
775                                 }
776                         }
777                         else if (muta_which == MUT3_WART_SKIN || muta_which == MUT3_SCALES
778                                 || muta_which == MUT3_FLESH_ROT)
779                         {
780                                 if (creature_ptr->muta3 & MUT3_IRON_SKIN)
781                                 {
782                                         msg_print(_("あなたの肌はもう鉄ではない。", "Your skin is no longer made of steel."));
783
784                                         creature_ptr->muta3 &= ~(MUT3_IRON_SKIN);
785                                 }
786                         }
787                         else if (muta_which == MUT3_FEARLESS)
788                         {
789                                 if (creature_ptr->muta2 & MUT2_COWARDICE)
790                                 {
791                                         msg_print(_("臆病でなくなった。", "You are no longer cowardly."));
792
793                                         creature_ptr->muta2 &= ~(MUT2_COWARDICE);
794                                 }
795                         }
796                         else if (muta_which == MUT3_FLESH_ROT)
797                         {
798                                 if (creature_ptr->muta3 & MUT3_REGEN)
799                                 {
800                                         msg_print(_("急速に回復しなくなった。", "You stop regenerating."));
801
802                                         creature_ptr->muta3 &= ~(MUT3_REGEN);
803                                 }
804                         }
805                         else if (muta_which == MUT3_REGEN)
806                         {
807                                 if (creature_ptr->muta3 & MUT3_FLESH_ROT)
808                                 {
809                                         msg_print(_("肉体が腐乱しなくなった。", "Your flesh stops rotting."));
810
811                                         creature_ptr->muta3 &= ~(MUT3_FLESH_ROT);
812                                 }
813                         }
814                         else if (muta_which == MUT3_LIMBER)
815                         {
816                                 if (creature_ptr->muta3 & MUT3_ARTHRITIS)
817                                 {
818                                         msg_print(_("関節が痛くなくなった。", "Your joints stop hurting."));
819
820                                         creature_ptr->muta3 &= ~(MUT3_ARTHRITIS);
821                                 }
822                         }
823                         else if (muta_which == MUT3_ARTHRITIS)
824                         {
825                                 if (creature_ptr->muta3 & MUT3_LIMBER)
826                                 {
827                                         msg_print(_("あなたはしなやかでなくなった。", "You no longer feel limber."));
828
829                                         creature_ptr->muta3 &= ~(MUT3_LIMBER);
830                                 }
831                         }
832                 }
833                 else if (muta_class == &(creature_ptr->muta2))
834                 {
835                         if (muta_which == MUT2_COWARDICE)
836                         {
837                                 if (creature_ptr->muta3 & MUT3_FEARLESS)
838                                 {
839                                         msg_print(_("恐れ知らずでなくなった。", "You no longer feel fearless."));
840
841                                         creature_ptr->muta3 &= ~(MUT3_FEARLESS);
842                                 }
843                         }
844                         if (muta_which == MUT2_BEAK)
845                         {
846                                 if (creature_ptr->muta2 & MUT2_TRUNK)
847                                 {
848                                         msg_print(_("あなたの鼻はもう象の鼻のようではなくなった。", "Your nose is no longer elephantine."));
849
850                                         creature_ptr->muta2 &= ~(MUT2_TRUNK);
851                                 }
852                         }
853                         if (muta_which == MUT2_TRUNK)
854                         {
855                                 if (creature_ptr->muta2 & MUT2_BEAK)
856                                 {
857                                         msg_print(_("硬いクチバシがなくなった。", "You no longer have a hard beak."));
858
859                                         creature_ptr->muta2 &= ~(MUT2_BEAK);
860                                 }
861                         }
862                 }
863
864                 p_ptr->mutant_regenerate_mod = calc_mutant_regenerate_mod();
865                 creature_ptr->update |= PU_BONUS;
866                 handle_stuff();
867                 return TRUE;
868         }
869 }
870
871 /*!
872  * @brief プレイヤーから突然変異を取り除く
873  * @param choose_mut 取り除きたい突然変異のID、0ならばランダムに消去
874  * @return なし
875  */
876 bool lose_mutation(MUTATION_IDX choose_mut)
877 {
878         int attempts_left = 20;
879         concptr muta_desc = "";
880         bool muta_chosen = FALSE;
881         BIT_FLAGS muta_which = 0;
882         BIT_FLAGS *muta_class = NULL;
883
884         if (choose_mut) attempts_left = 1;
885
886         while (attempts_left--)
887         {
888                 switch (choose_mut ? choose_mut : randint1(193))
889                 {
890                 case 1: case 2: case 3: case 4:
891                         muta_class = &(p_ptr->muta1);
892                         muta_which = MUT1_SPIT_ACID;
893                         muta_desc = _( "酸を吹きかける能力を失った。",  "You lose the ability to spit acid.");
894
895                         break;
896                 case 5: case 6: case 7:
897                         muta_class = &(p_ptr->muta1);
898                         muta_which = MUT1_BR_FIRE;
899                         muta_desc = _( "炎のブレスを吐く能力を失った。",  "You lose the ability to breathe fire.");
900
901                         break;
902                 case 8: case 9:
903                         muta_class = &(p_ptr->muta1);
904                         muta_which = MUT1_HYPN_GAZE;
905                         muta_desc = _( "あなたの目はつまらない目になった。",  "Your eyes look uninteresting.");
906
907                         break;
908                 case 10: case 11:
909                         muta_class = &(p_ptr->muta1);
910                         muta_which = MUT1_TELEKINES;
911                         muta_desc = _( "念動力で物を動かす能力を失った。",  "You lose the ability to move objects telekinetically.");
912
913                         break;
914                 case 12: case 13: case 14:
915                         muta_class = &(p_ptr->muta1);
916                         muta_which = MUT1_VTELEPORT;
917                         muta_desc = _( "自分の意思でテレポートする能力を失った。",  "You lose the power of teleportation at will.");
918
919                         break;
920                 case 15: case 16:
921                         muta_class = &(p_ptr->muta1);
922                         muta_which = MUT1_MIND_BLST;
923                         muta_desc = _( "精神攻撃の能力を失った。",  "You lose the power of Mind Blast.");
924
925                         break;
926                 case 17: case 18:
927                         muta_class = &(p_ptr->muta1);
928                         muta_which = MUT1_RADIATION;
929                         muta_desc = _( "あなたは放射能を発生しなくなった。",  "You stop emitting hard radiation.");
930
931                         break;
932                 case 19: case 20:
933                         muta_class = &(p_ptr->muta1);
934                         muta_which = MUT1_VAMPIRISM;
935                         muta_desc = _( "吸血の能力を失った。",  "You are no longer vampiric.");
936
937                         break;
938                 case 21: case 22: case 23:
939                         muta_class = &(p_ptr->muta1);
940                         muta_which = MUT1_SMELL_MET;
941                         muta_desc = _( "金属の臭いを嗅げなくなった。",  "You no longer smell a metallic odor.");
942
943                         break;
944                 case 24: case 25: case 26: case 27:
945                         muta_class = &(p_ptr->muta1);
946                         muta_which = MUT1_SMELL_MON;
947                         muta_desc = _( "不潔なモンスターの臭いを嗅げなくなった。",  "You no longer smell filthy monsters.");
948
949                         break;
950                 case 28: case 29: case 30:
951                         muta_class = &(p_ptr->muta1);
952                         muta_which = MUT1_BLINK;
953                         muta_desc = _( "近距離テレポートの能力を失った。",  "You lose the power of minor teleportation.");
954
955                         break;
956                 case 31: case 32:
957                         muta_class = &(p_ptr->muta1);
958                         muta_which = MUT1_EAT_ROCK;
959                         muta_desc = _( "壁は美味しそうに見えなくなった。",  "The walls look unappetizing.");
960
961                         break;
962                 case 33: case 34:
963                         muta_class = &(p_ptr->muta1);
964                         muta_which = MUT1_SWAP_POS;
965                         muta_desc = _( "あなたは自分の靴に留まる感じがする。",  "You feel like staying in your own shoes.");
966
967                         break;
968                 case 35: case 36: case 37:
969                         muta_class = &(p_ptr->muta1);
970                         muta_which = MUT1_SHRIEK;
971                         muta_desc = _( "あなたの声質は弱くなった。",  "Your vocal cords get much weaker.");
972
973                         break;
974                 case 38: case 39: case 40:
975                         muta_class = &(p_ptr->muta1);
976                         muta_which = MUT1_ILLUMINE;
977                         muta_desc = _( "部屋を明るく照らすことが出来なくなった。",  "You can no longer light up rooms with your presence.");
978
979                         break;
980                 case 41: case 42:
981                         muta_class = &(p_ptr->muta1);
982                         muta_which = MUT1_DET_CURSE;
983                         muta_desc = _( "邪悪な魔法を感じられなくなった。",  "You can no longer feel evil magics.");
984
985                         break;
986                 case 43: case 44: case 45:
987                         muta_class = &(p_ptr->muta1);
988                         muta_which = MUT1_BERSERK;
989                         muta_desc = _( "制御できる激情を感じなくなった。",  "You no longer feel a controlled rage.");
990
991                         break;
992                 case 46:
993                         muta_class = &(p_ptr->muta1);
994                         muta_which = MUT1_POLYMORPH;
995                         muta_desc = _( "あなたの体は安定したように見える。",  "Your body seems stable.");
996
997                         break;
998                 case 47: case 48:
999                         muta_class = &(p_ptr->muta1);
1000                         muta_which = MUT1_MIDAS_TCH;
1001                         muta_desc = _( "ミダスの手の能力を失った。",  "You lose the Midas touch.");
1002
1003                         break;
1004                 case 49:
1005                         muta_class = &(p_ptr->muta1);
1006                         muta_which = MUT1_GROW_MOLD;
1007                         muta_desc = _( "突然カビが嫌いになった。",  "You feel a sudden dislike for mold.");
1008
1009                         break;
1010                 case 50: case 51: case 52:
1011                         muta_class = &(p_ptr->muta1);
1012                         muta_which = MUT1_RESIST;
1013                         muta_desc = _( "傷つき易くなった気がする。",  "You feel like you might be vulnerable.");
1014
1015                         break;
1016                 case 53: case 54: case 55:
1017                         muta_class = &(p_ptr->muta1);
1018                         muta_which = MUT1_EARTHQUAKE;
1019                         muta_desc = _( "ダンジョンを壊す能力を失った。",  "You lose the ability to wreck the dungeon.");
1020
1021                         break;
1022                 case 56:
1023                         muta_class = &(p_ptr->muta1);
1024                         muta_which = MUT1_EAT_MAGIC;
1025                         muta_desc = _( "魔法のアイテムはもう美味しそうに見えなくなった。",  "Your magic items no longer look delicious.");
1026
1027                         break;
1028                 case 57: case 58:
1029                         muta_class = &(p_ptr->muta1);
1030                         muta_which = MUT1_WEIGH_MAG;
1031                         muta_desc = _( "魔力を感じられなくなった。",  "You no longer sense magic.");
1032
1033                         break;
1034                 case 59:
1035                         muta_class = &(p_ptr->muta1);
1036                         muta_which = MUT1_STERILITY;
1037                         muta_desc = _( "たくさんの安堵の吐息が聞こえた。",  "You hear a massed sigh of relief.");
1038
1039                         break;
1040                 case 60: case 61:
1041                         muta_class = &(p_ptr->muta1);
1042                         muta_which = MUT1_PANIC_HIT;
1043                         muta_desc = _( "あちこちへ跳べる気分がなくなった。",  "You no longer feel jumpy.");
1044
1045                         break;
1046                 case 62: case 63: case 64:
1047                         muta_class = &(p_ptr->muta1);
1048                         muta_which = MUT1_DAZZLE;
1049                         muta_desc = _( "まばゆい閃光を発する能力を失った。",  "You lose the ability to emit dazzling lights.");
1050
1051                         break;
1052                 case 65: case 66: case 67:
1053                         muta_class = &(p_ptr->muta1);
1054                         muta_which = MUT1_LASER_EYE;
1055                         muta_desc = _( "眼が少しの間焼き付いて、痛みが和らいだ。",  "Your eyes burn for a moment, then feel soothed.");
1056
1057                         break;
1058                 case 68: case 69:
1059                         muta_class = &(p_ptr->muta1);
1060                         muta_which = MUT1_RECALL;
1061                         muta_desc = _( "少しの間ホームシックになった。",  "You feel briefly homesick.");
1062
1063                         break;
1064                 case 70:
1065                         muta_class = &(p_ptr->muta1);
1066                         muta_which = MUT1_BANISH;
1067                         muta_desc = _( "神聖な怒りの力を感じなくなった。",  "You no longer feel a holy wrath.");
1068
1069                         break;
1070                 case 71: case 72:
1071                         muta_class = &(p_ptr->muta1);
1072                         muta_which = MUT1_COLD_TOUCH;
1073                         muta_desc = _( "手が暖かくなった。",  "Your hands warm up.");
1074
1075                         break;
1076                 case 73: case 74:
1077                         muta_class = &(p_ptr->muta1);
1078                         muta_which = MUT1_LAUNCHER;
1079                         muta_desc = _( "物を投げる手が弱くなった気がする。",  "Your throwing arm feels much weaker.");
1080
1081                         break;
1082                 case 75:
1083                         muta_class = &(p_ptr->muta2);
1084                         muta_which = MUT2_BERS_RAGE;
1085                         muta_desc = _( "凶暴化の発作にさらされなくなった!",  "You are no longer subject to fits of berserk rage!");
1086
1087                         break;
1088                 case 76:
1089                         muta_class = &(p_ptr->muta2);
1090                         muta_which = MUT2_COWARDICE;
1091                         muta_desc = _( "もう信じがたいほど臆病ではなくなった!",  "You are no longer an incredible coward!");
1092
1093                         break;
1094                 case 77:
1095                         muta_class = &(p_ptr->muta2);
1096                         muta_which = MUT2_RTELEPORT;
1097                         muta_desc = _( "あなたの位置はより確定的になった。",  "Your position seems more certain.");
1098
1099                         break;
1100                 case 78:
1101                         muta_class = &(p_ptr->muta2);
1102                         muta_which = MUT2_ALCOHOL;
1103                         muta_desc = _( "あなたはアルコールを分泌しなくなった!",  "Your body stops producing alcohol!");
1104
1105                         break;
1106                 case 79:
1107                         muta_class = &(p_ptr->muta2);
1108                         muta_which = MUT2_HALLU;
1109                         muta_desc = _( "幻覚をひき起こす精神障害を起こさなくなった!",  "You are no longer afflicted by a hallucinatory insanity!");
1110
1111                         break;
1112                 case 80:
1113                         muta_class = &(p_ptr->muta2);
1114                         muta_which = MUT2_FLATULENT;
1115                         muta_desc = _( "もう強烈な屁はこかなくなった。",  "You are no longer subject to uncontrollable flatulence.");
1116
1117                         break;
1118                 case 81: case 82:
1119                         muta_class = &(p_ptr->muta2);
1120                         muta_which = MUT2_SCOR_TAIL;
1121                         muta_desc = _( "サソリの尻尾がなくなった!",  "You lose your scorpion tail!");
1122
1123                         break;
1124                 case 83: case 84:
1125                         muta_class = &(p_ptr->muta2);
1126                         muta_which = MUT2_HORNS;
1127                         muta_desc = _( "額から角が消えた!",  "Your horns vanish from your forehead!");
1128
1129                         break;
1130                 case 85: case 86:
1131                         muta_class = &(p_ptr->muta2);
1132                         muta_which = MUT2_BEAK;
1133                         muta_desc = _( "口が普通に戻った!",  "Your mouth reverts to normal!");
1134
1135                         break;
1136                 case 87: case 88:
1137                         muta_class = &(p_ptr->muta2);
1138                         muta_which = MUT2_ATT_DEMON;
1139                         muta_desc = _( "デーモンを引き寄せなくなった。",  "You stop attracting demons.");
1140
1141                         break;
1142                 case 89:
1143                         muta_class = &(p_ptr->muta2);
1144                         muta_which = MUT2_PROD_MANA;
1145                         muta_desc = _( "制御不能な魔法のエネルギーを発生しなくなった。",  "You stop producing magical energy uncontrollably.");
1146
1147                         break;
1148                 case 90: case 91:
1149                         muta_class = &(p_ptr->muta2);
1150                         muta_which = MUT2_SPEED_FLUX;
1151                         muta_desc = _( "躁鬱質でなくなった。",  "You are no longer manic-depressive.");
1152
1153                         break;
1154                 case 92: case 93:
1155                         muta_class = &(p_ptr->muta2);
1156                         muta_which = MUT2_BANISH_ALL;
1157                         muta_desc = _( "背後に恐ろしい力を感じなくなった。",  "You no longer feel a terrifying power lurking behind you.");
1158
1159                         break;
1160                 case 94:
1161                         muta_class = &(p_ptr->muta2);
1162                         muta_which = MUT2_EAT_LIGHT;
1163                         muta_desc = _( "世界が明るいと感じる。",  "You feel the world's a brighter place.");
1164
1165                         break;
1166                 case 95: case 96:
1167                         muta_class = &(p_ptr->muta2);
1168                         muta_which = MUT2_TRUNK;
1169                         muta_desc = _( "鼻が普通の長さに戻った。",  "Your nose returns to a normal length.");
1170
1171                         break;
1172                 case 97:
1173                         muta_class = &(p_ptr->muta2);
1174                         muta_which = MUT2_ATT_ANIMAL;
1175                         muta_desc = _( "動物を引き寄せなくなった。",  "You stop attracting animals.");
1176
1177                         break;
1178                 case 98:
1179                         muta_class = &(p_ptr->muta2);
1180                         muta_which = MUT2_TENTACLES;
1181                         muta_desc = _( "触手が消えた。",  "Your tentacles vanish from your sides.");
1182
1183                         break;
1184                 case 99:
1185                         muta_class = &(p_ptr->muta2);
1186                         muta_which = MUT2_RAW_CHAOS;
1187                         muta_desc = _( "周囲の空間が安定した気がする。",  "You feel the universe is more stable around you.");
1188
1189                         break;
1190                 case 100: case 101: case 102:
1191                         muta_class = &(p_ptr->muta2);
1192                         muta_which = MUT2_NORMALITY;
1193                         muta_desc = _( "普通に奇妙な感じがする。",  "You feel normally strange.");
1194
1195                         break;
1196                 case 103:
1197                         muta_class = &(p_ptr->muta2);
1198                         muta_which = MUT2_WRAITH;
1199                         muta_desc = _( "あなたは物質世界にしっかり存在している。",  "You are firmly in the physical world.");
1200
1201                         break;
1202                 case 104:
1203                         muta_class = &(p_ptr->muta2);
1204                         muta_which = MUT2_POLY_WOUND;
1205                         muta_desc = _( "古い傷からカオスの力が去っていった。",  "You feel forces of chaos departing your old scars.");
1206
1207                         break;
1208                 case 105:
1209                         muta_class = &(p_ptr->muta2);
1210                         muta_which = MUT2_WASTING;
1211                         muta_desc = _( "おぞましい衰弱病が治った!",  "You are cured of the horrible wasting disease!");
1212
1213                         break;
1214                 case 106:
1215                         muta_class = &(p_ptr->muta2);
1216                         muta_which = MUT2_ATT_DRAGON;
1217                         muta_desc = _( "ドラゴンを引き寄せなくなった。",  "You stop attracting dragons.");
1218
1219                         break;
1220                 case 107: case 108:
1221                         muta_class = &(p_ptr->muta2);
1222                         muta_which = MUT2_WEIRD_MIND;
1223                         muta_desc = _( "思考が退屈な方向に戻った。",  "Your thoughts return to boring paths.");
1224
1225                         break;
1226                 case 109:
1227                         muta_class = &(p_ptr->muta2);
1228                         muta_which = MUT2_NAUSEA;
1229                         muta_desc = _( "胃が痙攣しなくなった。",  "Your stomach stops roiling.");
1230
1231                         break;
1232                 case 110: case 111:
1233                         muta_class = &(p_ptr->muta2);
1234                         muta_which = MUT2_CHAOS_GIFT;
1235                         muta_desc = _( "混沌の神々の興味を惹かなくなった。",  "You lose the attention of the chaos deities.");
1236
1237                         break;
1238                 case 112:
1239                         muta_class = &(p_ptr->muta2);
1240                         muta_which = MUT2_WALK_SHAD;
1241                         muta_desc = _( "物質世界に捕らわれている気がする。",  "You feel like you're trapped in reality.");
1242
1243                         break;
1244                 case 113: case 114:
1245                         muta_class = &(p_ptr->muta2);
1246                         muta_which = MUT2_WARNING;
1247                         muta_desc = _( "パラノイアでなくなった。",  "You no longer feel paranoid.");
1248
1249                         break;
1250                 case 115:
1251                         muta_class = &(p_ptr->muta2);
1252                         muta_which = MUT2_INVULN;
1253                         muta_desc = _( "無敵状態の発作を起こさなくなった。",  "You are no longer blessed with fits of invulnerability.");
1254
1255                         break;
1256                 case 116: case 117:
1257                         muta_class = &(p_ptr->muta2);
1258                         muta_which = MUT2_SP_TO_HP;
1259                         muta_desc = _( "魔法の治癒の発作に襲われなくなった。",  "You are no longer subject to fits of magical healing.");
1260
1261                         break;
1262                 case 118:
1263                         muta_class = &(p_ptr->muta2);
1264                         muta_which = MUT2_HP_TO_SP;
1265                         muta_desc = _( "痛みを伴う精神明瞭化の発作に襲われなくなった。",  "You are no longer subject to fits of painful clarity.");
1266
1267                         break;
1268                 case 119:
1269                         muta_class = &(p_ptr->muta2);
1270                         muta_which = MUT2_DISARM;
1271                         muta_desc = _( "脚が元の大きさに戻った。",  "Your feet shrink to their former size.");
1272
1273                         break;
1274                 case 120: case 121: case 122:
1275                         muta_class = &(p_ptr->muta3);
1276                         muta_which = MUT3_HYPER_STR;
1277                         muta_desc = _( "筋肉が普通に戻った。",  "Your muscles revert to normal.");
1278
1279                         break;
1280                 case 123: case 124: case 125:
1281                         muta_class = &(p_ptr->muta3);
1282                         muta_which = MUT3_PUNY;
1283                         muta_desc = _( "筋肉が普通に戻った。",  "Your muscles revert to normal.");
1284
1285                         break;
1286                 case 126: case 127: case 128:
1287                         muta_class = &(p_ptr->muta3);
1288                         muta_which = MUT3_HYPER_INT;
1289                         muta_desc = _( "脳が普通に戻った。",  "Your brain reverts to normal.");
1290
1291                         break;
1292                 case 129: case 130: case 131:
1293                         muta_class = &(p_ptr->muta3);
1294                         muta_which = MUT3_MORONIC;
1295                         muta_desc = _( "脳が普通に戻った。",  "Your brain reverts to normal.");
1296
1297                         break;
1298                 case 132: case 133:
1299                         muta_class = &(p_ptr->muta3);
1300                         muta_which = MUT3_RESILIENT;
1301                         muta_desc = _( "普通の丈夫さに戻った。",  "You become ordinarily resilient again.");
1302
1303                         break;
1304                 case 134: case 135:
1305                         muta_class = &(p_ptr->muta3);
1306                         muta_which = MUT3_XTRA_FAT;
1307                         muta_desc = _( "奇跡的なダイエットに成功した!",  "You benefit from a miracle diet!");
1308
1309                         break;
1310                 case 136: case 137:
1311                         muta_class = &(p_ptr->muta3);
1312                         muta_which = MUT3_ALBINO;
1313                         muta_desc = _( "アルビノでなくなった!",  "You are no longer an albino!");
1314
1315                         break;
1316                 case 138: case 139: case 140:
1317                         muta_class = &(p_ptr->muta3);
1318                         muta_which = MUT3_FLESH_ROT;
1319                         muta_desc = _( "肉体を腐敗させる病気が治った!",  "Your flesh is no longer afflicted by a rotting disease!");
1320
1321                         break;
1322                 case 141: case 142:
1323                         muta_class = &(p_ptr->muta3);
1324                         muta_which = MUT3_SILLY_VOI;
1325                         muta_desc = _( "声質が普通に戻った。",  "Your voice returns to normal.");
1326
1327                         break;
1328                 case 143: case 144:
1329                         muta_class = &(p_ptr->muta3);
1330                         muta_which = MUT3_BLANK_FAC;
1331                         muta_desc = _( "顔に目鼻が戻った。",  "Your facial features return.");
1332
1333                         break;
1334                 case 145:
1335                         muta_class = &(p_ptr->muta3);
1336                         muta_which = MUT3_ILL_NORM;
1337                         muta_desc = _( "心が安らぐ幻影を映し出さなくなった。",  "You stop projecting a reassuring image.");
1338
1339                         break;
1340                 case 146: case 147: case 148:
1341                         muta_class = &(p_ptr->muta3);
1342                         muta_which = MUT3_XTRA_EYES;
1343                         muta_desc = _( "余分な目が消えてしまった!",  "Your extra eyes vanish!");
1344
1345                         break;
1346                 case 149: case 150:
1347                         muta_class = &(p_ptr->muta3);
1348                         muta_which = MUT3_MAGIC_RES;
1349                         muta_desc = _( "魔法に弱くなった。",  "You become susceptible to magic again.");
1350
1351                         break;
1352                 case 151: case 152: case 153:
1353                         muta_class = &(p_ptr->muta3);
1354                         muta_which = MUT3_XTRA_NOIS;
1355                         muta_desc = _( "奇妙な音を立てなくなった!",  "You stop making strange noise!");
1356
1357                         break;
1358                 case 154: case 155: case 156:
1359                         muta_class = &(p_ptr->muta3);
1360                         muta_which = MUT3_INFRAVIS;
1361                         muta_desc = _( "赤外線視力が落ちた。",  "Your infravision is degraded.");
1362
1363                         break;
1364                 case 157: case 158:
1365                         muta_class = &(p_ptr->muta3);
1366                         muta_which = MUT3_XTRA_LEGS;
1367                         muta_desc = _( "余分な脚が消えてしまった!",  "Your extra legs disappear!");
1368
1369                         break;
1370                 case 159: case 160:
1371                         muta_class = &(p_ptr->muta3);
1372                         muta_which = MUT3_SHORT_LEG;
1373                         muta_desc = _( "脚の長さが普通に戻った。",  "Your legs lengthen to normal.");
1374
1375                         break;
1376                 case 161: case 162:
1377                         muta_class = &(p_ptr->muta3);
1378                         muta_which = MUT3_ELEC_TOUC;
1379                         muta_desc = _( "体を電流が流れなくなった。",  "Electricity stops running through you.");
1380
1381                         break;
1382                 case 163: case 164:
1383                         muta_class = &(p_ptr->muta3);
1384                         muta_which = MUT3_FIRE_BODY;
1385                         muta_desc = _( "体が炎に包まれなくなった。",  "Your body is no longer enveloped in flames.");
1386
1387                         break;
1388                 case 165: case 166: case 167:
1389                         muta_class = &(p_ptr->muta3);
1390                         muta_which = MUT3_WART_SKIN;
1391                         muta_desc = _( "イボイボが消えた!",  "Your warts disappear!");
1392
1393                         break;
1394                 case 168: case 169: case 170:
1395                         muta_class = &(p_ptr->muta3);
1396                         muta_which = MUT3_SCALES;
1397                         muta_desc = _( "鱗が消えた!",  "Your scales vanish!");
1398
1399                         break;
1400                 case 171: case 172:
1401                         muta_class = &(p_ptr->muta3);
1402                         muta_which = MUT3_IRON_SKIN;
1403                         muta_desc = _( "肌が肉にもどった!",  "Your skin reverts to flesh!");
1404
1405                         break;
1406                 case 173: case 174:
1407                         muta_class = &(p_ptr->muta3);
1408                         muta_which = MUT3_WINGS;
1409                         muta_desc = _( "背中の羽根が取れ落ちた。",  "Your wings fall off.");
1410
1411                         break;
1412                 case 175: case 176: case 177:
1413                         muta_class = &(p_ptr->muta3);
1414                         muta_which = MUT3_FEARLESS;
1415                         muta_desc = _( "再び恐怖を感じるようになった。",  "You begin to feel fear again.");
1416
1417                         break;
1418                 case 178: case 179:
1419                         muta_class = &(p_ptr->muta3);
1420                         muta_which = MUT3_REGEN;
1421                         muta_desc = _( "急速回復しなくなった。",  "You stop regenerating.");
1422
1423                         break;
1424                 case 180: case 181:
1425                         muta_class = &(p_ptr->muta3);
1426                         muta_which = MUT3_ESP;
1427                         muta_desc = _( "テレパシーの能力を失った!",  "You lose your telepathic ability!");
1428
1429                         break;
1430                 case 182: case 183: case 184:
1431                         muta_class = &(p_ptr->muta3);
1432                         muta_which = MUT3_LIMBER;
1433                         muta_desc = _( "筋肉が硬くなった。",  "Your muscles stiffen.");
1434
1435                         break;
1436                 case 185: case 186: case 187:
1437                         muta_class = &(p_ptr->muta3);
1438                         muta_which = MUT3_ARTHRITIS;
1439                         muta_desc = _( "関節が痛くなくなった。",  "Your joints stop hurting.");
1440
1441                         break;
1442                 case 188:
1443                         muta_class = &(p_ptr->muta3);
1444                         muta_which = MUT3_BAD_LUCK;
1445                         muta_desc = _( "黒いオーラは渦巻いて消えた。",  "Your black aura swirls and fades.");
1446
1447                         break;
1448                 case 189:
1449                         muta_class = &(p_ptr->muta3);
1450                         muta_which = MUT3_VULN_ELEM;
1451                         muta_desc = _( "無防備な感じはなくなった。",  "You feel less exposed.");
1452
1453                         break;
1454                 case 190: case 191: case 192:
1455                         muta_class = &(p_ptr->muta3);
1456                         muta_which = MUT3_MOTION;
1457                         muta_desc = _( "動作の正確さがなくなった。",  "You move with less assurance.");
1458
1459                         break;
1460                 case 193:
1461                         if (p_ptr->pseikaku == SEIKAKU_LUCKY) break;
1462                         muta_class = &(p_ptr->muta3);
1463                         muta_which = MUT3_GOOD_LUCK;
1464                         muta_desc = _( "白いオーラは輝いて消えた。",  "Your white aura shimmers and fades.");
1465
1466                         break;
1467                 default:
1468                         muta_class = NULL;
1469                         muta_which = 0;
1470                 }
1471
1472                 if (muta_class && muta_which)
1473                 {
1474                         if (*(muta_class) & muta_which)
1475                         {
1476                                 muta_chosen = TRUE;
1477                         }
1478                 }
1479                 if (muta_chosen == TRUE) break;
1480         }
1481
1482         if (!muta_chosen)
1483         {
1484                 return FALSE;
1485         }
1486         else
1487         {
1488                 msg_print(muta_desc);
1489                 *(muta_class) &= ~(muta_which);
1490
1491                 p_ptr->update |= PU_BONUS;
1492                 handle_stuff();
1493                 p_ptr->mutant_regenerate_mod = calc_mutant_regenerate_mod();
1494                 return TRUE;
1495         }
1496 }
1497
1498 void lose_all_mutations(void)
1499 {
1500         if (p_ptr->muta1 || p_ptr->muta2 || p_ptr->muta3)
1501         {
1502                 chg_virtue(V_CHANCE, -5);
1503                 msg_print(_("全ての突然変異が治った。", "You are cured of all mutations."));
1504                 p_ptr->muta1 = p_ptr->muta2 = p_ptr->muta3 = 0;
1505                 p_ptr->update |= PU_BONUS;
1506                 handle_stuff();
1507                 p_ptr->mutant_regenerate_mod = calc_mutant_regenerate_mod();
1508         }
1509 }
1510
1511 /*!
1512  * @brief ファイルポインタを通じて突然変異の一覧を出力する
1513  * @param OutFile 出力先ファイルポインタ
1514  * @return なし
1515  */
1516 void dump_mutations(FILE *OutFile)
1517 {
1518         if (!OutFile) return;
1519
1520         if (p_ptr->muta1)
1521         {
1522                 if (p_ptr->muta1 & MUT1_SPIT_ACID)
1523                 {
1524                         fprintf(OutFile, _(" あなたは酸を吹きかけることができる。(ダメージ レベルX1)\n", " You can spit acid (dam lvl).\n"));
1525
1526                 }
1527                 if (p_ptr->muta1 & MUT1_BR_FIRE)
1528                 {
1529                         fprintf(OutFile, _(" あなたは炎のブレスを吐くことができる。(ダメージ レベルX2)\n", " You can breathe fire (dam lvl * 2).\n"));
1530
1531                 }
1532                 if (p_ptr->muta1 & MUT1_HYPN_GAZE)
1533                 {
1534                         fprintf(OutFile, _(" あなたの睨みは催眠効果をもつ。\n", " Your gaze is hypnotic.\n"));
1535
1536                 }
1537                 if (p_ptr->muta1 & MUT1_TELEKINES)
1538                 {
1539                         fprintf(OutFile, _(" あなたは念動力をもっている。\n", " You are telekinetic.\n"));
1540
1541                 }
1542                 if (p_ptr->muta1 & MUT1_VTELEPORT)
1543                 {
1544                         fprintf(OutFile, _(" あなたは自分の意思でテレポートできる。\n", " You can teleport at will.\n"));
1545
1546                 }
1547                 if (p_ptr->muta1 & MUT1_MIND_BLST)
1548                 {
1549                         fprintf(OutFile, _(" あなたは敵を精神攻撃できる。\n", " You can Mind Blast your enemies.\n"));
1550
1551                 }
1552                 if (p_ptr->muta1 & MUT1_RADIATION)
1553                 {
1554                         fprintf(OutFile, _(" あなたは自分の意思で放射能を発生することができる。\n", " You can emit hard radiation at will.\n"));
1555
1556                 }
1557                 if (p_ptr->muta1 & MUT1_VAMPIRISM)
1558                 {
1559                         fprintf(OutFile, _(" あなたは吸血鬼のように敵から生命力を吸収することができる。\n", " You can drain life from a foe like a vampire.\n"));
1560
1561                 }
1562                 if (p_ptr->muta1 & MUT1_SMELL_MET)
1563                 {
1564                         fprintf(OutFile, _(" あなたは近くにある貴金属をかぎ分けることができる。\n", " You can smell nearby precious metal.\n"));
1565
1566                 }
1567                 if (p_ptr->muta1 & MUT1_SMELL_MON)
1568                 {
1569                         fprintf(OutFile, _(" あなたは近くのモンスターの存在をかぎ分けることができる。\n", " You can smell nearby monsters.\n"));
1570
1571                 }
1572                 if (p_ptr->muta1 & MUT1_BLINK)
1573                 {
1574                         fprintf(OutFile, _(" あなたは短い距離をテレポートできる。\n", " You can teleport yourself short distances.\n"));
1575
1576                 }
1577                 if (p_ptr->muta1 & MUT1_EAT_ROCK)
1578                 {
1579                         fprintf(OutFile, _(" あなたは硬い岩を食べることができる。\n", " You can consume solid rock.\n"));
1580
1581                 }
1582                 if (p_ptr->muta1 & MUT1_SWAP_POS)
1583                 {
1584                         fprintf(OutFile, _(" あなたは他の者と場所を入れ替わることができる。\n", " You can switch locations with another being.\n"));
1585
1586                 }
1587                 if (p_ptr->muta1 & MUT1_SHRIEK)
1588                 {
1589                         fprintf(OutFile, _(" あなたは身の毛もよだつ叫び声を発することができる。\n", " You can emit a horrible shriek.\n"));
1590
1591                 }
1592                 if (p_ptr->muta1 & MUT1_ILLUMINE)
1593                 {
1594                         fprintf(OutFile, _(" あなたは明るい光を放つことができる。\n", " You can emit bright light.\n"));
1595
1596                 }
1597                 if (p_ptr->muta1 & MUT1_DET_CURSE)
1598                 {
1599                         fprintf(OutFile, _(" あなたは邪悪な魔法の危険を感じとることができる。\n", " You can feel the danger of evil magic.\n"));
1600
1601                 }
1602                 if (p_ptr->muta1 & MUT1_BERSERK)
1603                 {
1604                         fprintf(OutFile, _(" あなたは自分の意思で狂乱戦闘状態になることができる。\n", " You can drive yourself into a berserk frenzy.\n"));
1605
1606                 }
1607                 if (p_ptr->muta1 & MUT1_POLYMORPH)
1608                 {
1609                         fprintf(OutFile, _(" あなたは自分の意志で変化できる。\n", " You can polymorph yourself at will.\n"));
1610
1611                 }
1612                 if (p_ptr->muta1 & MUT1_MIDAS_TCH)
1613                 {
1614                         fprintf(OutFile, _(" あなたは通常アイテムを金に変えることができる。\n", " You can current_world_ptr->game_turn ordinary items to gold.\n"));
1615
1616                 }
1617                 if (p_ptr->muta1 & MUT1_GROW_MOLD)
1618                 {
1619                         fprintf(OutFile, _(" あなたは周囲にキノコを生やすことができる。\n", " You can cause mold to grow near you.\n"));
1620
1621                 }
1622                 if (p_ptr->muta1 & MUT1_RESIST)
1623                 {
1624                         fprintf(OutFile, _(" あなたは元素の攻撃に対して身を硬くすることができる。\n", " You can harden yourself to the ravages of the elements.\n"));
1625
1626                 }
1627                 if (p_ptr->muta1 & MUT1_EARTHQUAKE)
1628                 {
1629                         fprintf(OutFile, _(" あなたは周囲のダンジョンを崩壊させることができる。\n", " You can bring down the dungeon around your ears.\n"));
1630
1631                 }
1632                 if (p_ptr->muta1 & MUT1_EAT_MAGIC)
1633                 {
1634                         fprintf(OutFile, _(" あなたは魔法のエネルギーを自分の物として使用できる。\n", " You can consume magic energy for your own use.\n"));
1635
1636                 }
1637                 if (p_ptr->muta1 & MUT1_WEIGH_MAG)
1638                 {
1639                         fprintf(OutFile, _(" あなたは自分に影響を与える魔法の力を感じることができる。\n", " You can feel the strength of the magics affecting you.\n"));
1640
1641                 }
1642                 if (p_ptr->muta1 & MUT1_STERILITY)
1643                 {
1644                         fprintf(OutFile, _(" あなたは集団的生殖不能を起こすことができる。\n", " You can cause mass impotence.\n"));
1645
1646                 }
1647                 if (p_ptr->muta1 & MUT1_PANIC_HIT)
1648                 {
1649                         fprintf(OutFile, _(" あなたは攻撃した後身を守るため逃げることができる。\n", " You can run for your life after hitting something.\n"));
1650
1651                 }
1652                 if (p_ptr->muta1 & MUT1_DAZZLE)
1653                 {
1654                         fprintf(OutFile, _(" あなたは混乱と盲目を引き起こす放射能を発生することができる。 \n", " You can emit confusing, blinding radiation.\n"));
1655
1656                 }
1657                 if (p_ptr->muta1 & MUT1_LASER_EYE)
1658                 {
1659                         fprintf(OutFile, _(" あなたは目からレーザー光線を発射することができる。\n", " Your eyes can fire laser beams.\n"));
1660
1661                 }
1662                 if (p_ptr->muta1 & MUT1_RECALL)
1663                 {
1664                         fprintf(OutFile, _(" あなたは街とダンジョンの間を行き来することができる。\n", " You can travel between town and the depths.\n"));
1665
1666                 }
1667                 if (p_ptr->muta1 & MUT1_BANISH)
1668                 {
1669                         fprintf(OutFile, _(" あなたは邪悪なモンスターを地獄に落とすことができる。\n", " You can send evil creatures directly to Hell.\n"));
1670
1671                 }
1672                 if (p_ptr->muta1 & MUT1_COLD_TOUCH)
1673                 {
1674                         fprintf(OutFile, _(" あなたは物を触って凍らせることができる。\n", " You can freeze things with a touch.\n"));
1675
1676                 }
1677                 if (p_ptr->muta1 & MUT1_LAUNCHER)
1678                 {
1679                         fprintf(OutFile, _(" あなたはアイテムを力強く投げることができる。\n", " You can hurl objects with great force.\n"));
1680
1681                 }
1682         }
1683
1684         if (p_ptr->muta2)
1685         {
1686                 if (p_ptr->muta2 & MUT2_BERS_RAGE)
1687                 {
1688                         fprintf(OutFile, _(" あなたは狂戦士化の発作を起こす。\n", " You are subject to berserker fits.\n"));
1689
1690                 }
1691                 if (p_ptr->muta2 & MUT2_COWARDICE)
1692                 {
1693                         fprintf(OutFile, _(" あなたは時々臆病になる。\n", " You are subject to cowardice.\n"));
1694
1695                 }
1696                 if (p_ptr->muta2 & MUT2_RTELEPORT)
1697                 {
1698                         fprintf(OutFile, _(" あなたはランダムにテレポートする。\n", " You are teleporting randomly.\n"));
1699
1700                 }
1701                 if (p_ptr->muta2 & MUT2_ALCOHOL)
1702                 {
1703                         fprintf(OutFile, _(" あなたの体はアルコールを分泌する。\n", " Your body produces alcohol.\n"));
1704
1705                 }
1706                 if (p_ptr->muta2 & MUT2_HALLU)
1707                 {
1708                         fprintf(OutFile, _(" あなたは幻覚を引き起こす精神錯乱に侵されている。\n", " You have a hallucinatory insanity.\n"));
1709
1710                 }
1711                 if (p_ptr->muta2 & MUT2_FLATULENT)
1712                 {
1713                         fprintf(OutFile, _(" あなたは制御できない強烈な屁をこく。\n", " You are subject to uncontrollable flatulence.\n"));
1714
1715                 }
1716                 if (p_ptr->muta2 & MUT2_PROD_MANA)
1717                 {
1718                         fprintf(OutFile, _(" あなたは制御不能な魔法のエネルギーを発している。\n", " You are producing magical energy uncontrollably.\n"));
1719
1720                 }
1721                 if (p_ptr->muta2 & MUT2_ATT_DEMON)
1722                 {
1723                         fprintf(OutFile, _(" あなたはデーモンを引きつける。\n", " You attract demons.\n"));
1724
1725                 }
1726                 if (p_ptr->muta2 & MUT2_SCOR_TAIL)
1727                 {
1728                         fprintf(OutFile, _(" あなたはサソリの尻尾が生えている。(毒、ダメージ 3d7)\n", " You have a scorpion tail (poison, 3d7).\n"));
1729
1730                 }
1731                 if (p_ptr->muta2 & MUT2_HORNS)
1732                 {
1733                         fprintf(OutFile, _(" あなたは角が生えている。(ダメージ 2d6)\n", " You have horns (dam. 2d6).\n"));
1734
1735                 }
1736                 if (p_ptr->muta2 & MUT2_BEAK)
1737                 {
1738                         fprintf(OutFile, _(" あなたはクチバシが生えている。(ダメージ 2d4)\n", " You have a beak (dam. 2d4).\n"));
1739
1740                 }
1741                 if (p_ptr->muta2 & MUT2_SPEED_FLUX)
1742                 {
1743                         fprintf(OutFile, _(" あなたはランダムに早く動いたり遅く動いたりする。\n", " You move faster or slower randomly.\n"));
1744
1745                 }
1746                 if (p_ptr->muta2 & MUT2_BANISH_ALL)
1747                 {
1748                         fprintf(OutFile, _(" あなたは時々近くのモンスターを消滅させる。\n", " You sometimes cause nearby creatures to vanish.\n"));
1749
1750                 }
1751                 if (p_ptr->muta2 & MUT2_EAT_LIGHT)
1752                 {
1753                         fprintf(OutFile, _(" あなたは時々周囲の光を吸収して栄養にする。\n", " You sometimes feed off of the light around you.\n"));
1754
1755                 }
1756                 if (p_ptr->muta2 & MUT2_TRUNK)
1757                 {
1758                         fprintf(OutFile, _(" あなたは象のような鼻を持っている。(ダメージ 1d4)\n", " You have an elephantine trunk (dam 1d4).\n"));
1759
1760                 }
1761                 if (p_ptr->muta2 & MUT2_ATT_ANIMAL)
1762                 {
1763                         fprintf(OutFile, _(" あなたは動物を引きつける。\n", " You attract animals.\n"));
1764
1765                 }
1766                 if (p_ptr->muta2 & MUT2_TENTACLES)
1767                 {
1768                         fprintf(OutFile, _(" あなたは邪悪な触手を持っている。(ダメージ 2d5)\n", " You have evil looking tentacles (dam 2d5).\n"));
1769
1770                 }
1771                 if (p_ptr->muta2 & MUT2_RAW_CHAOS)
1772                 {
1773                         fprintf(OutFile, _(" あなたはしばしば純カオスに包まれる。\n", " You occasionally are surrounded with raw chaos.\n"));
1774
1775                 }
1776                 if (p_ptr->muta2 & MUT2_NORMALITY)
1777                 {
1778                         fprintf(OutFile, _(" あなたは変異していたが、回復してきている。\n", " You may be mutated, but you're recovering.\n"));
1779
1780                 }
1781                 if (p_ptr->muta2 & MUT2_WRAITH)
1782                 {
1783                         fprintf(OutFile, _(" あなたの肉体は幽体化したり実体化したりする。\n", " You fade in and out of physical reality.\n"));
1784
1785                 }
1786                 if (p_ptr->muta2 & MUT2_POLY_WOUND)
1787                 {
1788                         fprintf(OutFile, _(" あなたの健康はカオスの力に影響を受ける。\n", " Your health is subject to chaotic forces.\n"));
1789
1790                 }
1791                 if (p_ptr->muta2 & MUT2_WASTING)
1792                 {
1793                         fprintf(OutFile, _(" あなたは衰弱する恐ろしい病気にかかっている。\n", " You have a horrible wasting disease.\n"));
1794
1795                 }
1796                 if (p_ptr->muta2 & MUT2_ATT_DRAGON)
1797                 {
1798                         fprintf(OutFile, _(" あなたはドラゴンを引きつける。\n", " You attract dragons.\n"));
1799
1800                 }
1801                 if (p_ptr->muta2 & MUT2_WEIRD_MIND)
1802                 {
1803                         fprintf(OutFile, _(" あなたの精神はランダムに拡大したり縮小したりしている。\n", " Your mind randomly expands and contracts.\n"));
1804
1805                 }
1806                 if (p_ptr->muta2 & MUT2_NAUSEA)
1807                 {
1808                         fprintf(OutFile, _(" あなたの胃は非常に落ち着きがない。\n", " You have a seriously upset stomach.\n"));
1809
1810                 }
1811                 if (p_ptr->muta2 & MUT2_CHAOS_GIFT)
1812                 {
1813                         fprintf(OutFile, _(" あなたはカオスの守護悪魔から褒美をうけとる。\n", " Chaos deities give you gifts.\n"));
1814
1815                 }
1816                 if (p_ptr->muta2 & MUT2_WALK_SHAD)
1817                 {
1818                         fprintf(OutFile, _(" あなたはしばしば他の「影」に迷い込む。\n", " You occasionally stumble into other shadows.\n"));
1819
1820                 }
1821                 if (p_ptr->muta2 & MUT2_WARNING)
1822                 {
1823                         fprintf(OutFile, _(" あなたは敵に関する警告を感じる。\n", " You receive warnings about your foes.\n"));
1824
1825                 }
1826                 if (p_ptr->muta2 & MUT2_INVULN)
1827                 {
1828                         fprintf(OutFile, _(" あなたは時々負け知らずな気分になる。\n", " You occasionally feel invincible.\n"));
1829
1830                 }
1831                 if (p_ptr->muta2 & MUT2_SP_TO_HP)
1832                 {
1833                         fprintf(OutFile, _(" あなたは時々血が筋肉にどっと流れる。\n", " Your blood sometimes rushes to your muscles.\n"));
1834
1835                 }
1836                 if (p_ptr->muta2 & MUT2_HP_TO_SP)
1837                 {
1838                         fprintf(OutFile, _(" あなたは時々頭に血がどっと流れる。\n", " Your blood sometimes rushes to your head.\n"));
1839
1840                 }
1841                 if (p_ptr->muta2 & MUT2_DISARM)
1842                 {
1843                         fprintf(OutFile, _(" あなたはよくつまづいて物を落とす。\n", " You occasionally stumble and drop things.\n"));
1844
1845                 }
1846         }
1847
1848         if (p_ptr->muta3)
1849         {
1850                 if (p_ptr->muta3 & MUT3_HYPER_STR)
1851                 {
1852                         fprintf(OutFile, _(" あなたは超人的に強い。(腕力+4)\n", " You are superhumanly strong (+4 STR).\n"));
1853
1854                 }
1855                 if (p_ptr->muta3 & MUT3_PUNY)
1856                 {
1857                         fprintf(OutFile, _(" あなたは虚弱だ。(腕力-4)\n", " You are puny (-4 STR).\n"));
1858
1859                 }
1860                 if (p_ptr->muta3 & MUT3_HYPER_INT)
1861                 {
1862                         fprintf(OutFile, _(" あなたの脳は生体コンピュータだ。(知能&賢さ+4)\n", " Your brain is a living computer (+4 INT/WIS).\n"));
1863
1864                 }
1865                 if (p_ptr->muta3 & MUT3_MORONIC)
1866                 {
1867                         fprintf(OutFile, _(" あなたは精神薄弱だ。(知能&賢さ-4)\n", " You are moronic (-4 INT/WIS).\n"));
1868
1869                 }
1870                 if (p_ptr->muta3 & MUT3_RESILIENT)
1871                 {
1872                         fprintf(OutFile, _(" あなたの体は弾力性に富んでいる。(耐久+4)\n", " You are very resilient (+4 CON).\n"));
1873
1874                 }
1875                 if (p_ptr->muta3 & MUT3_XTRA_FAT)
1876                 {
1877                         fprintf(OutFile, _(" あなたは極端に太っている。(耐久+2,スピード-2)\n", " You are extremely fat (+2 CON, -2 speed).\n"));
1878
1879                 }
1880                 if (p_ptr->muta3 & MUT3_ALBINO)
1881                 {
1882                         fprintf(OutFile, _(" あなたはアルビノだ。(耐久-4)\n", " You are albino (-4 CON).\n"));
1883
1884                 }
1885                 if (p_ptr->muta3 & MUT3_FLESH_ROT)
1886                 {
1887                         fprintf(OutFile, _(" あなたの肉体は腐敗している。(耐久-2,魅力-1)\n", " Your flesh is rotting (-2 CON, -1 CHR).\n"));
1888
1889                 }
1890                 if (p_ptr->muta3 & MUT3_SILLY_VOI)
1891                 {
1892                         fprintf(OutFile, _(" あなたの声は間抜けなキーキー声だ。(魅力-4)\n", " Your voice is a silly squeak (-4 CHR).\n"));
1893
1894                 }
1895                 if (p_ptr->muta3 & MUT3_BLANK_FAC)
1896                 {
1897                         fprintf(OutFile, _(" あなたはのっぺらぼうだ。(魅力-1)\n", " Your face is featureless (-1 CHR).\n"));
1898
1899                 }
1900                 if (p_ptr->muta3 & MUT3_ILL_NORM)
1901                 {
1902                         fprintf(OutFile, _(" あなたは幻影に覆われている。\n", " Your appearance is masked with illusion.\n"));
1903
1904                 }
1905                 if (p_ptr->muta3 & MUT3_XTRA_EYES)
1906                 {
1907                         fprintf(OutFile, _(" あなたは余分に二つの目を持っている。(探索+15)\n", " You have an extra pair of eyes (+15 search).\n"));
1908
1909                 }
1910                 if (p_ptr->muta3 & MUT3_MAGIC_RES)
1911                 {
1912                         fprintf(OutFile, _(" あなたは魔法への耐性をもっている。\n", " You are resistant to magic.\n"));
1913
1914                 }
1915                 if (p_ptr->muta3 & MUT3_XTRA_NOIS)
1916                 {
1917                         fprintf(OutFile, _(" あなたは変な音を発している。(隠密-3)\n", " You make a lot of strange noise (-3 stealth).\n"));
1918
1919                 }
1920                 if (p_ptr->muta3 & MUT3_INFRAVIS)
1921                 {
1922                         fprintf(OutFile, _(" あなたは素晴らしい赤外線視力を持っている。(+3)\n", " You have remarkable infravision (+3).\n"));
1923
1924                 }
1925                 if (p_ptr->muta3 & MUT3_XTRA_LEGS)
1926                 {
1927                         fprintf(OutFile, _(" あなたは余分に二本の足が生えている。(加速+3)\n", " You have an extra pair of legs (+3 speed).\n"));
1928
1929                 }
1930                 if (p_ptr->muta3 & MUT3_SHORT_LEG)
1931                 {
1932                         fprintf(OutFile, _(" あなたの足は短い突起だ。(加速-3)\n", " Your legs are short stubs (-3 speed).\n"));
1933
1934                 }
1935                 if (p_ptr->muta3 & MUT3_ELEC_TOUC)
1936                 {
1937                         fprintf(OutFile, _(" あなたの血管には電流が流れている。\n", " Electricity is running through your veins.\n"));
1938
1939                 }
1940                 if (p_ptr->muta3 & MUT3_FIRE_BODY)
1941                 {
1942                         fprintf(OutFile, _(" あなたの体は炎につつまれている。\n", " Your body is enveloped in flames.\n"));
1943
1944                 }
1945                 if (p_ptr->muta3 & MUT3_WART_SKIN)
1946                 {
1947                         fprintf(OutFile, _(" あなたの肌はイボに被われている。(魅力-2, AC+5)\n", " Your skin is covered with warts (-2 CHR, +5 AC).\n"));
1948
1949                 }
1950                 if (p_ptr->muta3 & MUT3_SCALES)
1951                 {
1952                         fprintf(OutFile, _(" あなたの肌は鱗になっている。(魅力-1, AC+10)\n", " Your skin has turned into scales (-1 CHR, +10 AC).\n"));
1953
1954                 }
1955                 if (p_ptr->muta3 & MUT3_IRON_SKIN)
1956                 {
1957                         fprintf(OutFile, _(" あなたの肌は鉄でできている。(器用-1, AC+25)\n", " Your skin is made of steel (-1 DEX, +25 AC).\n"));
1958
1959                 }
1960                 if (p_ptr->muta3 & MUT3_WINGS)
1961                 {
1962                         fprintf(OutFile, _(" あなたは羽を持っている。\n", " You have wings.\n"));
1963
1964                 }
1965                 if (p_ptr->muta3 & MUT3_FEARLESS)
1966                 {
1967                         fprintf(OutFile, _(" あなたは全く恐怖を感じない。\n", " You are completely fearless.\n"));
1968
1969                 }
1970                 if (p_ptr->muta3 & MUT3_REGEN)
1971                 {
1972                         fprintf(OutFile, _(" あなたは急速に回復する。\n", " You are regenerating.\n"));
1973
1974                 }
1975                 if (p_ptr->muta3 & MUT3_ESP)
1976                 {
1977                         fprintf(OutFile, _(" あなたはテレパシーを持っている。\n", " You are telepathic.\n"));
1978
1979                 }
1980                 if (p_ptr->muta3 & MUT3_LIMBER)
1981                 {
1982                         fprintf(OutFile, _(" あなたの体は非常にしなやかだ。(器用+3)\n", " Your body is very limber (+3 DEX).\n"));
1983
1984                 }
1985                 if (p_ptr->muta3 & MUT3_ARTHRITIS)
1986                 {
1987                         fprintf(OutFile, _(" あなたはいつも関節に痛みを感じている。(器用-3)\n", " Your joints ache constantly (-3 DEX).\n"));
1988
1989                 }
1990                 if (p_ptr->muta3 & MUT3_VULN_ELEM)
1991                 {
1992                         fprintf(OutFile, _(" あなたは元素の攻撃に弱い。\n", " You are susceptible to damage from the elements.\n"));
1993
1994                 }
1995                 if (p_ptr->muta3 & MUT3_MOTION)
1996                 {
1997                         fprintf(OutFile, _(" あなたの動作は正確で力強い。(隠密+1)\n", " Your movements are precise and forceful (+1 STL).\n"));
1998
1999                 }
2000                 if (p_ptr->muta3 & MUT3_GOOD_LUCK)
2001                 {
2002                         fprintf(OutFile, _(" あなたは白いオーラにつつまれている。\n", " There is a white aura surrounding you.\n"));
2003
2004                 }
2005                 if (p_ptr->muta3 & MUT3_BAD_LUCK)
2006                 {
2007                         fprintf(OutFile, _(" あなたは黒いオーラにつつまれている。\n", " There is a black aura surrounding you.\n"));
2008
2009                 }
2010         }
2011 }
2012
2013 /*!
2014  * @brief 突然変異表示コマンドの実装 / List mutations we have...
2015  * @return なし
2016  */
2017 void do_cmd_knowledge_mutations(void)
2018 {
2019         FILE *fff;
2020         GAME_TEXT file_name[1024];
2021
2022         /* Open a new file */
2023         fff = my_fopen_temp(file_name, 1024);
2024
2025         /* Dump the mutations to file */
2026         if (fff) dump_mutations(fff);
2027         my_fclose(fff);
2028
2029         /* Display the file contents */
2030         show_file(TRUE, file_name, _("突然変異", "Mutations"), 0, 0);
2031         fd_kill(file_name);
2032 }
2033
2034
2035 /*!
2036  * @brief 現在プレイヤー得ている突然変異の数を返す。
2037  * @return 現在得ている突然変異の数
2038  */
2039 static int count_mutations(void)
2040 {
2041         return (count_bits(p_ptr->muta1) +
2042                 count_bits(p_ptr->muta2) +
2043                 count_bits(p_ptr->muta3));
2044 }
2045
2046
2047 /*!
2048  * @brief 突然変異による自然回復ペナルティをパーセント値で返す /
2049  * Return the modifier to the regeneration rate (in percent)
2050  * @return ペナルティ修正(%)
2051  */
2052 int calc_mutant_regenerate_mod(void)
2053 {
2054         int regen;
2055         int mod = 10;
2056         int count = count_mutations();
2057
2058         /*
2059          * Beastman get 10 "free" mutations and
2060          * only 5% decrease per additional mutation
2061          */
2062
2063         if (p_ptr->pseikaku == SEIKAKU_LUCKY) count--;
2064         if (p_ptr->prace == RACE_BEASTMAN)
2065         {
2066                 count -= 10;
2067                 mod = 5;
2068         }
2069
2070         /* No negative modifier */
2071         if (count <= 0) return 100;
2072
2073         regen = 100 - count * mod;
2074
2075         /* Max. 90% decrease in regeneration speed */
2076         if (regen < 10) regen = 10;
2077
2078         return (regen);
2079 }
2080
2081
2082 /*!
2083  * @brief 突然変異のレイシャル効果実装
2084  * @param power 発動させる突然変異レイシャルのID
2085  * @return レイシャルを実行した場合TRUE、キャンセルした場合FALSEを返す
2086  */
2087 bool mutation_power_aux(int power)
2088 {
2089         DIRECTION dir = 0;
2090         PLAYER_LEVEL lvl = p_ptr->lev;
2091
2092         switch (power)
2093         {
2094                 case MUT1_SPIT_ACID:
2095                         if (!get_aim_dir(&dir)) return FALSE;
2096                         stop_mouth();
2097                         msg_print(_("酸を吐きかけた...", "You spit acid..."));
2098                         fire_ball(GF_ACID, dir, lvl, 1 + (lvl / 30));
2099                         break;
2100
2101                 case MUT1_BR_FIRE:
2102                         if (!get_aim_dir(&dir)) return FALSE;
2103                         stop_mouth();
2104                         msg_print(_("あなたは火炎のブレスを吐いた...", "You breathe fire..."));
2105                         fire_breath(GF_FIRE, dir, lvl * 2, 1 + (lvl / 20));
2106                         break;
2107
2108                 case MUT1_HYPN_GAZE:
2109                         if (!get_aim_dir(&dir)) return FALSE;
2110                         msg_print(_("あなたの目は幻惑的になった...", "Your eyes look mesmerizing..."));
2111                         (void)charm_monster(dir, lvl);
2112                         break;
2113
2114                 case MUT1_TELEKINES:
2115                         if (!get_aim_dir(&dir)) return FALSE;
2116                         msg_print(_("集中している...", "You concentrate..."));
2117                         fetch(dir, lvl * 10, TRUE);
2118                         break;
2119
2120                 case MUT1_VTELEPORT:
2121                         msg_print(_("集中している...", "You concentrate..."));
2122                         teleport_player(10 + 4 * lvl, 0L);
2123                         break;
2124
2125                 case MUT1_MIND_BLST:
2126                         if (!get_aim_dir(&dir)) return FALSE;
2127                         msg_print(_("集中している...", "You concentrate..."));
2128                         fire_bolt(GF_PSI, dir, damroll(3 + ((lvl - 1) / 5), 3));
2129                         break;
2130
2131                 case MUT1_RADIATION:
2132                         msg_print(_("体から放射能が発生した!", "Radiation flows from your body!"));
2133                         fire_ball(GF_NUKE, 0, (lvl * 2), 3 + (lvl / 20));
2134                         break;
2135
2136                 case MUT1_VAMPIRISM:
2137                         vampirism();
2138                         break;
2139
2140                 case MUT1_SMELL_MET:
2141                         stop_mouth();
2142                         (void)detect_treasure(DETECT_RAD_DEFAULT);
2143                         break;
2144
2145                 case MUT1_SMELL_MON:
2146                         stop_mouth();
2147                         (void)detect_monsters_normal(DETECT_RAD_DEFAULT);
2148                         break;
2149
2150                 case MUT1_BLINK:
2151                         teleport_player(10, 0L);
2152                         break;
2153
2154                 case MUT1_EAT_ROCK:
2155                         return eat_lock();
2156                         break;
2157
2158                 case MUT1_SWAP_POS:
2159                         project_length = -1;
2160                         if (!get_aim_dir(&dir))
2161                         {
2162                                 project_length = 0;
2163                                 return FALSE;
2164                         }
2165                         (void)teleport_swap(dir);
2166                         project_length = 0;
2167                         break;
2168
2169                 case MUT1_SHRIEK:
2170                         stop_mouth();
2171                         (void)fire_ball(GF_SOUND, 0, 2 * lvl, 8);
2172                         (void)aggravate_monsters(0);
2173                         break;
2174
2175                 case MUT1_ILLUMINE:
2176                         (void)lite_area(damroll(2, (lvl / 2)), (lvl / 10) + 1);
2177                         break;
2178
2179                 case MUT1_DET_CURSE:
2180                         {
2181                                 int i;
2182
2183                                 for (i = 0; i < INVEN_TOTAL; i++)
2184                                 {
2185                                         object_type *o_ptr = &p_ptr->inventory_list[i];
2186
2187                                         if (!o_ptr->k_idx) continue;
2188                                         if (!object_is_cursed(o_ptr)) continue;
2189
2190                                         o_ptr->feeling = FEEL_CURSED;
2191                                 }
2192                         }
2193                         break;
2194
2195                 case MUT1_BERSERK:
2196                         (void)berserk(randint1(25) + 25);
2197                         break;
2198
2199                 case MUT1_POLYMORPH:
2200                         if (!get_check(_("変身します。よろしいですか?", "You will polymorph your self. Are you sure? "))) return FALSE;
2201                         do_poly_self();
2202                         break;
2203
2204                 case MUT1_MIDAS_TCH:
2205                         if (!alchemy()) return FALSE;
2206                         break;
2207
2208                 /* Summon pet molds around the player */
2209                 case MUT1_GROW_MOLD:
2210                         {
2211                                 DIRECTION i;
2212                                 for (i = 0; i < 8; i++)
2213                                 {
2214                                         summon_specific(-1, p_ptr->y, p_ptr->x, lvl, SUMMON_MOLD, PM_FORCE_PET);
2215                                 }
2216                         }
2217                         break;
2218
2219                 case MUT1_RESIST:
2220                         {
2221                                 int num = lvl / 10;
2222                                 TIME_EFFECT dur = randint1(20) + 20;
2223
2224                                 if (randint0(5) < num)
2225                                 {
2226                                         (void)set_oppose_acid(dur, FALSE);
2227                                         num--;
2228                                 }
2229                                 if (randint0(4) < num)
2230                                 {
2231                                         (void)set_oppose_elec(dur, FALSE);
2232                                         num--;
2233                                 }
2234                                 if (randint0(3) < num)
2235                                 {
2236                                         (void)set_oppose_fire(dur, FALSE);
2237                                         num--;
2238                                 }
2239                                 if (randint0(2) < num)
2240                                 {
2241                                         (void)set_oppose_cold(dur, FALSE);
2242                                         num--;
2243                                 }
2244                                 if (num)
2245                                 {
2246                                         (void)set_oppose_pois(dur, FALSE);
2247                                         num--;
2248                                 }
2249                         }
2250                         break;
2251
2252                 case MUT1_EARTHQUAKE:
2253                         (void)earthquake(p_ptr->y, p_ptr->x, 10);
2254                         break;
2255
2256                 case MUT1_EAT_MAGIC:
2257                         if (!eat_magic(p_ptr->lev * 2)) return FALSE;
2258                         break;
2259
2260                 case MUT1_WEIGH_MAG:
2261                         report_magics();
2262                         break;
2263
2264                 case MUT1_STERILITY:
2265                         msg_print(_("突然頭が痛くなった!", "You suddenly have a headache!"));
2266                         take_hit(DAMAGE_LOSELIFE, randint1(17) + 17, _("禁欲を強いた疲労", "the strain of forcing abstinence"), -1);
2267                         current_floor_ptr->num_repro += MAX_REPRO;
2268                         break;
2269
2270                 case MUT1_PANIC_HIT:
2271                         if(!panic_hit()) return FALSE;
2272                         break;
2273
2274                 case MUT1_DAZZLE:
2275                         stun_monsters(lvl * 4);
2276                         confuse_monsters(lvl * 4);
2277                         turn_monsters(lvl * 4);
2278                         break;
2279
2280                 case MUT1_LASER_EYE:
2281                         if (!get_aim_dir(&dir)) return FALSE;
2282                         fire_beam(GF_LITE, dir, 2 * lvl);
2283                         break;
2284
2285                 case MUT1_RECALL:
2286                         if (!recall_player(p_ptr, randint0(21) + 15)) return FALSE;
2287                         break;
2288
2289                 case MUT1_BANISH:
2290                         {
2291                                 POSITION x, y;
2292                                 grid_type *g_ptr;
2293                                 monster_type *m_ptr;
2294                                 monster_race *r_ptr;
2295                                 if (!get_direction(&dir, FALSE, FALSE)) return FALSE;
2296                                 y = p_ptr->y + ddy[dir];
2297                                 x = p_ptr->x + ddx[dir];
2298                                 g_ptr = &current_floor_ptr->grid_array[y][x];
2299
2300                                 if (!g_ptr->m_idx)
2301                                 {
2302                                         msg_print(_("邪悪な存在を感じとれません!", "You sense no evil there!"));
2303
2304                                         break;
2305                                 }
2306
2307                                 m_ptr = &current_floor_ptr->m_list[g_ptr->m_idx];
2308                                 r_ptr = &r_info[m_ptr->r_idx];
2309
2310                                 if ((r_ptr->flags3 & RF3_EVIL) &&
2311                                     !(r_ptr->flags1 & RF1_QUESTOR) &&
2312                                     !(r_ptr->flags1 & RF1_UNIQUE) &&
2313                                     !p_ptr->inside_arena && !p_ptr->inside_quest &&
2314                                         (r_ptr->level < randint1(p_ptr->lev+50)) &&
2315                                         !(m_ptr->mflag2 & MFLAG2_NOGENO))
2316                                 {
2317                                         if (record_named_pet && is_pet(m_ptr) && m_ptr->nickname)
2318                                         {
2319                                                 GAME_TEXT m_name[MAX_NLEN];
2320                                                 monster_desc(m_name, m_ptr, MD_INDEF_VISIBLE);
2321                                                 do_cmd_write_nikki(NIKKI_NAMED_PET, RECORD_NAMED_PET_GENOCIDE, m_name);
2322                                         }
2323                                         /* Delete the monster, rather than killing it. */
2324                                         delete_monster_idx(g_ptr->m_idx);
2325                                         msg_print(_("その邪悪なモンスターは硫黄臭い煙とともに消え去った!", "The evil creature vanishes in a puff of sulfurous smoke!"));
2326
2327                                 }
2328                                 else
2329                                 {
2330                                         msg_print(_("祈りは効果がなかった!", "Your invocation is ineffectual!"));
2331                                         if (one_in_(13)) m_ptr->mflag2 |= MFLAG2_NOGENO;
2332                                 }
2333                         }
2334                         break;
2335
2336                 case MUT1_COLD_TOUCH:
2337                         {
2338                                 POSITION x, y;
2339                                 grid_type *g_ptr;
2340                                 if (!get_direction(&dir, FALSE, FALSE)) return FALSE;
2341                                 y = p_ptr->y + ddy[dir];
2342                                 x = p_ptr->x + ddx[dir];
2343                                 g_ptr = &current_floor_ptr->grid_array[y][x];
2344                                 if (!g_ptr->m_idx)
2345                                 {
2346                                         msg_print(_("あなたは何もない場所で手を振った。", "You wave your hands in the air."));
2347
2348                                         break;
2349                                 }
2350                                 fire_bolt(GF_COLD, dir, 2 * lvl);
2351                         }
2352                         break;
2353
2354                 /* XXX_XXX_XXX Hack! MUT1_LAUNCHER is negative, see above */
2355                 case 3: /* MUT1_LAUNCHER */
2356                         /* Gives a multiplier of 2 at first, up to 3 at 40th */
2357                         if (!do_cmd_throw(2 + lvl / 40, FALSE, -1)) return FALSE;
2358                         break;
2359
2360                 default:
2361                         free_turn(p_ptr);
2362                         msg_format(_("能力 %s は実装されていません。", "Power %s not implemented. Oops."), power);
2363         }
2364
2365         return TRUE;
2366 }
2367
2368 void become_living_trump(player_type *creature_ptr)
2369 {
2370         MUTATION_IDX mutation;
2371
2372         if (one_in_(7))
2373                 mutation = 12; /* Teleport control */
2374         else
2375                 mutation = 77; /* Random teleportation (uncontrolled) */
2376
2377         /* Gain the mutation */
2378         if (gain_mutation(creature_ptr, mutation))
2379         {
2380                 msg_print(_("あなたは生きているカードに変わった。", "You have turned into a Living Trump."));
2381         }
2382 }