OSDN Git Service

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