7 * @param mode 処理内容 (SPELL_NAME / SPELL_DESC / SPELL_INFO / SPELL_CAST)
8 * @return SPELL_NAME / SPELL_DESC / SPELL_INFO 時には文字列ポインタを返す。SPELL_CAST時はNULL文字列を返す。
10 cptr do_life_spell(SPELL_IDX spell, BIT_FLAGS mode)
12 bool name = (mode == SPELL_NAME) ? TRUE : FALSE;
13 bool desc = (mode == SPELL_DESC) ? TRUE : FALSE;
14 bool info = (mode == SPELL_INFO) ? TRUE : FALSE;
15 bool cast = (mode == SPELL_CAST) ? TRUE : FALSE;
18 PLAYER_LEVEL plev = p_ptr->lev;
23 if (name) return _("軽傷の治癒", "Cure Light Wounds");
24 if (desc) return _("怪我と体力を少し回復させる。", "Heals cut and HP a little.");
28 if (info) return info_heal(dice, sides, 0);
29 if (cast) (void)cure_light_wounds(dice, sides);
34 if (name) return _("祝福", "Bless");
35 if (desc) return _("一定時間、命中率とACにボーナスを得る。", "Gives bonus to hit and AC for a few turns.");
39 if (info) return info_duration(base, base);
43 set_blessed(randint1(base) + base, FALSE);
49 if (name) return _("軽傷", "Cause Light Wounds");
50 if (desc) return _("1体のモンスターに小ダメージを与える。抵抗されると無効。", "Wounds a monster a little unless resisted.");
52 DICE_NUMBER dice = 3 + (plev - 1) / 5;
55 if (info) return info_damage(dice, sides, 0);
59 if (!get_aim_dir(&dir)) return NULL;
60 fire_ball_hide(GF_WOUNDS, dir, damroll(dice, sides), 0);
66 if (name) return _("光の召喚", "Call Light");
67 if (desc) return _("光源が照らしている範囲か部屋全体を永久に明るくする。", "Lights up nearby area and the inside of a room permanently.");
70 DICE_SID sides = plev / 2;
71 POSITION rad = plev / 10 + 1;
73 if (info) return info_damage(dice, sides, 0);
77 lite_area(damroll(dice, sides), rad);
83 if (name) return _("罠 & 隠し扉感知", "Detect Doors & Traps");
84 if (desc) return _("近くの全ての罠と扉と階段を感知する。", "Detects traps, doors, and stairs in your vicinity.");
86 POSITION rad = DETECT_RAD_DEFAULT;
88 if (info) return info_radius(rad);
92 detect_traps(rad, TRUE);
100 if (name) return _("重傷の治癒", "Cure Medium Wounds");
101 if (desc) return _("怪我と体力を中程度回復させる。", "Heals cut and HP more.");
103 DICE_NUMBER dice = 4;
106 if (info) return info_heal(dice, sides, 0);
107 if (cast) (void)cure_serious_wounds(dice, sides);
112 if (name) return _("解毒", "Cure Poison");
113 if (desc) return _("体内の毒を取り除く。", "Cure poison status.");
123 if (name) return _("空腹充足", "Satisfy Hunger");
124 if (desc) return _("満腹にする。", "Satisfies hunger.");
128 set_food(PY_FOOD_MAX - 1);
134 if (name) return _("解呪", "Remove Curse");
135 if (desc) return _("アイテムにかかった弱い呪いを解除する。", "Removes normal curses from equipped items.");
137 if (cast) (void)remove_curse();
142 if (name) return _("重傷", "Cause Medium Wounds");
143 if (desc) return _("1体のモンスターに中ダメージを与える。抵抗されると無効。", "Wounds a monster unless resisted.");
145 DICE_SID sides = 8 + (plev - 5) / 4;
146 DICE_NUMBER dice = 8;
148 if (info) return info_damage(dice, sides, 0);
152 if (!get_aim_dir(&dir)) return NULL;
153 fire_ball_hide(GF_WOUNDS, dir, damroll(dice, sides), 0);
159 if (name) return _("致命傷の治癒", "Cure Critical Wounds");
160 if (desc) return _("体力を大幅に回復させ、負傷と朦朧状態も全快する。", "Heals cut, stun and HP greatly.");
162 DICE_NUMBER dice = 8;
165 if (info) return info_heal(dice, sides, 0);
166 if (cast) (void)cure_critical_wounds(damroll(dice, sides));
171 if (name) return _("耐熱耐寒", "Resist Heat and Cold");
172 if (desc) return _("一定時間、火炎と冷気に対する耐性を得る。装備による耐性に累積する。",
173 "Gives resistance to fire and cold. These resistances can be added to which from equipment for more powerful resistances.");
178 if (info) return info_duration(base, base);
182 set_oppose_cold(randint1(base) + base, FALSE);
183 set_oppose_fire(randint1(base) + base, FALSE);
189 if (name) return _("周辺感知", "Sense Surroundings");
190 if (desc) return _("周辺の地形を感知する。", "Maps nearby area.");
193 POSITION rad = DETECT_RAD_MAP;
195 if (info) return info_radius(rad);
205 if (name) return _("パニック・アンデッド", "Turn Undead");
206 if (desc) return _("視界内のアンデッドを恐怖させる。抵抗されると無効。", "Attempts to scare undead monsters in sight.");
217 if (name) return _("体力回復", "Healing");
218 if (desc) return _("極めて強力な回復呪文で、負傷と朦朧状態も全快する。", "Much powerful healing magic, and heals cut and stun completely.");
222 if (info) return info_heal(0, 0, heal);
223 if (cast) (void)cure_critical_wounds(heal);
228 if (name) return _("結界の紋章", "Glyph of Warding");
229 if (desc) return _("自分のいる床の上に、モンスターが通り抜けたり召喚されたりすることができなくなるルーンを描く。",
230 "Sets a glyph on the floor beneath you. Monsters cannot attack you if you are on a glyph, but can try to break glyph.");
241 if (name) return _("*解呪*", "Dispel Curse");
242 if (desc) return _("アイテムにかかった強力な呪いを解除する。", "Removes normal and heavy curse from equipped items.");
244 if (cast) (void)remove_all_curse();
249 if (name) return _("鑑識", "Perception");
250 if (desc) return _("アイテムを識別する。", "Identifies an item.");
255 if (!ident_spell(FALSE)) return NULL;
261 if (name) return _("アンデッド退散", "Dispel Undead");
262 if (desc) return _("視界内の全てのアンデッドにダメージを与える。", "Damages all undead monsters in sight.");
265 DICE_NUMBER dice = 1;
266 DICE_SID sides = plev * 5;
268 if (info) return info_damage(dice, sides, 0);
272 dispel_undead(damroll(dice, sides));
278 if (name) return _("凪の刻", "Day of the Dove");
279 if (desc) return _("視界内の全てのモンスターを魅了する。抵抗されると無効。", "Attempts to charm all monsters in sight.");
282 int power = plev * 2;
284 if (info) return info_power(power);
288 charm_monsters(power);
294 if (name) return _("致命傷", "Cause Critical Wounds");
295 if (desc) return _("1体のモンスターに大ダメージを与える。抵抗されると無効。", "Wounds a monster critically unless resisted.");
298 DICE_NUMBER dice = 5 + (plev - 5) / 3;
301 if (info) return info_damage(dice, sides, 0);
305 if (!get_aim_dir(&dir)) return NULL;
306 fire_ball_hide(GF_WOUNDS, dir, damroll(dice, sides), 0);
312 if (name) return _("帰還の詔", "Word of Recall");
313 if (desc) return _("地上にいるときはダンジョンの最深階へ、ダンジョンにいるときは地上へと移動する。", "Recalls player from dungeon to town, or from town to the deepest level of dungeon.");
319 if (info) return info_delay(base, sides);
323 if (!recall_player(p_ptr, randint0(21) + 15)) return NULL;
329 if (name) return _("真実の祭壇", "Alter Reality");
330 if (desc) return _("現在の階を再構成する。", "Recreates current dungeon level.");
336 if (info) return info_delay(base, sides);
346 if (name) return _("真・結界", "Warding True");
347 if (desc) return _("自分のいる床と周囲8マスの床の上に、モンスターが通り抜けたり召喚されたりすることができなくなるルーンを描く。", "Creates glyphs in all adjacent squares and under you.");
352 if (info) return info_radius(rad);
363 if (name) return _("不毛化", "Sterilization");
364 if (desc) return _("この階の増殖するモンスターが増殖できなくなる。", "Prevents any breeders on current level from breeding.");
369 num_repro += MAX_REPRO;
375 if (name) return _("全感知", "Detection");
376 if (desc) return _("近くの全てのモンスター、罠、扉、階段、財宝、そしてアイテムを感知する。", "Detects all monsters, traps, doors, stairs, treasures and items in your vicinity.");
379 POSITION rad = DETECT_RAD_DEFAULT;
381 if (info) return info_radius(rad);
391 if (name) return _("アンデッド消滅", "Annihilate Undead");
392 if (desc) return _("自分の周囲にいるアンデッドを現在の階から消し去る。抵抗されると無効。",
393 "Eliminates all nearby undead monsters, exhausting you. Powerful or unique monsters may be able to resist.");
396 int power = plev + 50;
398 if (info) return info_power(power);
402 mass_genocide_undead(power, TRUE);
408 if (name) return _("千里眼", "Clairvoyance");
409 if (desc) return _("その階全体を永久に照らし、ダンジョン内すべてのアイテムを感知する。", "Maps and lights whole dungeon level. Knows all objects location. And gives telepathy for a while.");
420 if (name) return _("全復活", "Restoration");
421 if (desc) return _("すべてのステータスと経験値を回復する。", "Restores all stats and experience.");
426 (void)restore_all_status();
433 if (name) return _("*体力回復*", "Healing True");
434 if (desc) return _("最強の治癒の魔法で、負傷と朦朧状態も全快する。", "The greatest healing magic. Heals all HP, cut and stun.");
438 if (info) return info_heal(0, 0, heal);
439 if (cast) (void)cure_critical_wounds(heal);
444 if (name) return _("聖なるビジョン", "Holy Vision");
445 if (desc) return _("アイテムの持つ能力を完全に知る。", "*Identifies* an item.");
450 if (!identify_fully(FALSE)) return NULL;
456 if (name) return _("究極の耐性", "Ultimate Resistance");
457 if (desc) return _("一定時間、あらゆる耐性を付け、ACと魔法防御能力を上昇させる。", "Gives ultimate resistance, bonus to AC and speed.");
460 TIME_EFFECT base = (TIME_EFFECT)plev / 2;
462 if (info) return info_duration(base, base);
466 TIME_EFFECT v = randint1(base) + base;
468 set_oppose_acid(v, FALSE);
469 set_oppose_elec(v, FALSE);
470 set_oppose_fire(v, FALSE);
471 set_oppose_cold(v, FALSE);
472 set_oppose_pois(v, FALSE);
473 set_ultimate_res(v, FALSE);