1 #include "cmd-action/cmd-attack.h"
2 #include "cmd-action/cmd-spell.h"
3 #include "cmd/cmd-basic.h"
4 #include "combat/combat-options-type.h"
5 #include "core/stuff-handler.h"
6 #include "dungeon/dungeon.h"
7 #include "effect/effect-characteristics.h"
8 #include "effect/spells-effect-util.h"
9 #include "grid/feature.h"
10 #include "grid/grid.h"
11 #include "io/targeting.h"
12 #include "mind/racial-ninja.h"
13 #include "monster/monster-race-hook.h"
14 #include "monster/monster.h"
15 #include "object-enchant/artifact.h"
16 #include "object-enchant/tr-types.h"
17 #include "player/player-damage.h"
18 #include "player/player-effects.h"
19 #include "player/player-move.h"
20 #include "player/player-status.h"
21 #include "spell/process-effect.h"
22 #include "spell/spells-detection.h"
23 #include "spell/spells-floor.h"
24 #include "spell/spells-type.h"
25 #include "spell/spells-util.h"
26 #include "spell/spells2.h"
27 #include "spell/spells3.h"
28 #include "spell/technic-info-table.h"
29 #include "util/util.h"
30 #include "view/display-main-window.h"
31 #include "world/world.h"
35 * @param caster_ptr プレーヤーへの参照ポインタ
37 * @param mode 処理内容 (SPELL_NAME / SPELL_DESC / SPELL_CAST)
38 * @return SPELL_NAME / SPELL_DESC 時には文字列ポインタを返す。SPELL_CAST時はNULL文字列を返す。
40 concptr do_hissatsu_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type mode)
42 bool name = (mode == SPELL_NAME) ? TRUE : FALSE;
43 bool desc = (mode == SPELL_DESC) ? TRUE : FALSE;
44 bool cast = (mode == SPELL_CAST) ? TRUE : FALSE;
47 PLAYER_LEVEL plev = caster_ptr->lev;
52 if (name) return _("飛飯綱", "Tobi-Izuna");
53 if (desc) return _("2マス離れたところにいるモンスターを攻撃する。", "Attacks a monster two squares away.");
58 if (!get_aim_dir(caster_ptr, &dir)) return NULL;
60 project_hook(caster_ptr, GF_ATTACK, dir, HISSATSU_2, PROJECT_STOP | PROJECT_KILL);
65 if (name) return _("五月雨斬り", "3-Way Attack");
66 if (desc) return _("3方向に対して攻撃する。", "Attacks in 3 directions at one time.");
73 if (!get_direction(caster_ptr, &dir, FALSE, FALSE)) return NULL;
74 if (dir == 5) return NULL;
76 for (cdir = 0; cdir < 8; cdir++)
78 if (cdd[cdir] == dir) break;
81 if (cdir == 8) return NULL;
83 y = caster_ptr->y + ddy_cdd[cdir];
84 x = caster_ptr->x + ddx_cdd[cdir];
85 if (caster_ptr->current_floor_ptr->grid_array[y][x].m_idx)
86 do_cmd_attack(caster_ptr, y, x, 0);
88 msg_print(_("攻撃は空を切った。", "You attack the empty air."));
90 y = caster_ptr->y + ddy_cdd[(cdir + 7) % 8];
91 x = caster_ptr->x + ddx_cdd[(cdir + 7) % 8];
92 if (caster_ptr->current_floor_ptr->grid_array[y][x].m_idx)
93 do_cmd_attack(caster_ptr, y, x, 0);
95 msg_print(_("攻撃は空を切った。", "You attack the empty air."));
97 y = caster_ptr->y + ddy_cdd[(cdir + 1) % 8];
98 x = caster_ptr->x + ddx_cdd[(cdir + 1) % 8];
99 if (caster_ptr->current_floor_ptr->grid_array[y][x].m_idx)
100 do_cmd_attack(caster_ptr, y, x, 0);
102 msg_print(_("攻撃は空を切った。", "You attack the empty air."));
107 if (name) return _("ブーメラン", "Boomerang");
108 if (desc) return _("武器を手元に戻ってくるように投げる。戻ってこないこともある。",
109 "Throws current weapon. It'll return to your hand unless the action failed.");
113 if (!do_cmd_throw(caster_ptr, 1, TRUE, -1)) return NULL;
118 if (name) return _("焔霊", "Burning Strike");
119 if (desc) return _("火炎耐性のないモンスターに大ダメージを与える。", "Attacks a monster with more damage unless it has resistance to fire.");
125 if (!get_direction(caster_ptr, &dir, FALSE, FALSE)) return NULL;
126 if (dir == 5) return NULL;
128 y = caster_ptr->y + ddy[dir];
129 x = caster_ptr->x + ddx[dir];
131 if (caster_ptr->current_floor_ptr->grid_array[y][x].m_idx)
132 do_cmd_attack(caster_ptr, y, x, HISSATSU_FIRE);
135 msg_print(_("その方向にはモンスターはいません。", "There is no monster."));
142 if (name) return _("殺気感知", "Detect Ferocity");
143 if (desc) return _("近くの思考することができるモンスターを感知する。", "Detects all monsters except the mindless in your vicinity.");
147 detect_monsters_mind(caster_ptr, DETECT_RAD_DEFAULT);
152 if (name) return _("みね打ち", "Strike to Stun");
153 if (desc) return _("相手にダメージを与えないが、朦朧とさせる。", "Attempts to stun a monster next to you.");
159 if (!get_direction(caster_ptr, &dir, FALSE, FALSE)) return NULL;
160 if (dir == 5) return NULL;
162 y = caster_ptr->y + ddy[dir];
163 x = caster_ptr->x + ddx[dir];
165 if (caster_ptr->current_floor_ptr->grid_array[y][x].m_idx)
166 do_cmd_attack(caster_ptr, y, x, HISSATSU_MINEUCHI);
169 msg_print(_("その方向にはモンスターはいません。", "There is no monster."));
176 if (name) return _("カウンター", "Counter");
177 if (desc) return _("相手に攻撃されたときに反撃する。反撃するたびにMPを消費。",
178 "Prepares to counterattack. When attacked by a monster, strikes back using SP each time.");
182 if (caster_ptr->riding)
184 msg_print(_("乗馬中には無理だ。", "You cannot do it when riding."));
187 msg_print(_("相手の攻撃に対して身構えた。", "You prepare to counterattack."));
188 caster_ptr->counter = TRUE;
193 if (name) return _("払い抜け", "Harainuke");
194 if (desc) return _("攻撃した後、反対側に抜ける。",
195 "In one action, attacks a monster with your weapons normally and then moves to the space beyond the monster if that space is not blocked.");
201 if (caster_ptr->riding)
203 msg_print(_("乗馬中には無理だ。", "You cannot do it when riding."));
207 if (!get_direction(caster_ptr, &dir, FALSE, FALSE)) return NULL;
209 if (dir == 5) return NULL;
210 y = caster_ptr->y + ddy[dir];
211 x = caster_ptr->x + ddx[dir];
213 if (!caster_ptr->current_floor_ptr->grid_array[y][x].m_idx)
215 msg_print(_("その方向にはモンスターはいません。", "There is no monster."));
219 do_cmd_attack(caster_ptr, y, x, 0);
221 if (!player_can_enter(caster_ptr, caster_ptr->current_floor_ptr->grid_array[y][x].feat, 0) || is_trap(caster_ptr, caster_ptr->current_floor_ptr->grid_array[y][x].feat))
227 if (player_can_enter(caster_ptr, caster_ptr->current_floor_ptr->grid_array[y][x].feat, 0) && !is_trap(caster_ptr, caster_ptr->current_floor_ptr->grid_array[y][x].feat) && !caster_ptr->current_floor_ptr->grid_array[y][x].m_idx)
230 (void)move_player_effect(caster_ptr, y, x, MPE_FORGET_FLOW | MPE_HANDLE_STUFF | MPE_DONT_PICKUP);
236 if (name) return _("サーペンツタン", "Serpent's Tongue");
237 if (desc) return _("毒耐性のないモンスターに大ダメージを与える。", "Attacks a monster with more damage unless it has resistance to poison.");
243 if (!get_direction(caster_ptr, &dir, FALSE, FALSE)) return NULL;
244 if (dir == 5) return NULL;
246 y = caster_ptr->y + ddy[dir];
247 x = caster_ptr->x + ddx[dir];
249 if (caster_ptr->current_floor_ptr->grid_array[y][x].m_idx)
250 do_cmd_attack(caster_ptr, y, x, HISSATSU_POISON);
253 msg_print(_("その方向にはモンスターはいません。", "There is no monster."));
260 if (name) return _("斬魔剣弐の太刀", "Zammaken");
261 if (desc) return _("生命のない邪悪なモンスターに大ダメージを与えるが、他のモンスターには全く効果がない。",
262 "Attacks an evil unliving monster with great damage. Has no effect on other monsters.");
268 if (!get_direction(caster_ptr, &dir, FALSE, FALSE)) return NULL;
269 if (dir == 5) return NULL;
271 y = caster_ptr->y + ddy[dir];
272 x = caster_ptr->x + ddx[dir];
274 if (caster_ptr->current_floor_ptr->grid_array[y][x].m_idx)
275 do_cmd_attack(caster_ptr, y, x, HISSATSU_ZANMA);
278 msg_print(_("その方向にはモンスターはいません。", "There is no monster."));
285 if (name) return _("裂風剣", "Wind Blast");
286 if (desc) return _("攻撃した相手を後方へ吹き飛ばす。", "Attacks an adjacent monster and blows it away.");
292 if (!get_direction(caster_ptr, &dir, FALSE, FALSE)) return NULL;
293 if (dir == 5) return NULL;
295 y = caster_ptr->y + ddy[dir];
296 x = caster_ptr->x + ddx[dir];
298 if (caster_ptr->current_floor_ptr->grid_array[y][x].m_idx)
299 do_cmd_attack(caster_ptr, y, x, 0);
302 msg_print(_("その方向にはモンスターはいません。", "There is no monster."));
305 if (d_info[caster_ptr->dungeon_idx].flags1 & DF1_NO_MELEE)
309 if (caster_ptr->current_floor_ptr->grid_array[y][x].m_idx)
312 POSITION ty = y, tx = x;
313 POSITION oy = y, ox = x;
314 MONSTER_IDX m_idx = caster_ptr->current_floor_ptr->grid_array[y][x].m_idx;
315 monster_type *m_ptr = &caster_ptr->current_floor_ptr->m_list[m_idx];
316 GAME_TEXT m_name[MAX_NLEN];
318 monster_desc(caster_ptr, m_name, m_ptr, 0);
320 for (i = 0; i < 5; i++)
324 if (is_cave_empty_bold(caster_ptr, y, x))
331 if ((ty != oy) || (tx != ox))
333 msg_format(_("%sを吹き飛ばした!", "You blow %s away!"), m_name);
334 caster_ptr->current_floor_ptr->grid_array[oy][ox].m_idx = 0;
335 caster_ptr->current_floor_ptr->grid_array[ty][tx].m_idx = m_idx;
339 update_monster(caster_ptr, m_idx, TRUE);
340 lite_spot(caster_ptr, oy, ox);
341 lite_spot(caster_ptr, ty, tx);
343 if (r_info[m_ptr->r_idx].flags7 & (RF7_LITE_MASK | RF7_DARK_MASK))
344 caster_ptr->update |= (PU_MON_LITE);
351 if (name) return _("刀匠の目利き", "Judge");
352 if (desc) return _("武器・防具を1つ識別する。レベル45以上で武器・防具の能力を完全に知ることができる。",
353 "Identifies a weapon or armor. *Identifies* the item at level 45.");
359 if (!identify_fully(caster_ptr, TRUE, 0)) return NULL;
363 if (!ident_spell(caster_ptr, TRUE, 0)) return NULL;
369 if (name) return _("破岩斬", "Rock Smash");
370 if (desc) return _("岩を壊し、岩石系のモンスターに大ダメージを与える。", "Breaks rock or greatly damages a monster made of rocks.");
376 if (!get_direction(caster_ptr, &dir, FALSE, FALSE)) return NULL;
377 if (dir == 5) return NULL;
379 y = caster_ptr->y + ddy[dir];
380 x = caster_ptr->x + ddx[dir];
382 if (caster_ptr->current_floor_ptr->grid_array[y][x].m_idx)
383 do_cmd_attack(caster_ptr, y, x, HISSATSU_HAGAN);
385 if (!cave_have_flag_bold(caster_ptr->current_floor_ptr, y, x, FF_HURT_ROCK)) break;
387 /* Destroy the feature */
388 cave_alter_feat(caster_ptr, y, x, FF_HURT_ROCK);
389 caster_ptr->update |= (PU_FLOW);
394 if (name) return _("乱れ雪月花", "Midare-Setsugekka");
395 if (desc) return _("攻撃回数が増え、冷気耐性のないモンスターに大ダメージを与える。",
396 "Attacks a monster with an increased number of attacks and more damage unless it has resistance to cold.");
402 if (!get_direction(caster_ptr, &dir, FALSE, FALSE)) return NULL;
403 if (dir == 5) return NULL;
405 y = caster_ptr->y + ddy[dir];
406 x = caster_ptr->x + ddx[dir];
408 if (caster_ptr->current_floor_ptr->grid_array[y][x].m_idx)
409 do_cmd_attack(caster_ptr, y, x, HISSATSU_COLD);
412 msg_print(_("その方向にはモンスターはいません。", "There is no monster."));
419 if (name) return _("急所突き", "Spot Aiming");
420 if (desc) return _("モンスターを一撃で倒す攻撃を繰り出す。失敗すると1点しかダメージを与えられない。",
421 "Attempts to kill a monster instantly. If that fails, causes only 1HP of damage.");
427 if (!get_direction(caster_ptr, &dir, FALSE, FALSE)) return NULL;
428 if (dir == 5) return NULL;
430 y = caster_ptr->y + ddy[dir];
431 x = caster_ptr->x + ddx[dir];
433 if (caster_ptr->current_floor_ptr->grid_array[y][x].m_idx)
434 do_cmd_attack(caster_ptr, y, x, HISSATSU_KYUSHO);
437 msg_print(_("その方向にはモンスターはいません。", "There is no monster."));
444 if (name) return _("魔神斬り", "Majingiri");
445 if (desc) return _("会心の一撃で攻撃する。攻撃がかわされやすい。",
446 "Attempts to attack with a critical hit, but this attack is easy to evade for a monster.");
452 if (!get_direction(caster_ptr, &dir, FALSE, FALSE)) return NULL;
453 if (dir == 5) return NULL;
455 y = caster_ptr->y + ddy[dir];
456 x = caster_ptr->x + ddx[dir];
458 if (caster_ptr->current_floor_ptr->grid_array[y][x].m_idx)
459 do_cmd_attack(caster_ptr, y, x, HISSATSU_MAJIN);
462 msg_print(_("その方向にはモンスターはいません。", "There is no monster."));
469 if (name) return _("捨て身", "Desperate Attack");
470 if (desc) return _("強力な攻撃を繰り出す。次のターンまでの間、食らうダメージが増える。",
471 "Attacks with all of your power, but all damage you take will be doubled for one turn.");
477 if (!get_direction(caster_ptr, &dir, FALSE, FALSE)) return NULL;
478 if (dir == 5) return NULL;
480 y = caster_ptr->y + ddy[dir];
481 x = caster_ptr->x + ddx[dir];
483 if (caster_ptr->current_floor_ptr->grid_array[y][x].m_idx)
484 do_cmd_attack(caster_ptr, y, x, HISSATSU_SUTEMI);
487 msg_print(_("その方向にはモンスターはいません。", "There is no monster."));
490 caster_ptr->sutemi = TRUE;
495 if (name) return _("雷撃鷲爪斬", "Lightning Eagle");
496 if (desc) return _("電撃耐性のないモンスターに非常に大きいダメージを与える。",
497 "Attacks a monster with more damage unless it has resistance to electricity.");
503 if (!get_direction(caster_ptr, &dir, FALSE, FALSE)) return NULL;
504 if (dir == 5) return NULL;
506 y = caster_ptr->y + ddy[dir];
507 x = caster_ptr->x + ddx[dir];
509 if (caster_ptr->current_floor_ptr->grid_array[y][x].m_idx)
510 do_cmd_attack(caster_ptr, y, x, HISSATSU_ELEC);
513 msg_print(_("その方向にはモンスターはいません。", "There is no monster."));
520 if (name) return _("入身", "Rush Attack");
521 if (desc) return _("素早く相手に近寄り攻撃する。", "Steps close to a monster and attacks at the same time.");
525 if (!rush_attack(caster_ptr, NULL)) return NULL;
530 if (name) return _("赤流渦", "Bloody Maelstrom");
531 if (desc) return _("自分自身も傷を作りつつ、その傷が深いほど大きい威力で全方向の敵を攻撃できる。生きていないモンスターには効果がない。",
532 "Attacks all adjacent monsters with power corresponding to your cuts. Then increases your cuts. Has no effect on unliving monsters.");
536 POSITION y = 0, x = 0;
541 if (caster_ptr->cut < 300)
542 set_cut(caster_ptr,caster_ptr->cut + 300);
544 set_cut(caster_ptr,caster_ptr->cut * 2);
546 for (dir = 0; dir < 8; dir++)
548 y = caster_ptr->y + ddy_ddd[dir];
549 x = caster_ptr->x + ddx_ddd[dir];
550 g_ptr = &caster_ptr->current_floor_ptr->grid_array[y][x];
551 m_ptr = &caster_ptr->current_floor_ptr->m_list[g_ptr->m_idx];
553 /* Hack -- attack monsters */
554 if (g_ptr->m_idx && (m_ptr->ml || cave_have_flag_bold(caster_ptr->current_floor_ptr, y, x, FF_PROJECT)))
556 if (!monster_living(m_ptr->r_idx))
558 GAME_TEXT m_name[MAX_NLEN];
560 monster_desc(caster_ptr, m_name, m_ptr, 0);
561 msg_format(_("%sには効果がない!", "%s is unharmed!"), m_name);
563 else do_cmd_attack(caster_ptr, y, x, HISSATSU_SEKIRYUKA);
570 if (name) return _("激震撃", "Earthquake Blow");
571 if (desc) return _("地震を起こす。", "Shakes dungeon structure, and results in random swapping of floors and walls.");
577 if (!get_direction(caster_ptr, &dir, FALSE, FALSE)) return NULL;
578 if (dir == 5) return NULL;
580 y = caster_ptr->y + ddy[dir];
581 x = caster_ptr->x + ddx[dir];
583 if (caster_ptr->current_floor_ptr->grid_array[y][x].m_idx)
584 do_cmd_attack(caster_ptr, y, x, HISSATSU_QUAKE);
586 earthquake(caster_ptr, caster_ptr->y, caster_ptr->x, 10, 0);
591 if (name) return _("地走り", "Crack");
592 if (desc) return _("衝撃波のビームを放つ。", "Fires a shock wave as a beam.");
596 int total_damage = 0, basedam, i;
597 BIT_FLAGS flgs[TR_FLAG_SIZE];
599 if (!get_aim_dir(caster_ptr, &dir)) return NULL;
600 msg_print(_("武器を大きく振り下ろした。", "You swing your weapon downward."));
601 for (i = 0; i < 2; i++)
605 if (!has_melee_weapon(caster_ptr, INVEN_RARM + i)) break;
606 o_ptr = &caster_ptr->inventory_list[INVEN_RARM + i];
607 basedam = (o_ptr->dd * (o_ptr->ds + 1)) * 50;
608 damage = o_ptr->to_d * 100;
609 object_flags(o_ptr, flgs);
610 if ((o_ptr->name1 == ART_VORPAL_BLADE) || (o_ptr->name1 == ART_CHAINSWORD))
616 else if (have_flag(flgs, TR_VORPAL))
618 /* vorpal flag only */
623 damage *= caster_ptr->num_blow[i];
624 total_damage += damage / 200;
625 if (i) total_damage = total_damage * 7 / 10;
627 fire_beam(caster_ptr, GF_FORCE, dir, total_damage);
632 if (name) return _("気迫の雄叫び", "War Cry");
633 if (desc) return _("視界内の全モンスターに対して轟音の攻撃を行う。さらに、近くにいるモンスターを怒らせる。",
634 "Damages all monsters in sight with sound. Aggravates nearby monsters.");
638 msg_print(_("雄叫びをあげた!", "You roar!"));
639 project_all_los(caster_ptr, GF_SOUND, randint1(plev * 3));
640 aggravate_monsters(caster_ptr, 0);
645 if (name) return _("無双三段", "Musou-Sandan");
646 if (desc) return _("強力な3段攻撃を繰り出す。", "Attacks with three powerful strikes.");
652 if (!get_direction(caster_ptr, &dir, FALSE, FALSE)) return NULL;
653 if (dir == 5) return NULL;
655 for (i = 0; i < 3; i++)
663 y = caster_ptr->y + ddy[dir];
664 x = caster_ptr->x + ddx[dir];
665 g_ptr = &caster_ptr->current_floor_ptr->grid_array[y][x];
668 do_cmd_attack(caster_ptr, y, x, HISSATSU_3DAN);
671 msg_print(_("その方向にはモンスターはいません。", "There is no monster."));
675 if (d_info[caster_ptr->dungeon_idx].flags1 & DF1_NO_MELEE)
680 /* Monster is dead? */
681 if (!g_ptr->m_idx) break;
685 m_idx = g_ptr->m_idx;
686 m_ptr = &caster_ptr->current_floor_ptr->m_list[m_idx];
688 /* Monster cannot move back? */
689 if (!monster_can_enter(caster_ptr, ny, nx, &r_info[m_ptr->r_idx], 0))
692 if (i < 2) msg_print(NULL);
697 caster_ptr->current_floor_ptr->grid_array[ny][nx].m_idx = m_idx;
701 update_monster(caster_ptr, m_idx, TRUE);
703 /* Redraw the old spot */
704 lite_spot(caster_ptr, y, x);
706 /* Redraw the new spot */
707 lite_spot(caster_ptr, ny, nx);
709 /* Player can move forward? */
710 if (player_can_enter(caster_ptr, g_ptr->feat, 0))
712 if (!move_player_effect(caster_ptr, y, x, MPE_FORGET_FLOW | MPE_HANDLE_STUFF | MPE_DONT_PICKUP)) break;
720 if (i < 2) msg_print(NULL);
726 if (name) return _("吸血鬼の牙", "Vampire's Fang");
727 if (desc) return _("攻撃した相手の体力を吸いとり、自分の体力を回復させる。生命を持たないモンスターには通じない。",
728 "Attacks with vampiric strikes which absorb HP from a monster and heal you. Has no effect on unliving monsters.");
734 if (!get_direction(caster_ptr, &dir, FALSE, FALSE)) return NULL;
735 if (dir == 5) return NULL;
737 y = caster_ptr->y + ddy[dir];
738 x = caster_ptr->x + ddx[dir];
740 if (caster_ptr->current_floor_ptr->grid_array[y][x].m_idx)
741 do_cmd_attack(caster_ptr, y, x, HISSATSU_DRAIN);
744 msg_print(_("その方向にはモンスターはいません。", "There is no monster."));
751 if (name) return _("幻惑", "Moon Dazzling");
752 if (desc) return _("視界内の起きている全モンスターに朦朧、混乱、眠りを与えようとする。", "Attempts to stun, confuse and put to sleep all waking monsters.");
756 msg_print(_("武器を不規則に揺らした...", "You irregularly wave your weapon..."));
757 project_all_los(caster_ptr, GF_ENGETSU, plev * 4);
758 project_all_los(caster_ptr, GF_ENGETSU, plev * 4);
759 project_all_los(caster_ptr, GF_ENGETSU, plev * 4);
764 if (name) return _("百人斬り", "Hundred Slaughter");
765 if (desc) return _("連続して入身でモンスターを攻撃する。攻撃するたびにMPを消費。MPがなくなるか、モンスターを倒せなかったら百人斬りは終了する。",
766 "Performs a series of rush attacks. The series continues as long as the attacked monster dies and you have sufficient SP.");
770 const int mana_cost_per_monster = 8;
776 if (!rush_attack(caster_ptr, &mdeath)) break;
779 /* Reserve needed mana point */
780 caster_ptr->csp -= technic_info[REALM_HISSATSU - MIN_TECHNIC][26].smana;
784 caster_ptr->csp -= mana_cost_per_monster;
789 caster_ptr->redraw |= PR_MANA;
790 handle_stuff(caster_ptr);
791 } while (caster_ptr->csp > mana_cost_per_monster);
793 if (is_new) return NULL;
795 /* Restore reserved mana */
796 caster_ptr->csp += technic_info[REALM_HISSATSU - MIN_TECHNIC][26].smana;
801 if (name) return _("天翔龍閃", "Dragonic Flash");
802 if (desc) return _("視界内の場所を指定して、その場所と自分の間にいる全モンスターを攻撃し、その場所に移動する。",
803 "Runs toward given location while attacking all monsters on the path.");
809 if (!tgt_pt(caster_ptr, &x, &y)) return NULL;
811 if (!cave_player_teleportable_bold(caster_ptr, y, x, TELEPORT_SPONTANEOUS) ||
812 (distance(y, x, caster_ptr->y, caster_ptr->x) > MAX_SIGHT / 2) ||
813 !projectable(caster_ptr, caster_ptr->y, caster_ptr->x, y, x))
815 msg_print(_("失敗!", "You cannot move to that place!"));
818 if (caster_ptr->anti_tele)
820 msg_print(_("不思議な力がテレポートを防いだ!", "A mysterious force prevents you from teleporting!"));
823 project(caster_ptr, 0, 0, y, x, HISSATSU_ISSEN, GF_ATTACK, PROJECT_BEAM | PROJECT_KILL, -1);
824 teleport_player_to(caster_ptr, y, x, TELEPORT_SPONTANEOUS);
829 if (name) return _("二重の剣撃", "Twin Slash");
830 if (desc) return _("1ターンで2度攻撃を行う。", "double attacks at a time.");
836 if (!get_rep_dir(caster_ptr, &dir, FALSE)) return NULL;
838 y = caster_ptr->y + ddy[dir];
839 x = caster_ptr->x + ddx[dir];
841 if (caster_ptr->current_floor_ptr->grid_array[y][x].m_idx)
843 do_cmd_attack(caster_ptr, y, x, 0);
844 if (caster_ptr->current_floor_ptr->grid_array[y][x].m_idx)
846 handle_stuff(caster_ptr);
847 do_cmd_attack(caster_ptr, y, x, 0);
852 msg_print(_("その方向にはモンスターはいません。", "You don't see any monster in this direction"));
859 if (name) return _("虎伏絶刀勢", "Kofuku-Zettousei");
860 if (desc) return _("強力な攻撃を行い、近くの場所にも効果が及ぶ。", "Performs a powerful attack which even affects nearby monsters.");
864 int total_damage = 0, basedam, i;
866 BIT_FLAGS flgs[TR_FLAG_SIZE];
869 if (!get_direction(caster_ptr, &dir, FALSE, FALSE)) return NULL;
870 if (dir == 5) return NULL;
872 y = caster_ptr->y + ddy[dir];
873 x = caster_ptr->x + ddx[dir];
875 if (d_info[caster_ptr->dungeon_idx].flags1 & DF1_NO_MELEE)
877 msg_print(_("なぜか攻撃することができない。", "Something prevents you from attacking."));
880 msg_print(_("武器を大きく振り下ろした。", "You swing your weapon downward."));
881 for (i = 0; i < 2; i++)
884 if (!has_melee_weapon(caster_ptr, INVEN_RARM + i)) break;
885 o_ptr = &caster_ptr->inventory_list[INVEN_RARM + i];
886 basedam = (o_ptr->dd * (o_ptr->ds + 1)) * 50;
887 damage = o_ptr->to_d * 100;
888 object_flags(o_ptr, flgs);
889 if ((o_ptr->name1 == ART_VORPAL_BLADE) || (o_ptr->name1 == ART_CHAINSWORD))
895 else if (have_flag(flgs, TR_VORPAL))
897 /* vorpal flag only */
902 damage += caster_ptr->to_d[i] * 100;
903 damage *= caster_ptr->num_blow[i];
904 total_damage += (damage / 100);
906 project(caster_ptr, 0, (cave_have_flag_bold(caster_ptr->current_floor_ptr, y, x, FF_PROJECT) ? 5 : 0), y, x, total_damage * 3 / 2, GF_METEOR, PROJECT_KILL | PROJECT_JUMP | PROJECT_ITEM, -1);
911 if (name) return _("慶雲鬼忍剣", "Keiun-Kininken");
912 if (desc) return _("自分もダメージをくらうが、相手に非常に大きなダメージを与える。アンデッドには特に効果がある。",
913 "Attacks a monster with extremely powerful damage, but you also take some damage. Hurts an undead monster greatly.");
919 if (!get_direction(caster_ptr, &dir, FALSE, FALSE)) return NULL;
920 if (dir == 5) return NULL;
922 y = caster_ptr->y + ddy[dir];
923 x = caster_ptr->x + ddx[dir];
925 if (caster_ptr->current_floor_ptr->grid_array[y][x].m_idx)
926 do_cmd_attack(caster_ptr, y, x, HISSATSU_UNDEAD);
929 msg_print(_("その方向にはモンスターはいません。", "There is no monster."));
932 take_hit(caster_ptr, DAMAGE_NOESCAPE, 100 + randint1(100), _("慶雲鬼忍剣を使った衝撃", "exhaustion on using Keiun-Kininken"), -1);
937 if (name) return _("切腹", "Harakiri");
938 if (desc) return _("「武士道とは、死ぬことと見つけたり。」", "'Bushido, the way of warriors, is found in death'");
943 if (!get_check(_("本当に自殺しますか?", "Do you really want to commit suicide? "))) return NULL;
944 /* Special Verification for suicide */
945 prt(_("確認のため '@' を押して下さい。", "Please verify SUICIDE by typing the '@' sign: "), 0, 0);
950 if (i != '@') return NULL;
951 if (current_world_ptr->total_winner)
953 take_hit(caster_ptr, DAMAGE_FORCE, 9999, "Seppuku", -1);
954 current_world_ptr->total_winner = TRUE;
958 msg_print(_("武士道とは、死ぬことと見つけたり。", "The meaning of bushido is found in death."));
959 take_hit(caster_ptr, DAMAGE_FORCE, 9999, "Seppuku", -1);