OSDN Git Service

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