3 * @brief 突然変異ルールの実装 / Mutation effects (and racial powers)
6 * Copyright (c) 1997 Ben Harrison, James E. Wilson, Robert A. Koeneke\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
18 #include "spells-summon.h"
20 #include "player-status.h"
21 #include "spells-status.h"
22 #include "object-hook.h"
26 * @brief プレイヤーに突然変異を与える
27 * @param choose_mut 与えたい突然変異のID、0ならばランダムに選択
30 bool gain_mutation(player_type *creature_ptr, MUTATION_IDX choose_mut)
32 int attempts_left = 20;
33 concptr muta_desc = "";
34 bool muta_chosen = FALSE;
35 BIT_FLAGS muta_which = 0;
36 BIT_FLAGS *muta_class = NULL;
38 if (choose_mut) attempts_left = 1;
40 while (attempts_left--)
42 switch (choose_mut ? choose_mut : (creature_ptr->pclass == CLASS_BERSERKER ? 74+randint1(119) : randint1(193)))
44 case 1: case 2: case 3: case 4:
45 muta_class = &(creature_ptr->muta1);
46 muta_which = MUT1_SPIT_ACID;
47 muta_desc = _("酸を吐く能力を得た。", "You gain the ability to spit acid.");
50 case 5: case 6: case 7:
51 muta_class = &(creature_ptr->muta1);
52 muta_which = MUT1_BR_FIRE;
53 muta_desc = _("火を吐く能力を得た。", "You gain the ability to breathe fire.");
57 muta_class = &(creature_ptr->muta1);
58 muta_which = MUT1_HYPN_GAZE;
59 muta_desc = _("催眠眼の能力を得た。", "Your eyes look mesmerizing...");
63 muta_class = &(creature_ptr->muta1);
64 muta_which = MUT1_TELEKINES;
65 muta_desc = _("物体を念動力で動かす能力を得た。", "You gain the ability to move objects telekinetically.");
68 case 12: case 13: case 14:
69 muta_class = &(creature_ptr->muta1);
70 muta_which = MUT1_VTELEPORT;
71 muta_desc = _("自分の意思でテレポートする能力を得た。", "You gain the power of teleportation at will.");
75 muta_class = &(creature_ptr->muta1);
76 muta_which = MUT1_MIND_BLST;
77 muta_desc = _("精神攻撃の能力を得た。", "You gain the power of Mind Blast.");
81 muta_class = &(creature_ptr->muta1);
82 muta_which = MUT1_RADIATION;
83 muta_desc = _("あなたは強い放射線を発生し始めた。", "You start emitting hard radiation.");
87 muta_class = &(creature_ptr->muta1);
88 muta_which = MUT1_VAMPIRISM;
89 muta_desc = _("生命力を吸収できるようになった。", "You become vampiric.");
92 case 21: case 22: case 23:
93 muta_class = &(creature_ptr->muta1);
94 muta_which = MUT1_SMELL_MET;
95 muta_desc = _("金属の匂いを嗅ぎ分けられるようになった。", "You smell a metallic odor.");
98 case 24: case 25: case 26: case 27:
99 muta_class = &(creature_ptr->muta1);
100 muta_which = MUT1_SMELL_MON;
101 muta_desc = _("モンスターの臭いを嗅ぎ分けられるようになった。", "You smell filthy monsters.");
104 case 28: case 29: case 30:
105 muta_class = &(creature_ptr->muta1);
106 muta_which = MUT1_BLINK;
107 muta_desc = _("近距離テレポートの能力を得た。", "You gain the power of minor teleportation.");
111 muta_class = &(creature_ptr->muta1);
112 muta_which = MUT1_EAT_ROCK;
113 muta_desc = _("壁が美味しそうに見える。", "The walls look delicious.");
117 muta_class = &(creature_ptr->muta1);
118 muta_which = MUT1_SWAP_POS;
119 muta_desc = _("他人の靴で一マイル歩くような気分がする。", "You feel like walking a mile in someone else's shoes.");
122 case 35: case 36: case 37:
123 muta_class = &(creature_ptr->muta1);
124 muta_which = MUT1_SHRIEK;
125 muta_desc = _("あなたの声は相当強くなった。", "Your vocal cords get much tougher.");
128 case 38: case 39: case 40:
129 muta_class = &(creature_ptr->muta1);
130 muta_which = MUT1_ILLUMINE;
131 muta_desc = _("あなたは光り輝いて部屋を明るくするようになった。", "You can light up rooms with your presence.");
135 muta_class = &(creature_ptr->muta1);
136 muta_which = MUT1_DET_CURSE;
137 muta_desc = _("邪悪な魔法を感知できるようになった。", "You can feel evil magics.");
140 case 43: case 44: case 45:
141 muta_class = &(creature_ptr->muta1);
142 muta_which = MUT1_BERSERK;
143 muta_desc = _("制御できる激情を感じる。", "You feel a controlled rage.");
147 muta_class = &(creature_ptr->muta1);
148 muta_which = MUT1_POLYMORPH;
149 muta_desc = _("体が変異しやすくなった。", "Your body seems mutable.");
153 muta_class = &(creature_ptr->muta1);
154 muta_which = MUT1_MIDAS_TCH;
155 muta_desc = _("「ミダス王の手」の能力を得た。", "You gain the Midas touch.");/*トゥームレイダースにありましたね。 */
159 muta_class = &(creature_ptr->muta1);
160 muta_which = MUT1_GROW_MOLD;
161 muta_desc = _("突然カビに親しみを覚えた。", "You feel a sudden affinity for mold.");
164 case 50: case 51: case 52:
165 muta_class = &(creature_ptr->muta1);
166 muta_which = MUT1_RESIST;
167 muta_desc = _("あなたは自分自身を守れる気がする。", "You feel like you can protect yourself.");
170 case 53: case 54: case 55:
171 muta_class = &(creature_ptr->muta1);
172 muta_which = MUT1_EARTHQUAKE;
173 muta_desc = _("ダンジョンを破壊する能力を得た。", "You gain the ability to wreck the dungeon.");
177 muta_class = &(creature_ptr->muta1);
178 muta_which = MUT1_EAT_MAGIC;
179 muta_desc = _("魔法のアイテムが美味そうに見える。", "Your magic items look delicious.");
183 muta_class = &(creature_ptr->muta1);
184 muta_which = MUT1_WEIGH_MAG;
185 muta_desc = _("あなたは周囲にある魔法をより良く理解できる気がする。", "You feel you can better understand the magic around you.");
189 muta_class = &(creature_ptr->muta1);
190 muta_which = MUT1_STERILITY;
191 muta_desc = _("周りの全ての者に頭痛を起こすことができる。", "You can give everything around you a headache.");
194 muta_class = &(creature_ptr->muta1);
195 muta_which = MUT1_PANIC_HIT;
196 muta_desc = _("突然、泥棒の気分が分かるようになった。", "You suddenly understand how thieves feel.");
199 case 62: case 63: case 64:
200 muta_class = &(creature_ptr->muta1);
201 muta_which = MUT1_DAZZLE;
202 muta_desc = _("眩い閃光を発する能力を得た。", "You gain the ability to emit dazzling lights.");
205 case 65: case 66: case 67:
206 muta_class = &(creature_ptr->muta1);
207 muta_which = MUT1_LASER_EYE;
208 muta_desc = _("あなたの目は一瞬焼け付いた。", "Your eyes burn for a moment.");
212 muta_class = &(creature_ptr->muta1);
213 muta_which = MUT1_RECALL;
214 muta_desc = _("少しだけホームシックになったが、すぐ直った。", "You feel briefly homesick, but it passes.");
218 muta_class = &(creature_ptr->muta1);
219 muta_which = MUT1_BANISH;
220 muta_desc = _("神聖な怒りの力に満たされた。", "You feel a holy wrath fill you.");
224 muta_class = &(creature_ptr->muta1);
225 muta_which = MUT1_COLD_TOUCH;
226 muta_desc = _("あなたの両手はとても冷たくなった。", "Your hands get very cold.");
230 muta_class = &(creature_ptr->muta1);
231 muta_which = MUT1_LAUNCHER;
232 muta_desc = _("あなたの物を投げる手はかなり強くなった気がする。", "Your throwing arm feels much stronger.");
236 muta_class = &(creature_ptr->muta2);
237 muta_which = MUT2_BERS_RAGE;
238 muta_desc = _("あなたは狂暴化の発作を起こすようになった!", "You become subject to fits of berserk rage!");
242 muta_class = &(creature_ptr->muta2);
243 muta_which = MUT2_COWARDICE;
244 muta_desc = _("信じられないくらい臆病になった!", "You become an incredible coward!");
248 muta_class = &(creature_ptr->muta2);
249 muta_which = MUT2_RTELEPORT;
250 muta_desc = _("あなたの位置は非常に不確定になった。", "Your position seems very uncertain...");
254 muta_class = &(creature_ptr->muta2);
255 muta_which = MUT2_ALCOHOL;
256 muta_desc = _("あなたはアルコールを分泌するようになった。", "Your body starts producing alcohol!");
260 muta_class = &(creature_ptr->muta2);
261 muta_which = MUT2_HALLU;
262 muta_desc = _("あなたは幻覚を引き起こす精神錯乱に侵された。", "You are afflicted by a hallucinatory insanity!");
266 muta_class = &(creature_ptr->muta2);
267 muta_which = MUT2_FLATULENT;
268 muta_desc = _( "あなたは制御不能な強烈な屁をこくようになった。", "You become subject to uncontrollable flatulence.");
272 muta_class = &(creature_ptr->muta2);
273 muta_which = MUT2_SCOR_TAIL;
274 muta_desc = _( "サソリの尻尾が生えてきた!", "You grow a scorpion tail!");
278 muta_class = &(creature_ptr->muta2);
279 muta_which = MUT2_HORNS;
280 muta_desc = _( "額に角が生えた!", "Horns pop forth into your forehead!");
284 muta_class = &(creature_ptr->muta2);
285 muta_which = MUT2_BEAK;
286 muta_desc = _( "口が鋭く強いクチバシに変化した!", "Your mouth turns into a sharp, powerful beak!");
290 muta_class = &(creature_ptr->muta2);
291 muta_which = MUT2_ATT_DEMON;
292 muta_desc = _( "悪魔を引き付けるようになった。", "You start attracting demons.");
296 muta_class = &(creature_ptr->muta2);
297 muta_which = MUT2_PROD_MANA;
298 muta_desc = _( "あなたは制御不能な魔法のエネルギーを発生するようになった。", "You start producing magical energy uncontrollably.");
302 muta_class = &(creature_ptr->muta2);
303 muta_which = MUT2_SPEED_FLUX;
304 muta_desc = _( "あなたは躁鬱質になった。", "You become manic-depressive.");
308 muta_class = &(creature_ptr->muta2);
309 muta_which = MUT2_BANISH_ALL;
310 muta_desc = _( "恐ろしい力があなたの背後に潜んでいる気がする。", "You feel a terrifying power lurking behind you.");
314 muta_class = &(creature_ptr->muta2);
315 muta_which = MUT2_EAT_LIGHT;
316 muta_desc = _( "あなたはウンゴリアントに奇妙な親しみを覚えるようになった。", "You feel a strange kinship with Ungoliant.");
320 muta_class = &(creature_ptr->muta2);
321 muta_which = MUT2_TRUNK;
322 muta_desc = _( "あなたの鼻は伸びて象の鼻のようになった。", "Your nose grows into an elephant-like trunk.");
326 muta_class = &(creature_ptr->muta2);
327 muta_which = MUT2_ATT_ANIMAL;
328 muta_desc = _( "動物を引き付けるようになった。", "You start attracting animals.");
332 muta_class = &(creature_ptr->muta2);
333 muta_which = MUT2_TENTACLES;
334 muta_desc = _( "邪悪な触手が体の両側に生えてきた。", "Evil-looking tentacles sprout from your sides.");
338 muta_class = &(creature_ptr->muta2);
339 muta_which = MUT2_RAW_CHAOS;
340 muta_desc = _( "周囲の空間が不安定になった気がする。", "You feel the universe is less stable around you.");
343 case 100: case 101: case 102:
344 muta_class = &(creature_ptr->muta2);
345 muta_which = MUT2_NORMALITY;
346 muta_desc = _( "あなたは奇妙なほど普通になった気がする。", "You feel strangely normal.");
350 muta_class = &(creature_ptr->muta2);
351 muta_which = MUT2_WRAITH;
352 muta_desc = _( "あなたは幽体化したり実体化したりするようになった。", "You start to fade in and out of the physical world.");
356 muta_class = &(creature_ptr->muta2);
357 muta_which = MUT2_POLY_WOUND;
358 muta_desc = _( "あなたはカオスの力が古い傷に入り込んでくるのを感じた。", "You feel forces of chaos entering your old scars.");
362 muta_class = &(creature_ptr->muta2);
363 muta_which = MUT2_WASTING;
364 muta_desc = _( "あなたは突然おぞましい衰弱病にかかった。", "You suddenly contract a horrible wasting disease.");
368 muta_class = &(creature_ptr->muta2);
369 muta_which = MUT2_ATT_DRAGON;
370 muta_desc = _( "あなたはドラゴンを引きつけるようになった。", "You start attracting dragons.");
374 muta_class = &(creature_ptr->muta2);
375 muta_which = MUT2_WEIRD_MIND;
376 muta_desc = _( "あなたの思考は突然おかしな方向に向き始めた。", "Your thoughts suddenly take off in strange directions.");
380 muta_class = &(creature_ptr->muta2);
381 muta_which = MUT2_NAUSEA;
382 muta_desc = _( "胃袋がピクピクしはじめた。", "Your stomach starts to roil nauseously.");
386 /* Chaos warriors already have a chaos deity */
387 if (creature_ptr->pclass != CLASS_CHAOS_WARRIOR)
389 muta_class = &(creature_ptr->muta2);
390 muta_which = MUT2_CHAOS_GIFT;
391 muta_desc = _( "あなたはカオスの守護悪魔の注意を惹くようになった。", "You attract the notice of a chaos deity!");
396 muta_class = &(creature_ptr->muta2);
397 muta_which = MUT2_WALK_SHAD;
398 muta_desc = _( "あなたは現実が紙のように薄いと感じるようになった。", "You feel like reality is as thin as paper.");
402 muta_class = &(creature_ptr->muta2);
403 muta_which = MUT2_WARNING;
404 muta_desc = _( "あなたは突然パラノイアになった気がする。", "You suddenly feel paranoid.");
408 muta_class = &(creature_ptr->muta2);
409 muta_which = MUT2_INVULN;
410 muta_desc = _( "あなたは祝福され、無敵状態になる発作を起こすようになった。", "You are blessed with fits of invulnerability.");
414 muta_class = &(creature_ptr->muta2);
415 muta_which = MUT2_SP_TO_HP;
416 muta_desc = _( "魔法の治癒の発作を起こすようになった。", "You are subject to fits of magical healing.");
420 muta_class = &(creature_ptr->muta2);
421 muta_which = MUT2_HP_TO_SP;
422 muta_desc = _( "痛みを伴う精神明瞭化の発作を起こすようになった。", "You are subject to fits of painful clarity.");
426 muta_class = &(creature_ptr->muta2);
427 muta_which = MUT2_DISARM;
428 muta_desc = _( "あなたの脚は長さが四倍になった。", "Your feet grow to four times their former size.");
431 case 120: case 121: case 122:
432 muta_class = &(creature_ptr->muta3);
433 muta_which = MUT3_HYPER_STR;
434 muta_desc = _( "超人的に強くなった!", "You current_world_ptr->game_turn into a superhuman he-man!");
437 case 123: case 124: case 125:
438 muta_class = &(creature_ptr->muta3);
439 muta_which = MUT3_PUNY;
440 muta_desc = _( "筋肉が弱ってしまった...", "Your muscles wither away...");
443 case 126: case 127: case 128:
444 muta_class = &(creature_ptr->muta3);
445 muta_which = MUT3_HYPER_INT;
446 muta_desc = _( "あなたの脳は生体コンピュータに進化した!", "Your brain evolves into a living computer!");
449 case 129: case 130: case 131:
450 muta_class = &(creature_ptr->muta3);
451 muta_which = MUT3_MORONIC;
452 muta_desc = _( "脳が萎縮してしまった...", "Your brain withers away...");
456 muta_class = &(creature_ptr->muta3);
457 muta_which = MUT3_RESILIENT;
458 muta_desc = _( "並外れてタフになった。", "You become extraordinarily resilient.");
462 muta_class = &(creature_ptr->muta3);
463 muta_which = MUT3_XTRA_FAT;
464 muta_desc = _( "あなたは気持ち悪いくらい太った!", "You become sickeningly fat!");
468 muta_class = &(creature_ptr->muta3);
469 muta_which = MUT3_ALBINO;
470 muta_desc = _( "アルビノになった!弱くなった気がする...", "You current_world_ptr->game_turn into an albino! You feel frail...");
473 case 138: case 139: case 140:
474 muta_class = &(creature_ptr->muta3);
475 muta_which = MUT3_FLESH_ROT;
476 muta_desc = _( "あなたの肉体は腐敗する病気に侵された!", "Your flesh is afflicted by a rotting disease!");
480 muta_class = &(creature_ptr->muta3);
481 muta_which = MUT3_SILLY_VOI;
482 muta_desc = _( "声が間抜けなキーキー声になった!", "Your voice turns into a ridiculous squeak!");
486 muta_class = &(creature_ptr->muta3);
487 muta_which = MUT3_BLANK_FAC;
488 muta_desc = _( "のっぺらぼうになった!", "Your face becomes completely featureless!");
492 muta_class = &(creature_ptr->muta3);
493 muta_which = MUT3_ILL_NORM;
494 muta_desc = _( "心の安らぐ幻影を映し出すようになった。", "You start projecting a reassuring image.");
497 case 146: case 147: case 148:
498 muta_class = &(creature_ptr->muta3);
499 muta_which = MUT3_XTRA_EYES;
500 muta_desc = _( "新たに二つの目が出来た!", "You grow an extra pair of eyes!");
504 muta_class = &(creature_ptr->muta3);
505 muta_which = MUT3_MAGIC_RES;
506 muta_desc = _( "魔法への耐性がついた。", "You become resistant to magic.");
509 case 151: case 152: case 153:
510 muta_class = &(creature_ptr->muta3);
511 muta_which = MUT3_XTRA_NOIS;
512 muta_desc = _( "あなたは奇妙な音を立て始めた!", "You start making strange noise!");
515 case 154: case 155: case 156:
516 muta_class = &(creature_ptr->muta3);
517 muta_which = MUT3_INFRAVIS;
518 muta_desc = _( "赤外線視力が増した。", "Your infravision is improved.");
522 muta_class = &(creature_ptr->muta3);
523 muta_which = MUT3_XTRA_LEGS;
524 muta_desc = _( "新たに二本の足が生えてきた!", "You grow an extra pair of legs!");
528 muta_class = &(creature_ptr->muta3);
529 muta_which = MUT3_SHORT_LEG;
530 muta_desc = _( "足が短い突起になってしまった!", "Your legs current_world_ptr->game_turn into short stubs!");
534 muta_class = &(creature_ptr->muta3);
535 muta_which = MUT3_ELEC_TOUC;
536 muta_desc = _( "血管を電流が流れ始めた!", "Electricity starts running through you!");
540 muta_class = &(creature_ptr->muta3);
541 muta_which = MUT3_FIRE_BODY;
542 muta_desc = _( "あなたの体は炎につつまれている。", "Your body is enveloped in flames!");
545 case 165: case 166: case 167:
546 muta_class = &(creature_ptr->muta3);
547 muta_which = MUT3_WART_SKIN;
548 muta_desc = _( "気持ち悪いイボイボが体中にできた!", "Disgusting warts appear everywhere on you!");
551 case 168: case 169: case 170:
552 muta_class = &(creature_ptr->muta3);
553 muta_which = MUT3_SCALES;
554 muta_desc = _( "肌が黒い鱗に変わった!", "Your skin turns into black scales!");
558 muta_class = &(creature_ptr->muta3);
559 muta_which = MUT3_IRON_SKIN;
560 muta_desc = _( "あなたの肌は鉄になった!", "Your skin turns to steel!");
564 muta_class = &(creature_ptr->muta3);
565 muta_which = MUT3_WINGS;
566 muta_desc = _( "背中に羽が生えた。", "You grow a pair of wings.");
569 case 175: case 176: case 177:
570 muta_class = &(creature_ptr->muta3);
571 muta_which = MUT3_FEARLESS;
572 muta_desc = _( "完全に怖れ知らずになった。", "You become completely fearless.");
576 muta_class = &(creature_ptr->muta3);
577 muta_which = MUT3_REGEN;
578 muta_desc = _( "急速に回復し始めた。", "You start regenerating.");
582 muta_class = &(creature_ptr->muta3);
583 muta_which = MUT3_ESP;
584 muta_desc = _( "テレパシーの能力を得た!", "You develop a telepathic ability!");
587 case 182: case 183: case 184:
588 muta_class = &(creature_ptr->muta3);
589 muta_which = MUT3_LIMBER;
590 muta_desc = _( "筋肉がしなやかになった。", "Your muscles become limber.");
593 case 185: case 186: case 187:
594 muta_class = &(creature_ptr->muta3);
595 muta_which = MUT3_ARTHRITIS;
596 muta_desc = _( "関節が突然痛み出した。", "Your joints suddenly hurt.");
600 if (creature_ptr->pseikaku == SEIKAKU_LUCKY) break;
601 muta_class = &(creature_ptr->muta3);
602 muta_which = MUT3_BAD_LUCK;
603 muta_desc = _( "悪意に満ちた黒いオーラがあなたをとりまいた...", "There is a malignant black aura surrounding you...");
607 muta_class = &(creature_ptr->muta3);
608 muta_which = MUT3_VULN_ELEM;
609 muta_desc = _( "妙に無防備になった気がする。", "You feel strangely exposed.");
612 case 190: case 191: case 192:
613 muta_class = &(creature_ptr->muta3);
614 muta_which = MUT3_MOTION;
615 muta_desc = _( "体の動作がより正確になった。", "You move with new assurance.");
619 muta_class = &(creature_ptr->muta3);
620 muta_which = MUT3_GOOD_LUCK;
621 muta_desc = _( "慈悲深い白いオーラがあなたをとりまいた...", "There is a benevolent white aura surrounding you...");
629 if (muta_class && muta_which)
631 if (!(*muta_class & muta_which))
636 if (muta_chosen == TRUE) break;
641 msg_print(_("普通になった気がする。", "You feel normal."));
647 chg_virtue(V_CHANCE, 1);
650 some races are apt to gain specified mutations
651 This should be allowed only if "choose_mut" is 0.
655 if (creature_ptr->prace == RACE_VAMPIRE &&
656 !(creature_ptr->muta1 & MUT1_HYPN_GAZE) &&
659 muta_class = &(creature_ptr->muta1);
660 muta_which = MUT1_HYPN_GAZE;
661 muta_desc = _( "眼が幻惑的になった...", "Your eyes look mesmerizing...");
665 else if (creature_ptr->prace == RACE_IMP &&
666 !(creature_ptr->muta2 & MUT2_HORNS) &&
669 muta_class = &(creature_ptr->muta2);
670 muta_which = MUT2_HORNS;
671 muta_desc = _( "角が額から生えてきた!", "Horns pop forth into your forehead!");
675 else if (creature_ptr->prace == RACE_YEEK &&
676 !(creature_ptr->muta1 & MUT1_SHRIEK) &&
679 muta_class = &(creature_ptr->muta1);
680 muta_which = MUT1_SHRIEK;
681 muta_desc = _( "声質がかなり強くなった。", "Your vocal cords get much tougher.");
685 else if (creature_ptr->prace == RACE_BEASTMAN &&
686 !(creature_ptr->muta1 & MUT1_POLYMORPH) &&
689 muta_class = &(creature_ptr->muta1);
690 muta_which = MUT1_POLYMORPH;
691 muta_desc = _( "あなたの肉体は変化できるようになった、", "Your body seems mutable.");
695 else if (creature_ptr->prace == RACE_MIND_FLAYER &&
696 !(creature_ptr->muta2 & MUT2_TENTACLES) &&
699 muta_class = &(creature_ptr->muta2);
700 muta_which = MUT2_TENTACLES;
701 muta_desc = _( "邪悪な触手が口の周りに生えた。", "Evil-looking tentacles sprout from your mouth.");
705 msg_print(_("突然変異した!", "You mutate!"));
707 msg_print(muta_desc);
708 *muta_class |= muta_which;
710 if (muta_class == &(creature_ptr->muta3))
712 if (muta_which == MUT3_PUNY)
714 if (creature_ptr->muta3 & MUT3_HYPER_STR)
716 msg_print(_("あなたはもう超人的に強くはない!", "You no longer feel super-strong!"));
718 creature_ptr->muta3 &= ~(MUT3_HYPER_STR);
721 else if (muta_which == MUT3_HYPER_STR)
723 if (creature_ptr->muta3 & MUT3_PUNY)
725 msg_print(_("あなたはもう虚弱ではない!", "You no longer feel puny!"));
727 creature_ptr->muta3 &= ~(MUT3_PUNY);
730 else if (muta_which == MUT3_MORONIC)
732 if (creature_ptr->muta3 & MUT3_HYPER_INT)
734 msg_print(_("あなたの脳はもう生体コンピュータではない。", "Your brain is no longer a living computer."));
736 creature_ptr->muta3 &= ~(MUT3_HYPER_INT);
739 else if (muta_which == MUT3_HYPER_INT)
741 if (creature_ptr->muta3 & MUT3_MORONIC)
743 msg_print(_("あなたはもう精神薄弱ではない。", "You are no longer moronic."));
745 creature_ptr->muta3 &= ~(MUT3_MORONIC);
748 else if (muta_which == MUT3_IRON_SKIN)
750 if (creature_ptr->muta3 & MUT3_SCALES)
752 msg_print(_("鱗がなくなった。", "You lose your scales."));
754 creature_ptr->muta3 &= ~(MUT3_SCALES);
756 if (creature_ptr->muta3 & MUT3_FLESH_ROT)
758 msg_print(_("肉体が腐乱しなくなった。", "Your flesh rots no longer."));
760 creature_ptr->muta3 &= ~(MUT3_FLESH_ROT);
762 if (creature_ptr->muta3 & MUT3_WART_SKIN)
764 msg_print(_("肌のイボイボがなくなった。", "You lose your warts."));
766 creature_ptr->muta3 &= ~(MUT3_WART_SKIN);
769 else if (muta_which == MUT3_WART_SKIN || muta_which == MUT3_SCALES
770 || muta_which == MUT3_FLESH_ROT)
772 if (creature_ptr->muta3 & MUT3_IRON_SKIN)
774 msg_print(_("あなたの肌はもう鉄ではない。", "Your skin is no longer made of steel."));
776 creature_ptr->muta3 &= ~(MUT3_IRON_SKIN);
779 else if (muta_which == MUT3_FEARLESS)
781 if (creature_ptr->muta2 & MUT2_COWARDICE)
783 msg_print(_("臆病でなくなった。", "You are no longer cowardly."));
785 creature_ptr->muta2 &= ~(MUT2_COWARDICE);
788 else if (muta_which == MUT3_FLESH_ROT)
790 if (creature_ptr->muta3 & MUT3_REGEN)
792 msg_print(_("急速に回復しなくなった。", "You stop regenerating."));
794 creature_ptr->muta3 &= ~(MUT3_REGEN);
797 else if (muta_which == MUT3_REGEN)
799 if (creature_ptr->muta3 & MUT3_FLESH_ROT)
801 msg_print(_("肉体が腐乱しなくなった。", "Your flesh stops rotting."));
803 creature_ptr->muta3 &= ~(MUT3_FLESH_ROT);
806 else if (muta_which == MUT3_LIMBER)
808 if (creature_ptr->muta3 & MUT3_ARTHRITIS)
810 msg_print(_("関節が痛くなくなった。", "Your joints stop hurting."));
812 creature_ptr->muta3 &= ~(MUT3_ARTHRITIS);
815 else if (muta_which == MUT3_ARTHRITIS)
817 if (creature_ptr->muta3 & MUT3_LIMBER)
819 msg_print(_("あなたはしなやかでなくなった。", "You no longer feel limber."));
821 creature_ptr->muta3 &= ~(MUT3_LIMBER);
825 else if (muta_class == &(creature_ptr->muta2))
827 if (muta_which == MUT2_COWARDICE)
829 if (creature_ptr->muta3 & MUT3_FEARLESS)
831 msg_print(_("恐れ知らずでなくなった。", "You no longer feel fearless."));
833 creature_ptr->muta3 &= ~(MUT3_FEARLESS);
836 if (muta_which == MUT2_BEAK)
838 if (creature_ptr->muta2 & MUT2_TRUNK)
840 msg_print(_("あなたの鼻はもう象の鼻のようではなくなった。", "Your nose is no longer elephantine."));
842 creature_ptr->muta2 &= ~(MUT2_TRUNK);
845 if (muta_which == MUT2_TRUNK)
847 if (creature_ptr->muta2 & MUT2_BEAK)
849 msg_print(_("硬いクチバシがなくなった。", "You no longer have a hard beak."));
851 creature_ptr->muta2 &= ~(MUT2_BEAK);
856 p_ptr->mutant_regenerate_mod = calc_mutant_regenerate_mod();
857 creature_ptr->update |= PU_BONUS;
864 * @brief プレイヤーから突然変異を取り除く
865 * @param choose_mut 取り除きたい突然変異のID、0ならばランダムに消去
868 bool lose_mutation(MUTATION_IDX choose_mut)
870 int attempts_left = 20;
871 concptr muta_desc = "";
872 bool muta_chosen = FALSE;
873 BIT_FLAGS muta_which = 0;
874 BIT_FLAGS *muta_class = NULL;
876 if (choose_mut) attempts_left = 1;
878 while (attempts_left--)
880 switch (choose_mut ? choose_mut : randint1(193))
882 case 1: case 2: case 3: case 4:
883 muta_class = &(p_ptr->muta1);
884 muta_which = MUT1_SPIT_ACID;
885 muta_desc = _( "酸を吹きかける能力を失った。", "You lose the ability to spit acid.");
888 case 5: case 6: case 7:
889 muta_class = &(p_ptr->muta1);
890 muta_which = MUT1_BR_FIRE;
891 muta_desc = _( "炎のブレスを吐く能力を失った。", "You lose the ability to breathe fire.");
895 muta_class = &(p_ptr->muta1);
896 muta_which = MUT1_HYPN_GAZE;
897 muta_desc = _( "あなたの目はつまらない目になった。", "Your eyes look uninteresting.");
901 muta_class = &(p_ptr->muta1);
902 muta_which = MUT1_TELEKINES;
903 muta_desc = _( "念動力で物を動かす能力を失った。", "You lose the ability to move objects telekinetically.");
906 case 12: case 13: case 14:
907 muta_class = &(p_ptr->muta1);
908 muta_which = MUT1_VTELEPORT;
909 muta_desc = _( "自分の意思でテレポートする能力を失った。", "You lose the power of teleportation at will.");
913 muta_class = &(p_ptr->muta1);
914 muta_which = MUT1_MIND_BLST;
915 muta_desc = _( "精神攻撃の能力を失った。", "You lose the power of Mind Blast.");
919 muta_class = &(p_ptr->muta1);
920 muta_which = MUT1_RADIATION;
921 muta_desc = _( "あなたは放射能を発生しなくなった。", "You stop emitting hard radiation.");
925 muta_class = &(p_ptr->muta1);
926 muta_which = MUT1_VAMPIRISM;
927 muta_desc = _( "吸血の能力を失った。", "You are no longer vampiric.");
930 case 21: case 22: case 23:
931 muta_class = &(p_ptr->muta1);
932 muta_which = MUT1_SMELL_MET;
933 muta_desc = _( "金属の臭いを嗅げなくなった。", "You no longer smell a metallic odor.");
936 case 24: case 25: case 26: case 27:
937 muta_class = &(p_ptr->muta1);
938 muta_which = MUT1_SMELL_MON;
939 muta_desc = _( "不潔なモンスターの臭いを嗅げなくなった。", "You no longer smell filthy monsters.");
942 case 28: case 29: case 30:
943 muta_class = &(p_ptr->muta1);
944 muta_which = MUT1_BLINK;
945 muta_desc = _( "近距離テレポートの能力を失った。", "You lose the power of minor teleportation.");
949 muta_class = &(p_ptr->muta1);
950 muta_which = MUT1_EAT_ROCK;
951 muta_desc = _( "壁は美味しそうに見えなくなった。", "The walls look unappetizing.");
955 muta_class = &(p_ptr->muta1);
956 muta_which = MUT1_SWAP_POS;
957 muta_desc = _( "あなたは自分の靴に留まる感じがする。", "You feel like staying in your own shoes.");
960 case 35: case 36: case 37:
961 muta_class = &(p_ptr->muta1);
962 muta_which = MUT1_SHRIEK;
963 muta_desc = _( "あなたの声質は弱くなった。", "Your vocal cords get much weaker.");
966 case 38: case 39: case 40:
967 muta_class = &(p_ptr->muta1);
968 muta_which = MUT1_ILLUMINE;
969 muta_desc = _( "部屋を明るく照らすことが出来なくなった。", "You can no longer light up rooms with your presence.");
973 muta_class = &(p_ptr->muta1);
974 muta_which = MUT1_DET_CURSE;
975 muta_desc = _( "邪悪な魔法を感じられなくなった。", "You can no longer feel evil magics.");
978 case 43: case 44: case 45:
979 muta_class = &(p_ptr->muta1);
980 muta_which = MUT1_BERSERK;
981 muta_desc = _( "制御できる激情を感じなくなった。", "You no longer feel a controlled rage.");
985 muta_class = &(p_ptr->muta1);
986 muta_which = MUT1_POLYMORPH;
987 muta_desc = _( "あなたの体は安定したように見える。", "Your body seems stable.");
991 muta_class = &(p_ptr->muta1);
992 muta_which = MUT1_MIDAS_TCH;
993 muta_desc = _( "ミダスの手の能力を失った。", "You lose the Midas touch.");
997 muta_class = &(p_ptr->muta1);
998 muta_which = MUT1_GROW_MOLD;
999 muta_desc = _( "突然カビが嫌いになった。", "You feel a sudden dislike for mold.");
1002 case 50: case 51: case 52:
1003 muta_class = &(p_ptr->muta1);
1004 muta_which = MUT1_RESIST;
1005 muta_desc = _( "傷つき易くなった気がする。", "You feel like you might be vulnerable.");
1008 case 53: case 54: case 55:
1009 muta_class = &(p_ptr->muta1);
1010 muta_which = MUT1_EARTHQUAKE;
1011 muta_desc = _( "ダンジョンを壊す能力を失った。", "You lose the ability to wreck the dungeon.");
1015 muta_class = &(p_ptr->muta1);
1016 muta_which = MUT1_EAT_MAGIC;
1017 muta_desc = _( "魔法のアイテムはもう美味しそうに見えなくなった。", "Your magic items no longer look delicious.");
1021 muta_class = &(p_ptr->muta1);
1022 muta_which = MUT1_WEIGH_MAG;
1023 muta_desc = _( "魔力を感じられなくなった。", "You no longer sense magic.");
1027 muta_class = &(p_ptr->muta1);
1028 muta_which = MUT1_STERILITY;
1029 muta_desc = _( "たくさんの安堵の吐息が聞こえた。", "You hear a massed sigh of relief.");
1033 muta_class = &(p_ptr->muta1);
1034 muta_which = MUT1_PANIC_HIT;
1035 muta_desc = _( "あちこちへ跳べる気分がなくなった。", "You no longer feel jumpy.");
1038 case 62: case 63: case 64:
1039 muta_class = &(p_ptr->muta1);
1040 muta_which = MUT1_DAZZLE;
1041 muta_desc = _( "まばゆい閃光を発する能力を失った。", "You lose the ability to emit dazzling lights.");
1044 case 65: case 66: case 67:
1045 muta_class = &(p_ptr->muta1);
1046 muta_which = MUT1_LASER_EYE;
1047 muta_desc = _( "眼が少しの間焼き付いて、痛みが和らいだ。", "Your eyes burn for a moment, then feel soothed.");
1051 muta_class = &(p_ptr->muta1);
1052 muta_which = MUT1_RECALL;
1053 muta_desc = _( "少しの間ホームシックになった。", "You feel briefly homesick.");
1057 muta_class = &(p_ptr->muta1);
1058 muta_which = MUT1_BANISH;
1059 muta_desc = _( "神聖な怒りの力を感じなくなった。", "You no longer feel a holy wrath.");
1063 muta_class = &(p_ptr->muta1);
1064 muta_which = MUT1_COLD_TOUCH;
1065 muta_desc = _( "手が暖かくなった。", "Your hands warm up.");
1069 muta_class = &(p_ptr->muta1);
1070 muta_which = MUT1_LAUNCHER;
1071 muta_desc = _( "物を投げる手が弱くなった気がする。", "Your throwing arm feels much weaker.");
1075 muta_class = &(p_ptr->muta2);
1076 muta_which = MUT2_BERS_RAGE;
1077 muta_desc = _( "凶暴化の発作にさらされなくなった!", "You are no longer subject to fits of berserk rage!");
1081 muta_class = &(p_ptr->muta2);
1082 muta_which = MUT2_COWARDICE;
1083 muta_desc = _( "もう信じがたいほど臆病ではなくなった!", "You are no longer an incredible coward!");
1087 muta_class = &(p_ptr->muta2);
1088 muta_which = MUT2_RTELEPORT;
1089 muta_desc = _( "あなたの位置はより確定的になった。", "Your position seems more certain.");
1093 muta_class = &(p_ptr->muta2);
1094 muta_which = MUT2_ALCOHOL;
1095 muta_desc = _( "あなたはアルコールを分泌しなくなった!", "Your body stops producing alcohol!");
1099 muta_class = &(p_ptr->muta2);
1100 muta_which = MUT2_HALLU;
1101 muta_desc = _( "幻覚をひき起こす精神障害を起こさなくなった!", "You are no longer afflicted by a hallucinatory insanity!");
1105 muta_class = &(p_ptr->muta2);
1106 muta_which = MUT2_FLATULENT;
1107 muta_desc = _( "もう強烈な屁はこかなくなった。", "You are no longer subject to uncontrollable flatulence.");
1111 muta_class = &(p_ptr->muta2);
1112 muta_which = MUT2_SCOR_TAIL;
1113 muta_desc = _( "サソリの尻尾がなくなった!", "You lose your scorpion tail!");
1117 muta_class = &(p_ptr->muta2);
1118 muta_which = MUT2_HORNS;
1119 muta_desc = _( "額から角が消えた!", "Your horns vanish from your forehead!");
1123 muta_class = &(p_ptr->muta2);
1124 muta_which = MUT2_BEAK;
1125 muta_desc = _( "口が普通に戻った!", "Your mouth reverts to normal!");
1129 muta_class = &(p_ptr->muta2);
1130 muta_which = MUT2_ATT_DEMON;
1131 muta_desc = _( "デーモンを引き寄せなくなった。", "You stop attracting demons.");
1135 muta_class = &(p_ptr->muta2);
1136 muta_which = MUT2_PROD_MANA;
1137 muta_desc = _( "制御不能な魔法のエネルギーを発生しなくなった。", "You stop producing magical energy uncontrollably.");
1141 muta_class = &(p_ptr->muta2);
1142 muta_which = MUT2_SPEED_FLUX;
1143 muta_desc = _( "躁鬱質でなくなった。", "You are no longer manic-depressive.");
1147 muta_class = &(p_ptr->muta2);
1148 muta_which = MUT2_BANISH_ALL;
1149 muta_desc = _( "背後に恐ろしい力を感じなくなった。", "You no longer feel a terrifying power lurking behind you.");
1153 muta_class = &(p_ptr->muta2);
1154 muta_which = MUT2_EAT_LIGHT;
1155 muta_desc = _( "世界が明るいと感じる。", "You feel the world's a brighter place.");
1159 muta_class = &(p_ptr->muta2);
1160 muta_which = MUT2_TRUNK;
1161 muta_desc = _( "鼻が普通の長さに戻った。", "Your nose returns to a normal length.");
1165 muta_class = &(p_ptr->muta2);
1166 muta_which = MUT2_ATT_ANIMAL;
1167 muta_desc = _( "動物を引き寄せなくなった。", "You stop attracting animals.");
1171 muta_class = &(p_ptr->muta2);
1172 muta_which = MUT2_TENTACLES;
1173 muta_desc = _( "触手が消えた。", "Your tentacles vanish from your sides.");
1177 muta_class = &(p_ptr->muta2);
1178 muta_which = MUT2_RAW_CHAOS;
1179 muta_desc = _( "周囲の空間が安定した気がする。", "You feel the universe is more stable around you.");
1182 case 100: case 101: case 102:
1183 muta_class = &(p_ptr->muta2);
1184 muta_which = MUT2_NORMALITY;
1185 muta_desc = _( "普通に奇妙な感じがする。", "You feel normally strange.");
1189 muta_class = &(p_ptr->muta2);
1190 muta_which = MUT2_WRAITH;
1191 muta_desc = _( "あなたは物質世界にしっかり存在している。", "You are firmly in the physical world.");
1195 muta_class = &(p_ptr->muta2);
1196 muta_which = MUT2_POLY_WOUND;
1197 muta_desc = _( "古い傷からカオスの力が去っていった。", "You feel forces of chaos departing your old scars.");
1201 muta_class = &(p_ptr->muta2);
1202 muta_which = MUT2_WASTING;
1203 muta_desc = _( "おぞましい衰弱病が治った!", "You are cured of the horrible wasting disease!");
1207 muta_class = &(p_ptr->muta2);
1208 muta_which = MUT2_ATT_DRAGON;
1209 muta_desc = _( "ドラゴンを引き寄せなくなった。", "You stop attracting dragons.");
1213 muta_class = &(p_ptr->muta2);
1214 muta_which = MUT2_WEIRD_MIND;
1215 muta_desc = _( "思考が退屈な方向に戻った。", "Your thoughts return to boring paths.");
1219 muta_class = &(p_ptr->muta2);
1220 muta_which = MUT2_NAUSEA;
1221 muta_desc = _( "胃が痙攣しなくなった。", "Your stomach stops roiling.");
1225 muta_class = &(p_ptr->muta2);
1226 muta_which = MUT2_CHAOS_GIFT;
1227 muta_desc = _( "混沌の神々の興味を惹かなくなった。", "You lose the attention of the chaos deities.");
1231 muta_class = &(p_ptr->muta2);
1232 muta_which = MUT2_WALK_SHAD;
1233 muta_desc = _( "物質世界に捕らわれている気がする。", "You feel like you're trapped in reality.");
1237 muta_class = &(p_ptr->muta2);
1238 muta_which = MUT2_WARNING;
1239 muta_desc = _( "パラノイアでなくなった。", "You no longer feel paranoid.");
1243 muta_class = &(p_ptr->muta2);
1244 muta_which = MUT2_INVULN;
1245 muta_desc = _( "無敵状態の発作を起こさなくなった。", "You are no longer blessed with fits of invulnerability.");
1249 muta_class = &(p_ptr->muta2);
1250 muta_which = MUT2_SP_TO_HP;
1251 muta_desc = _( "魔法の治癒の発作に襲われなくなった。", "You are no longer subject to fits of magical healing.");
1255 muta_class = &(p_ptr->muta2);
1256 muta_which = MUT2_HP_TO_SP;
1257 muta_desc = _( "痛みを伴う精神明瞭化の発作に襲われなくなった。", "You are no longer subject to fits of painful clarity.");
1261 muta_class = &(p_ptr->muta2);
1262 muta_which = MUT2_DISARM;
1263 muta_desc = _( "脚が元の大きさに戻った。", "Your feet shrink to their former size.");
1266 case 120: case 121: case 122:
1267 muta_class = &(p_ptr->muta3);
1268 muta_which = MUT3_HYPER_STR;
1269 muta_desc = _( "筋肉が普通に戻った。", "Your muscles revert to normal.");
1272 case 123: case 124: case 125:
1273 muta_class = &(p_ptr->muta3);
1274 muta_which = MUT3_PUNY;
1275 muta_desc = _( "筋肉が普通に戻った。", "Your muscles revert to normal.");
1278 case 126: case 127: case 128:
1279 muta_class = &(p_ptr->muta3);
1280 muta_which = MUT3_HYPER_INT;
1281 muta_desc = _( "脳が普通に戻った。", "Your brain reverts to normal.");
1284 case 129: case 130: case 131:
1285 muta_class = &(p_ptr->muta3);
1286 muta_which = MUT3_MORONIC;
1287 muta_desc = _( "脳が普通に戻った。", "Your brain reverts to normal.");
1291 muta_class = &(p_ptr->muta3);
1292 muta_which = MUT3_RESILIENT;
1293 muta_desc = _( "普通の丈夫さに戻った。", "You become ordinarily resilient again.");
1297 muta_class = &(p_ptr->muta3);
1298 muta_which = MUT3_XTRA_FAT;
1299 muta_desc = _( "奇跡的なダイエットに成功した!", "You benefit from a miracle diet!");
1303 muta_class = &(p_ptr->muta3);
1304 muta_which = MUT3_ALBINO;
1305 muta_desc = _( "アルビノでなくなった!", "You are no longer an albino!");
1308 case 138: case 139: case 140:
1309 muta_class = &(p_ptr->muta3);
1310 muta_which = MUT3_FLESH_ROT;
1311 muta_desc = _( "肉体を腐敗させる病気が治った!", "Your flesh is no longer afflicted by a rotting disease!");
1315 muta_class = &(p_ptr->muta3);
1316 muta_which = MUT3_SILLY_VOI;
1317 muta_desc = _( "声質が普通に戻った。", "Your voice returns to normal.");
1321 muta_class = &(p_ptr->muta3);
1322 muta_which = MUT3_BLANK_FAC;
1323 muta_desc = _( "顔に目鼻が戻った。", "Your facial features return.");
1327 muta_class = &(p_ptr->muta3);
1328 muta_which = MUT3_ILL_NORM;
1329 muta_desc = _( "心が安らぐ幻影を映し出さなくなった。", "You stop projecting a reassuring image.");
1332 case 146: case 147: case 148:
1333 muta_class = &(p_ptr->muta3);
1334 muta_which = MUT3_XTRA_EYES;
1335 muta_desc = _( "余分な目が消えてしまった!", "Your extra eyes vanish!");
1339 muta_class = &(p_ptr->muta3);
1340 muta_which = MUT3_MAGIC_RES;
1341 muta_desc = _( "魔法に弱くなった。", "You become susceptible to magic again.");
1344 case 151: case 152: case 153:
1345 muta_class = &(p_ptr->muta3);
1346 muta_which = MUT3_XTRA_NOIS;
1347 muta_desc = _( "奇妙な音を立てなくなった!", "You stop making strange noise!");
1350 case 154: case 155: case 156:
1351 muta_class = &(p_ptr->muta3);
1352 muta_which = MUT3_INFRAVIS;
1353 muta_desc = _( "赤外線視力が落ちた。", "Your infravision is degraded.");
1357 muta_class = &(p_ptr->muta3);
1358 muta_which = MUT3_XTRA_LEGS;
1359 muta_desc = _( "余分な脚が消えてしまった!", "Your extra legs disappear!");
1363 muta_class = &(p_ptr->muta3);
1364 muta_which = MUT3_SHORT_LEG;
1365 muta_desc = _( "脚の長さが普通に戻った。", "Your legs lengthen to normal.");
1369 muta_class = &(p_ptr->muta3);
1370 muta_which = MUT3_ELEC_TOUC;
1371 muta_desc = _( "体を電流が流れなくなった。", "Electricity stops running through you.");
1375 muta_class = &(p_ptr->muta3);
1376 muta_which = MUT3_FIRE_BODY;
1377 muta_desc = _( "体が炎に包まれなくなった。", "Your body is no longer enveloped in flames.");
1380 case 165: case 166: case 167:
1381 muta_class = &(p_ptr->muta3);
1382 muta_which = MUT3_WART_SKIN;
1383 muta_desc = _( "イボイボが消えた!", "Your warts disappear!");
1386 case 168: case 169: case 170:
1387 muta_class = &(p_ptr->muta3);
1388 muta_which = MUT3_SCALES;
1389 muta_desc = _( "鱗が消えた!", "Your scales vanish!");
1393 muta_class = &(p_ptr->muta3);
1394 muta_which = MUT3_IRON_SKIN;
1395 muta_desc = _( "肌が肉にもどった!", "Your skin reverts to flesh!");
1399 muta_class = &(p_ptr->muta3);
1400 muta_which = MUT3_WINGS;
1401 muta_desc = _( "背中の羽根が取れ落ちた。", "Your wings fall off.");
1404 case 175: case 176: case 177:
1405 muta_class = &(p_ptr->muta3);
1406 muta_which = MUT3_FEARLESS;
1407 muta_desc = _( "再び恐怖を感じるようになった。", "You begin to feel fear again.");
1411 muta_class = &(p_ptr->muta3);
1412 muta_which = MUT3_REGEN;
1413 muta_desc = _( "急速回復しなくなった。", "You stop regenerating.");
1417 muta_class = &(p_ptr->muta3);
1418 muta_which = MUT3_ESP;
1419 muta_desc = _( "テレパシーの能力を失った!", "You lose your telepathic ability!");
1422 case 182: case 183: case 184:
1423 muta_class = &(p_ptr->muta3);
1424 muta_which = MUT3_LIMBER;
1425 muta_desc = _( "筋肉が硬くなった。", "Your muscles stiffen.");
1428 case 185: case 186: case 187:
1429 muta_class = &(p_ptr->muta3);
1430 muta_which = MUT3_ARTHRITIS;
1431 muta_desc = _( "関節が痛くなくなった。", "Your joints stop hurting.");
1435 muta_class = &(p_ptr->muta3);
1436 muta_which = MUT3_BAD_LUCK;
1437 muta_desc = _( "黒いオーラは渦巻いて消えた。", "Your black aura swirls and fades.");
1441 muta_class = &(p_ptr->muta3);
1442 muta_which = MUT3_VULN_ELEM;
1443 muta_desc = _( "無防備な感じはなくなった。", "You feel less exposed.");
1446 case 190: case 191: case 192:
1447 muta_class = &(p_ptr->muta3);
1448 muta_which = MUT3_MOTION;
1449 muta_desc = _( "動作の正確さがなくなった。", "You move with less assurance.");
1453 if (p_ptr->pseikaku == SEIKAKU_LUCKY) break;
1454 muta_class = &(p_ptr->muta3);
1455 muta_which = MUT3_GOOD_LUCK;
1456 muta_desc = _( "白いオーラは輝いて消えた。", "Your white aura shimmers and fades.");
1464 if (muta_class && muta_which)
1466 if (*(muta_class) & muta_which)
1471 if (muta_chosen == TRUE) break;
1480 msg_print(muta_desc);
1481 *(muta_class) &= ~(muta_which);
1483 p_ptr->update |= PU_BONUS;
1485 p_ptr->mutant_regenerate_mod = calc_mutant_regenerate_mod();
1490 void lose_all_mutations(void)
1492 if (p_ptr->muta1 || p_ptr->muta2 || p_ptr->muta3)
1494 chg_virtue(V_CHANCE, -5);
1495 msg_print(_("全ての突然変異が治った。", "You are cured of all mutations."));
1496 p_ptr->muta1 = p_ptr->muta2 = p_ptr->muta3 = 0;
1497 p_ptr->update |= PU_BONUS;
1499 p_ptr->mutant_regenerate_mod = calc_mutant_regenerate_mod();
1504 * @brief ファイルポインタを通じて突然変異の一覧を出力する
1505 * @param OutFile 出力先ファイルポインタ
1508 void dump_mutations(FILE *OutFile)
1510 if (!OutFile) return;
1514 if (p_ptr->muta1 & MUT1_SPIT_ACID)
1516 fprintf(OutFile, _(" あなたは酸を吹きかけることができる。(ダメージ レベルX1)\n", " You can spit acid (dam lvl).\n"));
1519 if (p_ptr->muta1 & MUT1_BR_FIRE)
1521 fprintf(OutFile, _(" あなたは炎のブレスを吐くことができる。(ダメージ レベルX2)\n", " You can breathe fire (dam lvl * 2).\n"));
1524 if (p_ptr->muta1 & MUT1_HYPN_GAZE)
1526 fprintf(OutFile, _(" あなたの睨みは催眠効果をもつ。\n", " Your gaze is hypnotic.\n"));
1529 if (p_ptr->muta1 & MUT1_TELEKINES)
1531 fprintf(OutFile, _(" あなたは念動力をもっている。\n", " You are telekinetic.\n"));
1534 if (p_ptr->muta1 & MUT1_VTELEPORT)
1536 fprintf(OutFile, _(" あなたは自分の意思でテレポートできる。\n", " You can teleport at will.\n"));
1539 if (p_ptr->muta1 & MUT1_MIND_BLST)
1541 fprintf(OutFile, _(" あなたは敵を精神攻撃できる。\n", " You can Mind Blast your enemies.\n"));
1544 if (p_ptr->muta1 & MUT1_RADIATION)
1546 fprintf(OutFile, _(" あなたは自分の意思で放射能を発生することができる。\n", " You can emit hard radiation at will.\n"));
1549 if (p_ptr->muta1 & MUT1_VAMPIRISM)
1551 fprintf(OutFile, _(" あなたは吸血鬼のように敵から生命力を吸収することができる。\n", " You can drain life from a foe like a vampire.\n"));
1554 if (p_ptr->muta1 & MUT1_SMELL_MET)
1556 fprintf(OutFile, _(" あなたは近くにある貴金属をかぎ分けることができる。\n", " You can smell nearby precious metal.\n"));
1559 if (p_ptr->muta1 & MUT1_SMELL_MON)
1561 fprintf(OutFile, _(" あなたは近くのモンスターの存在をかぎ分けることができる。\n", " You can smell nearby monsters.\n"));
1564 if (p_ptr->muta1 & MUT1_BLINK)
1566 fprintf(OutFile, _(" あなたは短い距離をテレポートできる。\n", " You can teleport yourself short distances.\n"));
1569 if (p_ptr->muta1 & MUT1_EAT_ROCK)
1571 fprintf(OutFile, _(" あなたは硬い岩を食べることができる。\n", " You can consume solid rock.\n"));
1574 if (p_ptr->muta1 & MUT1_SWAP_POS)
1576 fprintf(OutFile, _(" あなたは他の者と場所を入れ替わることができる。\n", " You can switch locations with another being.\n"));
1579 if (p_ptr->muta1 & MUT1_SHRIEK)
1581 fprintf(OutFile, _(" あなたは身の毛もよだつ叫び声を発することができる。\n", " You can emit a horrible shriek.\n"));
1584 if (p_ptr->muta1 & MUT1_ILLUMINE)
1586 fprintf(OutFile, _(" あなたは明るい光を放つことができる。\n", " You can emit bright light.\n"));
1589 if (p_ptr->muta1 & MUT1_DET_CURSE)
1591 fprintf(OutFile, _(" あなたは邪悪な魔法の危険を感じとることができる。\n", " You can feel the danger of evil magic.\n"));
1594 if (p_ptr->muta1 & MUT1_BERSERK)
1596 fprintf(OutFile, _(" あなたは自分の意思で狂乱戦闘状態になることができる。\n", " You can drive yourself into a berserk frenzy.\n"));
1599 if (p_ptr->muta1 & MUT1_POLYMORPH)
1601 fprintf(OutFile, _(" あなたは自分の意志で変化できる。\n", " You can polymorph yourself at will.\n"));
1604 if (p_ptr->muta1 & MUT1_MIDAS_TCH)
1606 fprintf(OutFile, _(" あなたは通常アイテムを金に変えることができる。\n", " You can current_world_ptr->game_turn ordinary items to gold.\n"));
1609 if (p_ptr->muta1 & MUT1_GROW_MOLD)
1611 fprintf(OutFile, _(" あなたは周囲にキノコを生やすことができる。\n", " You can cause mold to grow near you.\n"));
1614 if (p_ptr->muta1 & MUT1_RESIST)
1616 fprintf(OutFile, _(" あなたは元素の攻撃に対して身を硬くすることができる。\n", " You can harden yourself to the ravages of the elements.\n"));
1619 if (p_ptr->muta1 & MUT1_EARTHQUAKE)
1621 fprintf(OutFile, _(" あなたは周囲のダンジョンを崩壊させることができる。\n", " You can bring down the dungeon around your ears.\n"));
1624 if (p_ptr->muta1 & MUT1_EAT_MAGIC)
1626 fprintf(OutFile, _(" あなたは魔法のエネルギーを自分の物として使用できる。\n", " You can consume magic energy for your own use.\n"));
1629 if (p_ptr->muta1 & MUT1_WEIGH_MAG)
1631 fprintf(OutFile, _(" あなたは自分に影響を与える魔法の力を感じることができる。\n", " You can feel the strength of the magics affecting you.\n"));
1634 if (p_ptr->muta1 & MUT1_STERILITY)
1636 fprintf(OutFile, _(" あなたは集団的生殖不能を起こすことができる。\n", " You can cause mass impotence.\n"));
1639 if (p_ptr->muta1 & MUT1_PANIC_HIT)
1641 fprintf(OutFile, _(" あなたは攻撃した後身を守るため逃げることができる。\n", " You can run for your life after hitting something.\n"));
1644 if (p_ptr->muta1 & MUT1_DAZZLE)
1646 fprintf(OutFile, _(" あなたは混乱と盲目を引き起こす放射能を発生することができる。 \n", " You can emit confusing, blinding radiation.\n"));
1649 if (p_ptr->muta1 & MUT1_LASER_EYE)
1651 fprintf(OutFile, _(" あなたは目からレーザー光線を発射することができる。\n", " Your eyes can fire laser beams.\n"));
1654 if (p_ptr->muta1 & MUT1_RECALL)
1656 fprintf(OutFile, _(" あなたは街とダンジョンの間を行き来することができる。\n", " You can travel between town and the depths.\n"));
1659 if (p_ptr->muta1 & MUT1_BANISH)
1661 fprintf(OutFile, _(" あなたは邪悪なモンスターを地獄に落とすことができる。\n", " You can send evil creatures directly to Hell.\n"));
1664 if (p_ptr->muta1 & MUT1_COLD_TOUCH)
1666 fprintf(OutFile, _(" あなたは物を触って凍らせることができる。\n", " You can freeze things with a touch.\n"));
1669 if (p_ptr->muta1 & MUT1_LAUNCHER)
1671 fprintf(OutFile, _(" あなたはアイテムを力強く投げることができる。\n", " You can hurl objects with great force.\n"));
1678 if (p_ptr->muta2 & MUT2_BERS_RAGE)
1680 fprintf(OutFile, _(" あなたは狂戦士化の発作を起こす。\n", " You are subject to berserker fits.\n"));
1683 if (p_ptr->muta2 & MUT2_COWARDICE)
1685 fprintf(OutFile, _(" あなたは時々臆病になる。\n", " You are subject to cowardice.\n"));
1688 if (p_ptr->muta2 & MUT2_RTELEPORT)
1690 fprintf(OutFile, _(" あなたはランダムにテレポートする。\n", " You are teleporting randomly.\n"));
1693 if (p_ptr->muta2 & MUT2_ALCOHOL)
1695 fprintf(OutFile, _(" あなたの体はアルコールを分泌する。\n", " Your body produces alcohol.\n"));
1698 if (p_ptr->muta2 & MUT2_HALLU)
1700 fprintf(OutFile, _(" あなたは幻覚を引き起こす精神錯乱に侵されている。\n", " You have a hallucinatory insanity.\n"));
1703 if (p_ptr->muta2 & MUT2_FLATULENT)
1705 fprintf(OutFile, _(" あなたは制御できない強烈な屁をこく。\n", " You are subject to uncontrollable flatulence.\n"));
1708 if (p_ptr->muta2 & MUT2_PROD_MANA)
1710 fprintf(OutFile, _(" あなたは制御不能な魔法のエネルギーを発している。\n", " You are producing magical energy uncontrollably.\n"));
1713 if (p_ptr->muta2 & MUT2_ATT_DEMON)
1715 fprintf(OutFile, _(" あなたはデーモンを引きつける。\n", " You attract demons.\n"));
1718 if (p_ptr->muta2 & MUT2_SCOR_TAIL)
1720 fprintf(OutFile, _(" あなたはサソリの尻尾が生えている。(毒、ダメージ 3d7)\n", " You have a scorpion tail (poison, 3d7).\n"));
1723 if (p_ptr->muta2 & MUT2_HORNS)
1725 fprintf(OutFile, _(" あなたは角が生えている。(ダメージ 2d6)\n", " You have horns (dam. 2d6).\n"));
1728 if (p_ptr->muta2 & MUT2_BEAK)
1730 fprintf(OutFile, _(" あなたはクチバシが生えている。(ダメージ 2d4)\n", " You have a beak (dam. 2d4).\n"));
1733 if (p_ptr->muta2 & MUT2_SPEED_FLUX)
1735 fprintf(OutFile, _(" あなたはランダムに早く動いたり遅く動いたりする。\n", " You move faster or slower randomly.\n"));
1738 if (p_ptr->muta2 & MUT2_BANISH_ALL)
1740 fprintf(OutFile, _(" あなたは時々近くのモンスターを消滅させる。\n", " You sometimes cause nearby creatures to vanish.\n"));
1743 if (p_ptr->muta2 & MUT2_EAT_LIGHT)
1745 fprintf(OutFile, _(" あなたは時々周囲の光を吸収して栄養にする。\n", " You sometimes feed off of the light around you.\n"));
1748 if (p_ptr->muta2 & MUT2_TRUNK)
1750 fprintf(OutFile, _(" あなたは象のような鼻を持っている。(ダメージ 1d4)\n", " You have an elephantine trunk (dam 1d4).\n"));
1753 if (p_ptr->muta2 & MUT2_ATT_ANIMAL)
1755 fprintf(OutFile, _(" あなたは動物を引きつける。\n", " You attract animals.\n"));
1758 if (p_ptr->muta2 & MUT2_TENTACLES)
1760 fprintf(OutFile, _(" あなたは邪悪な触手を持っている。(ダメージ 2d5)\n", " You have evil looking tentacles (dam 2d5).\n"));
1763 if (p_ptr->muta2 & MUT2_RAW_CHAOS)
1765 fprintf(OutFile, _(" あなたはしばしば純カオスに包まれる。\n", " You occasionally are surrounded with raw chaos.\n"));
1768 if (p_ptr->muta2 & MUT2_NORMALITY)
1770 fprintf(OutFile, _(" あなたは変異していたが、回復してきている。\n", " You may be mutated, but you're recovering.\n"));
1773 if (p_ptr->muta2 & MUT2_WRAITH)
1775 fprintf(OutFile, _(" あなたの肉体は幽体化したり実体化したりする。\n", " You fade in and out of physical reality.\n"));
1778 if (p_ptr->muta2 & MUT2_POLY_WOUND)
1780 fprintf(OutFile, _(" あなたの健康はカオスの力に影響を受ける。\n", " Your health is subject to chaotic forces.\n"));
1783 if (p_ptr->muta2 & MUT2_WASTING)
1785 fprintf(OutFile, _(" あなたは衰弱する恐ろしい病気にかかっている。\n", " You have a horrible wasting disease.\n"));
1788 if (p_ptr->muta2 & MUT2_ATT_DRAGON)
1790 fprintf(OutFile, _(" あなたはドラゴンを引きつける。\n", " You attract dragons.\n"));
1793 if (p_ptr->muta2 & MUT2_WEIRD_MIND)
1795 fprintf(OutFile, _(" あなたの精神はランダムに拡大したり縮小したりしている。\n", " Your mind randomly expands and contracts.\n"));
1798 if (p_ptr->muta2 & MUT2_NAUSEA)
1800 fprintf(OutFile, _(" あなたの胃は非常に落ち着きがない。\n", " You have a seriously upset stomach.\n"));
1803 if (p_ptr->muta2 & MUT2_CHAOS_GIFT)
1805 fprintf(OutFile, _(" あなたはカオスの守護悪魔から褒美をうけとる。\n", " Chaos deities give you gifts.\n"));
1808 if (p_ptr->muta2 & MUT2_WALK_SHAD)
1810 fprintf(OutFile, _(" あなたはしばしば他の「影」に迷い込む。\n", " You occasionally stumble into other shadows.\n"));
1813 if (p_ptr->muta2 & MUT2_WARNING)
1815 fprintf(OutFile, _(" あなたは敵に関する警告を感じる。\n", " You receive warnings about your foes.\n"));
1818 if (p_ptr->muta2 & MUT2_INVULN)
1820 fprintf(OutFile, _(" あなたは時々負け知らずな気分になる。\n", " You occasionally feel invincible.\n"));
1823 if (p_ptr->muta2 & MUT2_SP_TO_HP)
1825 fprintf(OutFile, _(" あなたは時々血が筋肉にどっと流れる。\n", " Your blood sometimes rushes to your muscles.\n"));
1828 if (p_ptr->muta2 & MUT2_HP_TO_SP)
1830 fprintf(OutFile, _(" あなたは時々頭に血がどっと流れる。\n", " Your blood sometimes rushes to your head.\n"));
1833 if (p_ptr->muta2 & MUT2_DISARM)
1835 fprintf(OutFile, _(" あなたはよくつまづいて物を落とす。\n", " You occasionally stumble and drop things.\n"));
1842 if (p_ptr->muta3 & MUT3_HYPER_STR)
1844 fprintf(OutFile, _(" あなたは超人的に強い。(腕力+4)\n", " You are superhumanly strong (+4 STR).\n"));
1847 if (p_ptr->muta3 & MUT3_PUNY)
1849 fprintf(OutFile, _(" あなたは虚弱だ。(腕力-4)\n", " You are puny (-4 STR).\n"));
1852 if (p_ptr->muta3 & MUT3_HYPER_INT)
1854 fprintf(OutFile, _(" あなたの脳は生体コンピュータだ。(知能&賢さ+4)\n", " Your brain is a living computer (+4 INT/WIS).\n"));
1857 if (p_ptr->muta3 & MUT3_MORONIC)
1859 fprintf(OutFile, _(" あなたは精神薄弱だ。(知能&賢さ-4)\n", " You are moronic (-4 INT/WIS).\n"));
1862 if (p_ptr->muta3 & MUT3_RESILIENT)
1864 fprintf(OutFile, _(" あなたの体は弾力性に富んでいる。(耐久+4)\n", " You are very resilient (+4 CON).\n"));
1867 if (p_ptr->muta3 & MUT3_XTRA_FAT)
1869 fprintf(OutFile, _(" あなたは極端に太っている。(耐久+2,スピード-2)\n", " You are extremely fat (+2 CON, -2 speed).\n"));
1872 if (p_ptr->muta3 & MUT3_ALBINO)
1874 fprintf(OutFile, _(" あなたはアルビノだ。(耐久-4)\n", " You are albino (-4 CON).\n"));
1877 if (p_ptr->muta3 & MUT3_FLESH_ROT)
1879 fprintf(OutFile, _(" あなたの肉体は腐敗している。(耐久-2,魅力-1)\n", " Your flesh is rotting (-2 CON, -1 CHR).\n"));
1882 if (p_ptr->muta3 & MUT3_SILLY_VOI)
1884 fprintf(OutFile, _(" あなたの声は間抜けなキーキー声だ。(魅力-4)\n", " Your voice is a silly squeak (-4 CHR).\n"));
1887 if (p_ptr->muta3 & MUT3_BLANK_FAC)
1889 fprintf(OutFile, _(" あなたはのっぺらぼうだ。(魅力-1)\n", " Your face is featureless (-1 CHR).\n"));
1892 if (p_ptr->muta3 & MUT3_ILL_NORM)
1894 fprintf(OutFile, _(" あなたは幻影に覆われている。\n", " Your appearance is masked with illusion.\n"));
1897 if (p_ptr->muta3 & MUT3_XTRA_EYES)
1899 fprintf(OutFile, _(" あなたは余分に二つの目を持っている。(探索+15)\n", " You have an extra pair of eyes (+15 search).\n"));
1902 if (p_ptr->muta3 & MUT3_MAGIC_RES)
1904 fprintf(OutFile, _(" あなたは魔法への耐性をもっている。\n", " You are resistant to magic.\n"));
1907 if (p_ptr->muta3 & MUT3_XTRA_NOIS)
1909 fprintf(OutFile, _(" あなたは変な音を発している。(隠密-3)\n", " You make a lot of strange noise (-3 stealth).\n"));
1912 if (p_ptr->muta3 & MUT3_INFRAVIS)
1914 fprintf(OutFile, _(" あなたは素晴らしい赤外線視力を持っている。(+3)\n", " You have remarkable infravision (+3).\n"));
1917 if (p_ptr->muta3 & MUT3_XTRA_LEGS)
1919 fprintf(OutFile, _(" あなたは余分に二本の足が生えている。(加速+3)\n", " You have an extra pair of legs (+3 speed).\n"));
1922 if (p_ptr->muta3 & MUT3_SHORT_LEG)
1924 fprintf(OutFile, _(" あなたの足は短い突起だ。(加速-3)\n", " Your legs are short stubs (-3 speed).\n"));
1927 if (p_ptr->muta3 & MUT3_ELEC_TOUC)
1929 fprintf(OutFile, _(" あなたの血管には電流が流れている。\n", " Electricity is running through your veins.\n"));
1932 if (p_ptr->muta3 & MUT3_FIRE_BODY)
1934 fprintf(OutFile, _(" あなたの体は炎につつまれている。\n", " Your body is enveloped in flames.\n"));
1937 if (p_ptr->muta3 & MUT3_WART_SKIN)
1939 fprintf(OutFile, _(" あなたの肌はイボに被われている。(魅力-2, AC+5)\n", " Your skin is covered with warts (-2 CHR, +5 AC).\n"));
1942 if (p_ptr->muta3 & MUT3_SCALES)
1944 fprintf(OutFile, _(" あなたの肌は鱗になっている。(魅力-1, AC+10)\n", " Your skin has turned into scales (-1 CHR, +10 AC).\n"));
1947 if (p_ptr->muta3 & MUT3_IRON_SKIN)
1949 fprintf(OutFile, _(" あなたの肌は鉄でできている。(器用-1, AC+25)\n", " Your skin is made of steel (-1 DEX, +25 AC).\n"));
1952 if (p_ptr->muta3 & MUT3_WINGS)
1954 fprintf(OutFile, _(" あなたは羽を持っている。\n", " You have wings.\n"));
1957 if (p_ptr->muta3 & MUT3_FEARLESS)
1959 fprintf(OutFile, _(" あなたは全く恐怖を感じない。\n", " You are completely fearless.\n"));
1962 if (p_ptr->muta3 & MUT3_REGEN)
1964 fprintf(OutFile, _(" あなたは急速に回復する。\n", " You are regenerating.\n"));
1967 if (p_ptr->muta3 & MUT3_ESP)
1969 fprintf(OutFile, _(" あなたはテレパシーを持っている。\n", " You are telepathic.\n"));
1972 if (p_ptr->muta3 & MUT3_LIMBER)
1974 fprintf(OutFile, _(" あなたの体は非常にしなやかだ。(器用+3)\n", " Your body is very limber (+3 DEX).\n"));
1977 if (p_ptr->muta3 & MUT3_ARTHRITIS)
1979 fprintf(OutFile, _(" あなたはいつも関節に痛みを感じている。(器用-3)\n", " Your joints ache constantly (-3 DEX).\n"));
1982 if (p_ptr->muta3 & MUT3_VULN_ELEM)
1984 fprintf(OutFile, _(" あなたは元素の攻撃に弱い。\n", " You are susceptible to damage from the elements.\n"));
1987 if (p_ptr->muta3 & MUT3_MOTION)
1989 fprintf(OutFile, _(" あなたの動作は正確で力強い。(隠密+1)\n", " Your movements are precise and forceful (+1 STL).\n"));
1992 if (p_ptr->muta3 & MUT3_GOOD_LUCK)
1994 fprintf(OutFile, _(" あなたは白いオーラにつつまれている。\n", " There is a white aura surrounding you.\n"));
1997 if (p_ptr->muta3 & MUT3_BAD_LUCK)
1999 fprintf(OutFile, _(" あなたは黒いオーラにつつまれている。\n", " There is a black aura surrounding you.\n"));
2006 * @brief 突然変異表示コマンドの実装 / List mutations we have...
2009 void do_cmd_knowledge_mutations(void)
2012 GAME_TEXT file_name[1024];
2014 /* Open a new file */
2015 fff = my_fopen_temp(file_name, 1024);
2017 /* Dump the mutations to file */
2018 if (fff) dump_mutations(fff);
2021 /* Display the file contents */
2022 show_file(TRUE, file_name, _("突然変異", "Mutations"), 0, 0);
2028 * @brief 現在プレイヤー得ている突然変異の数を返す。
2029 * @return 現在得ている突然変異の数
2031 static int count_mutations(void)
2033 return (count_bits(p_ptr->muta1) +
2034 count_bits(p_ptr->muta2) +
2035 count_bits(p_ptr->muta3));
2040 * @brief 突然変異による自然回復ペナルティをパーセント値で返す /
2041 * Return the modifier to the regeneration rate (in percent)
2042 * @return ペナルティ修正(%)
2044 int calc_mutant_regenerate_mod(void)
2048 int count = count_mutations();
2051 * Beastman get 10 "free" mutations and
2052 * only 5% decrease per additional mutation
2055 if (p_ptr->pseikaku == SEIKAKU_LUCKY) count--;
2056 if (p_ptr->prace == RACE_BEASTMAN)
2062 /* No negative modifier */
2063 if (count <= 0) return 100;
2065 regen = 100 - count * mod;
2067 /* Max. 90% decrease in regeneration speed */
2068 if (regen < 10) regen = 10;
2075 * @brief 突然変異のレイシャル効果実装
2076 * @param power 発動させる突然変異レイシャルのID
2077 * @return レイシャルを実行した場合TRUE、キャンセルした場合FALSEを返す
2079 bool mutation_power_aux(int power)
2082 PLAYER_LEVEL lvl = p_ptr->lev;
2086 case MUT1_SPIT_ACID:
2087 if (!get_aim_dir(&dir)) return FALSE;
2089 msg_print(_("酸を吐きかけた...", "You spit acid..."));
2090 fire_ball(GF_ACID, dir, lvl, 1 + (lvl / 30));
2094 if (!get_aim_dir(&dir)) return FALSE;
2096 msg_print(_("あなたは火炎のブレスを吐いた...", "You breathe fire..."));
2097 fire_breath(GF_FIRE, dir, lvl * 2, 1 + (lvl / 20));
2100 case MUT1_HYPN_GAZE:
2101 if (!get_aim_dir(&dir)) return FALSE;
2102 msg_print(_("あなたの目は幻惑的になった...", "Your eyes look mesmerizing..."));
2103 (void)charm_monster(dir, lvl);
2106 case MUT1_TELEKINES:
2107 if (!get_aim_dir(&dir)) return FALSE;
2108 msg_print(_("集中している...", "You concentrate..."));
2109 fetch(dir, lvl * 10, TRUE);
2112 case MUT1_VTELEPORT:
2113 msg_print(_("集中している...", "You concentrate..."));
2114 teleport_player(10 + 4 * lvl, 0L);
2117 case MUT1_MIND_BLST:
2118 if (!get_aim_dir(&dir)) return FALSE;
2119 msg_print(_("集中している...", "You concentrate..."));
2120 fire_bolt(GF_PSI, dir, damroll(3 + ((lvl - 1) / 5), 3));
2123 case MUT1_RADIATION:
2124 msg_print(_("体から放射能が発生した!", "Radiation flows from your body!"));
2125 fire_ball(GF_NUKE, 0, (lvl * 2), 3 + (lvl / 20));
2128 case MUT1_VAMPIRISM:
2132 case MUT1_SMELL_MET:
2134 (void)detect_treasure(DETECT_RAD_DEFAULT);
2137 case MUT1_SMELL_MON:
2139 (void)detect_monsters_normal(DETECT_RAD_DEFAULT);
2143 teleport_player(10, 0L);
2151 project_length = -1;
2152 if (!get_aim_dir(&dir))
2157 (void)teleport_swap(dir);
2163 (void)fire_ball(GF_SOUND, 0, 2 * lvl, 8);
2164 (void)aggravate_monsters(0);
2168 (void)lite_area(damroll(2, (lvl / 2)), (lvl / 10) + 1);
2171 case MUT1_DET_CURSE:
2175 for (i = 0; i < INVEN_TOTAL; i++)
2177 object_type *o_ptr = &inventory[i];
2179 if (!o_ptr->k_idx) continue;
2180 if (!object_is_cursed(o_ptr)) continue;
2182 o_ptr->feeling = FEEL_CURSED;
2188 (void)berserk(randint1(25) + 25);
2191 case MUT1_POLYMORPH:
2192 if (!get_check(_("変身します。よろしいですか?", "You will polymorph your self. Are you sure? "))) return FALSE;
2196 case MUT1_MIDAS_TCH:
2197 if (!alchemy()) return FALSE;
2200 /* Summon pet molds around the player */
2201 case MUT1_GROW_MOLD:
2204 for (i = 0; i < 8; i++)
2206 summon_specific(-1, p_ptr->y, p_ptr->x, lvl, SUMMON_MOLD, PM_FORCE_PET, '\0');
2214 TIME_EFFECT dur = randint1(20) + 20;
2216 if (randint0(5) < num)
2218 (void)set_oppose_acid(dur, FALSE);
2221 if (randint0(4) < num)
2223 (void)set_oppose_elec(dur, FALSE);
2226 if (randint0(3) < num)
2228 (void)set_oppose_fire(dur, FALSE);
2231 if (randint0(2) < num)
2233 (void)set_oppose_cold(dur, FALSE);
2238 (void)set_oppose_pois(dur, FALSE);
2244 case MUT1_EARTHQUAKE:
2245 (void)earthquake(p_ptr->y, p_ptr->x, 10);
2248 case MUT1_EAT_MAGIC:
2249 if (!eat_magic(p_ptr->lev * 2)) return FALSE;
2252 case MUT1_WEIGH_MAG:
2256 case MUT1_STERILITY:
2257 msg_print(_("突然頭が痛くなった!", "You suddenly have a headache!"));
2258 take_hit(DAMAGE_LOSELIFE, randint1(17) + 17, _("禁欲を強いた疲労", "the strain of forcing abstinence"), -1);
2259 current_floor_ptr->num_repro += MAX_REPRO;
2262 case MUT1_PANIC_HIT:
2263 if(!panic_hit()) return FALSE;
2267 stun_monsters(lvl * 4);
2268 confuse_monsters(lvl * 4);
2269 turn_monsters(lvl * 4);
2272 case MUT1_LASER_EYE:
2273 if (!get_aim_dir(&dir)) return FALSE;
2274 fire_beam(GF_LITE, dir, 2 * lvl);
2278 if (!recall_player(p_ptr, randint0(21) + 15)) return FALSE;
2285 monster_type *m_ptr;
2286 monster_race *r_ptr;
2287 if (!get_direction(&dir, FALSE, FALSE)) return FALSE;
2288 y = p_ptr->y + ddy[dir];
2289 x = p_ptr->x + ddx[dir];
2290 g_ptr = ¤t_floor_ptr->grid_array[y][x];
2294 msg_print(_("邪悪な存在を感じとれません!", "You sense no evil there!"));
2299 m_ptr = ¤t_floor_ptr->m_list[g_ptr->m_idx];
2300 r_ptr = &r_info[m_ptr->r_idx];
2302 if ((r_ptr->flags3 & RF3_EVIL) &&
2303 !(r_ptr->flags1 & RF1_QUESTOR) &&
2304 !(r_ptr->flags1 & RF1_UNIQUE) &&
2305 !p_ptr->inside_arena && !p_ptr->inside_quest &&
2306 (r_ptr->level < randint1(p_ptr->lev+50)) &&
2307 !(m_ptr->mflag2 & MFLAG2_NOGENO))
2309 if (record_named_pet && is_pet(m_ptr) && m_ptr->nickname)
2311 GAME_TEXT m_name[MAX_NLEN];
2312 monster_desc(m_name, m_ptr, MD_INDEF_VISIBLE);
2313 do_cmd_write_nikki(NIKKI_NAMED_PET, RECORD_NAMED_PET_GENOCIDE, m_name);
2315 /* Delete the monster, rather than killing it. */
2316 delete_monster_idx(g_ptr->m_idx);
2317 msg_print(_("その邪悪なモンスターは硫黄臭い煙とともに消え去った!", "The evil creature vanishes in a puff of sulfurous smoke!"));
2322 msg_print(_("祈りは効果がなかった!", "Your invocation is ineffectual!"));
2323 if (one_in_(13)) m_ptr->mflag2 |= MFLAG2_NOGENO;
2328 case MUT1_COLD_TOUCH:
2332 if (!get_direction(&dir, FALSE, FALSE)) return FALSE;
2333 y = p_ptr->y + ddy[dir];
2334 x = p_ptr->x + ddx[dir];
2335 g_ptr = ¤t_floor_ptr->grid_array[y][x];
2338 msg_print(_("あなたは何もない場所で手を振った。", "You wave your hands in the air."));
2342 fire_bolt(GF_COLD, dir, 2 * lvl);
2346 /* XXX_XXX_XXX Hack! MUT1_LAUNCHER is negative, see above */
2347 case 3: /* MUT1_LAUNCHER */
2348 /* Gives a multiplier of 2 at first, up to 3 at 40th */
2349 if (!do_cmd_throw(2 + lvl / 40, FALSE, -1)) return FALSE;
2354 msg_format(_("能力 %s は実装されていません。", "Power %s not implemented. Oops."), power);
2360 void become_living_trump(player_type *creature_ptr)
2362 MUTATION_IDX mutation;
2365 mutation = 12; /* Teleport control */
2367 mutation = 77; /* Random teleportation (uncontrolled) */
2369 /* Gain the mutation */
2370 if (gain_mutation(creature_ptr, mutation))
2372 msg_print(_("あなたは生きているカードに変わった。", "You have turned into a Living Trump."));