1 #include "realm/realm-hissatsu.h"
2 #include "artifact/fixed-art-types.h"
3 #include "cmd-action/cmd-attack.h"
4 #include "cmd-action/cmd-spell.h"
5 #include "cmd-item/cmd-throw.h"
6 #include "combat/combat-options-type.h"
7 #include "core/asking-player.h"
8 #include "core/player-redraw-types.h"
9 #include "core/player-update-types.h"
10 #include "core/stuff-handler.h"
11 #include "dungeon/dungeon-flag-types.h"
12 #include "dungeon/dungeon.h"
13 #include "effect/effect-characteristics.h"
14 #include "effect/effect-processor.h"
15 #include "effect/spells-effect-util.h"
16 #include "floor/cave.h"
17 #include "grid/feature-flag-types.h"
18 #include "grid/grid.h"
19 #include "inventory/inventory-slot-types.h"
20 #include "io/input-key-acceptor.h"
21 #include "io/input-key-requester.h"
22 #include "mind/mind-ninja.h"
23 #include "monster-race/monster-race-hook.h"
24 #include "monster-race/monster-race.h"
25 #include "monster-race/race-flags7.h"
26 #include "monster/monster-describer.h"
27 #include "monster/monster-info.h"
28 #include "monster/monster-update.h"
29 #include "object-enchant/tr-types.h"
30 #include "object/object-flags.h"
31 #include "player/player-damage.h"
32 #include "player/player-move.h"
33 #include "player/player-status.h"
34 #include "spell-kind/earthquake.h"
35 #include "spell-kind/spells-detection.h"
36 #include "spell-kind/spells-launcher.h"
37 #include "spell-kind/spells-perception.h"
38 #include "spell-kind/spells-sight.h"
39 #include "spell-kind/spells-teleport.h"
40 #include "spell/spell-types.h"
41 #include "spell/technic-info-table.h"
42 #include "status/bad-status-setter.h"
43 #include "system/floor-type-definition.h"
44 #include "target/grid-selector.h"
45 #include "target/projection-path-calculator.h"
46 #include "target/target-getter.h"
47 #include "term/screen-processor.h"
48 #include "util/bit-flags-calculator.h"
49 #include "view/display-messages.h"
50 #include "world/world.h"
54 * @param caster_ptr プレーヤーへの参照ポインタ
56 * @param mode 処理内容 (SPELL_NAME / SPELL_DESC / SPELL_CAST)
57 * @return SPELL_NAME / SPELL_DESC 時には文字列ポインタを返す。SPELL_CAST時はNULL文字列を返す。
59 concptr do_hissatsu_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type mode)
61 bool name = (mode == SPELL_NAME) ? TRUE : FALSE;
62 bool desc = (mode == SPELL_DESC) ? TRUE : FALSE;
63 bool cast = (mode == SPELL_CAST) ? TRUE : FALSE;
66 PLAYER_LEVEL plev = caster_ptr->lev;
71 return _("飛飯綱", "Tobi-Izuna");
73 return _("2マス離れたところにいるモンスターを攻撃する。", "Attacks a monster two squares away.");
77 if (!get_aim_dir(caster_ptr, &dir))
80 project_hook(caster_ptr, GF_ATTACK, dir, HISSATSU_2, PROJECT_STOP | PROJECT_KILL);
86 return _("五月雨斬り", "3-Way Attack");
88 return _("3方向に対して攻撃する。", "Attacks in 3 directions at one time.");
94 if (!get_direction(caster_ptr, &dir, FALSE, FALSE))
99 for (cdir = 0; cdir < 8; cdir++) {
100 if (cdd[cdir] == dir)
107 y = caster_ptr->y + ddy_cdd[cdir];
108 x = caster_ptr->x + ddx_cdd[cdir];
109 if (caster_ptr->current_floor_ptr->grid_array[y][x].m_idx)
110 do_cmd_attack(caster_ptr, y, x, 0);
112 msg_print(_("攻撃は空を切った。", "You attack the empty air."));
114 y = caster_ptr->y + ddy_cdd[(cdir + 7) % 8];
115 x = caster_ptr->x + ddx_cdd[(cdir + 7) % 8];
116 if (caster_ptr->current_floor_ptr->grid_array[y][x].m_idx)
117 do_cmd_attack(caster_ptr, y, x, 0);
119 msg_print(_("攻撃は空を切った。", "You attack the empty air."));
121 y = caster_ptr->y + ddy_cdd[(cdir + 1) % 8];
122 x = caster_ptr->x + ddx_cdd[(cdir + 1) % 8];
123 if (caster_ptr->current_floor_ptr->grid_array[y][x].m_idx)
124 do_cmd_attack(caster_ptr, y, x, 0);
126 msg_print(_("攻撃は空を切った。", "You attack the empty air."));
132 return _("ブーメラン", "Boomerang");
135 "武器を手元に戻ってくるように投げる。戻ってこないこともある。", "Throws current weapon. It'll return to your hand unless the action failed.");
138 if (!do_cmd_throw(caster_ptr, 1, TRUE, -1))
145 return _("焔霊", "Burning Strike");
147 return _("火炎耐性のないモンスターに大ダメージを与える。", "Attacks a monster with more damage unless it has resistance to fire.");
152 if (!get_direction(caster_ptr, &dir, FALSE, FALSE))
157 y = caster_ptr->y + ddy[dir];
158 x = caster_ptr->x + ddx[dir];
160 if (caster_ptr->current_floor_ptr->grid_array[y][x].m_idx)
161 do_cmd_attack(caster_ptr, y, x, HISSATSU_FIRE);
163 msg_print(_("その方向にはモンスターはいません。", "There is no monster."));
171 return _("殺気感知", "Detect Ferocity");
173 return _("近くの思考することができるモンスターを感知する。", "Detects all monsters except the mindless in your vicinity.");
176 detect_monsters_mind(caster_ptr, DETECT_RAD_DEFAULT);
182 return _("みね打ち", "Strike to Stun");
184 return _("相手にダメージを与えないが、朦朧とさせる。", "Attempts to stun a monster next to you.");
189 if (!get_direction(caster_ptr, &dir, FALSE, FALSE))
194 y = caster_ptr->y + ddy[dir];
195 x = caster_ptr->x + ddx[dir];
197 if (caster_ptr->current_floor_ptr->grid_array[y][x].m_idx)
198 do_cmd_attack(caster_ptr, y, x, HISSATSU_MINEUCHI);
200 msg_print(_("その方向にはモンスターはいません。", "There is no monster."));
208 return _("カウンター", "Counter");
210 return _("相手に攻撃されたときに反撃する。反撃するたびにMPを消費。",
211 "Prepares to counterattack. When attacked by a monster, strikes back using SP each time.");
214 if (caster_ptr->riding) {
215 msg_print(_("乗馬中には無理だ。", "You cannot do it when riding."));
218 msg_print(_("相手の攻撃に対して身構えた。", "You prepare to counterattack."));
219 caster_ptr->counter = TRUE;
225 return _("払い抜け", "Harainuke");
227 return _("攻撃した後、反対側に抜ける。",
228 "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.");
233 if (caster_ptr->riding) {
234 msg_print(_("乗馬中には無理だ。", "You cannot do it when riding."));
238 if (!get_direction(caster_ptr, &dir, FALSE, FALSE))
243 y = caster_ptr->y + ddy[dir];
244 x = caster_ptr->x + ddx[dir];
246 if (!caster_ptr->current_floor_ptr->grid_array[y][x].m_idx) {
247 msg_print(_("その方向にはモンスターはいません。", "There is no monster."));
251 do_cmd_attack(caster_ptr, y, x, 0);
253 if (!player_can_enter(caster_ptr, caster_ptr->current_floor_ptr->grid_array[y][x].feat, 0)
254 || is_trap(caster_ptr, caster_ptr->current_floor_ptr->grid_array[y][x].feat))
260 if (player_can_enter(caster_ptr, caster_ptr->current_floor_ptr->grid_array[y][x].feat, 0)
261 && !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) {
263 (void)move_player_effect(caster_ptr, y, x, MPE_FORGET_FLOW | MPE_HANDLE_STUFF | MPE_DONT_PICKUP);
270 return _("サーペンツタン", "Serpent's Tongue");
272 return _("毒耐性のないモンスターに大ダメージを与える。", "Attacks a monster with more damage unless it has resistance to poison.");
277 if (!get_direction(caster_ptr, &dir, FALSE, FALSE))
282 y = caster_ptr->y + ddy[dir];
283 x = caster_ptr->x + ddx[dir];
285 if (caster_ptr->current_floor_ptr->grid_array[y][x].m_idx)
286 do_cmd_attack(caster_ptr, y, x, HISSATSU_POISON);
288 msg_print(_("その方向にはモンスターはいません。", "There is no monster."));
296 return _("斬魔剣弐の太刀", "Zammaken");
298 return _("生命のない邪悪なモンスターに大ダメージを与えるが、他のモンスターには全く効果がない。",
299 "Attacks an evil unliving monster with great damage. Has no effect on other monsters.");
304 if (!get_direction(caster_ptr, &dir, FALSE, FALSE))
309 y = caster_ptr->y + ddy[dir];
310 x = caster_ptr->x + ddx[dir];
312 if (caster_ptr->current_floor_ptr->grid_array[y][x].m_idx)
313 do_cmd_attack(caster_ptr, y, x, HISSATSU_ZANMA);
315 msg_print(_("その方向にはモンスターはいません。", "There is no monster."));
323 return _("裂風剣", "Wind Blast");
325 return _("攻撃した相手を後方へ吹き飛ばす。", "Attacks an adjacent monster and blows it away.");
330 if (!get_direction(caster_ptr, &dir, FALSE, FALSE))
335 y = caster_ptr->y + ddy[dir];
336 x = caster_ptr->x + ddx[dir];
338 if (caster_ptr->current_floor_ptr->grid_array[y][x].m_idx)
339 do_cmd_attack(caster_ptr, y, x, 0);
341 msg_print(_("その方向にはモンスターはいません。", "There is no monster."));
344 if (d_info[caster_ptr->dungeon_idx].flags1 & DF1_NO_MELEE) {
347 if (caster_ptr->current_floor_ptr->grid_array[y][x].m_idx) {
349 POSITION ty = y, tx = x;
350 POSITION oy = y, ox = x;
351 MONSTER_IDX m_idx = caster_ptr->current_floor_ptr->grid_array[y][x].m_idx;
352 monster_type *m_ptr = &caster_ptr->current_floor_ptr->m_list[m_idx];
353 GAME_TEXT m_name[MAX_NLEN];
355 monster_desc(caster_ptr, m_name, m_ptr, 0);
357 for (i = 0; i < 5; i++) {
360 if (is_cave_empty_bold(caster_ptr, y, x)) {
366 if ((ty != oy) || (tx != ox)) {
367 msg_format(_("%sを吹き飛ばした!", "You blow %s away!"), m_name);
368 caster_ptr->current_floor_ptr->grid_array[oy][ox].m_idx = 0;
369 caster_ptr->current_floor_ptr->grid_array[ty][tx].m_idx = m_idx;
373 update_monster(caster_ptr, m_idx, TRUE);
374 lite_spot(caster_ptr, oy, ox);
375 lite_spot(caster_ptr, ty, tx);
377 if (r_info[m_ptr->r_idx].flags7 & (RF7_LITE_MASK | RF7_DARK_MASK))
378 caster_ptr->update |= (PU_MON_LITE);
386 return _("刀匠の目利き", "Judge");
388 return _("武器・防具を1つ識別する。レベル45以上で武器・防具の能力を完全に知ることができる。",
389 "Identifies a weapon or armor. *Identifies* the item at level 45.");
393 if (!identify_fully(caster_ptr, TRUE, 0))
396 if (!ident_spell(caster_ptr, TRUE, 0))
404 return _("破岩斬", "Rock Smash");
406 return _("岩を壊し、岩石系のモンスターに大ダメージを与える。", "Breaks rock or greatly damages a monster made of rocks.");
411 if (!get_direction(caster_ptr, &dir, FALSE, FALSE))
416 y = caster_ptr->y + ddy[dir];
417 x = caster_ptr->x + ddx[dir];
419 if (caster_ptr->current_floor_ptr->grid_array[y][x].m_idx)
420 do_cmd_attack(caster_ptr, y, x, HISSATSU_HAGAN);
422 if (!cave_has_flag_bold(caster_ptr->current_floor_ptr, y, x, FF_HURT_ROCK))
425 /* Destroy the feature */
426 cave_alter_feat(caster_ptr, y, x, FF_HURT_ROCK);
427 caster_ptr->update |= (PU_FLOW);
433 return _("乱れ雪月花", "Midare-Setsugekka");
435 return _("攻撃回数が増え、冷気耐性のないモンスターに大ダメージを与える。",
436 "Attacks a monster with an increased number of attacks and more damage unless it has resistance to cold.");
441 if (!get_direction(caster_ptr, &dir, FALSE, FALSE))
446 y = caster_ptr->y + ddy[dir];
447 x = caster_ptr->x + ddx[dir];
449 if (caster_ptr->current_floor_ptr->grid_array[y][x].m_idx)
450 do_cmd_attack(caster_ptr, y, x, HISSATSU_COLD);
452 msg_print(_("その方向にはモンスターはいません。", "There is no monster."));
460 return _("急所突き", "Spot Aiming");
462 return _("モンスターを一撃で倒す攻撃を繰り出す。失敗すると1点しかダメージを与えられない。",
463 "Attempts to kill a monster instantly. If that fails, causes only 1HP of damage.");
468 if (!get_direction(caster_ptr, &dir, FALSE, FALSE))
473 y = caster_ptr->y + ddy[dir];
474 x = caster_ptr->x + ddx[dir];
476 if (caster_ptr->current_floor_ptr->grid_array[y][x].m_idx)
477 do_cmd_attack(caster_ptr, y, x, HISSATSU_KYUSHO);
479 msg_print(_("その方向にはモンスターはいません。", "There is no monster."));
487 return _("魔神斬り", "Majingiri");
489 return _("会心の一撃で攻撃する。攻撃がかわされやすい。", "Attempts to attack with a critical hit, but this attack is easy to evade for a monster.");
494 if (!get_direction(caster_ptr, &dir, FALSE, FALSE))
499 y = caster_ptr->y + ddy[dir];
500 x = caster_ptr->x + ddx[dir];
502 if (caster_ptr->current_floor_ptr->grid_array[y][x].m_idx)
503 do_cmd_attack(caster_ptr, y, x, HISSATSU_MAJIN);
505 msg_print(_("その方向にはモンスターはいません。", "There is no monster."));
513 return _("捨て身", "Desperate Attack");
515 return _("強力な攻撃を繰り出す。次のターンまでの間、食らうダメージが増える。",
516 "Attacks with all of your power, but all damage you take will be doubled for one turn.");
521 if (!get_direction(caster_ptr, &dir, FALSE, FALSE))
526 y = caster_ptr->y + ddy[dir];
527 x = caster_ptr->x + ddx[dir];
529 if (caster_ptr->current_floor_ptr->grid_array[y][x].m_idx)
530 do_cmd_attack(caster_ptr, y, x, HISSATSU_SUTEMI);
532 msg_print(_("その方向にはモンスターはいません。", "There is no monster."));
535 caster_ptr->sutemi = TRUE;
541 return _("雷撃鷲爪斬", "Lightning Eagle");
543 return _("電撃耐性のないモンスターに非常に大きいダメージを与える。", "Attacks a monster with more damage unless it has resistance to electricity.");
548 if (!get_direction(caster_ptr, &dir, FALSE, FALSE))
553 y = caster_ptr->y + ddy[dir];
554 x = caster_ptr->x + ddx[dir];
556 if (caster_ptr->current_floor_ptr->grid_array[y][x].m_idx)
557 do_cmd_attack(caster_ptr, y, x, HISSATSU_ELEC);
559 msg_print(_("その方向にはモンスターはいません。", "There is no monster."));
567 return _("入身", "Rush Attack");
569 return _("素早く相手に近寄り攻撃する。", "Steps close to a monster and attacks at the same time.");
572 if (!rush_attack(caster_ptr, NULL))
579 return _("赤流渦", "Bloody Maelstrom");
581 return _("自分自身も傷を作りつつ、その傷が深いほど大きい威力で全方向の敵を攻撃できる。生きていないモンスターには効果がない。",
582 "Attacks all adjacent monsters with power corresponding to your cuts. Then increases your cuts. Has no effect on unliving monsters.");
585 POSITION y = 0, x = 0;
590 if (caster_ptr->cut < 300)
591 set_cut(caster_ptr, caster_ptr->cut + 300);
593 set_cut(caster_ptr, caster_ptr->cut * 2);
595 for (dir = 0; dir < 8; dir++) {
596 y = caster_ptr->y + ddy_ddd[dir];
597 x = caster_ptr->x + ddx_ddd[dir];
598 g_ptr = &caster_ptr->current_floor_ptr->grid_array[y][x];
599 m_ptr = &caster_ptr->current_floor_ptr->m_list[g_ptr->m_idx];
601 /* Hack -- attack monsters */
602 if (g_ptr->m_idx && (m_ptr->ml || cave_has_flag_bold(caster_ptr->current_floor_ptr, y, x, FF_PROJECT))) {
603 if (!monster_living(m_ptr->r_idx)) {
604 GAME_TEXT m_name[MAX_NLEN];
606 monster_desc(caster_ptr, m_name, m_ptr, 0);
607 msg_format(_("%sには効果がない!", "%s is unharmed!"), m_name);
609 do_cmd_attack(caster_ptr, y, x, HISSATSU_SEKIRYUKA);
617 return _("激震撃", "Earthquake Blow");
619 return _("地震を起こす。", "Shakes dungeon structure, and results in random swapping of floors and walls.");
624 if (!get_direction(caster_ptr, &dir, FALSE, FALSE))
629 y = caster_ptr->y + ddy[dir];
630 x = caster_ptr->x + ddx[dir];
632 if (caster_ptr->current_floor_ptr->grid_array[y][x].m_idx)
633 do_cmd_attack(caster_ptr, y, x, HISSATSU_QUAKE);
635 earthquake(caster_ptr, caster_ptr->y, caster_ptr->x, 10, 0);
641 return _("地走り", "Crack");
643 return _("衝撃波のビームを放つ。", "Fires a shock wave as a beam.");
646 int total_damage = 0, basedam, i;
647 BIT_FLAGS flgs[TR_FLAG_SIZE];
649 if (!get_aim_dir(caster_ptr, &dir))
651 msg_print(_("武器を大きく振り下ろした。", "You swing your weapon downward."));
652 for (i = 0; i < 2; i++) {
655 if (!has_melee_weapon(caster_ptr, INVEN_MAIN_HAND + i))
657 o_ptr = &caster_ptr->inventory_list[INVEN_MAIN_HAND + i];
658 basedam = (o_ptr->dd * (o_ptr->ds + 1)) * 50;
659 damage = o_ptr->to_d * 100;
660 object_flags(caster_ptr, o_ptr, flgs);
661 if ((o_ptr->name1 == ART_VORPAL_BLADE) || (o_ptr->name1 == ART_CHAINSWORD)) {
665 } else if (has_flag(flgs, TR_VORPAL)) {
666 /* vorpal flag only */
671 damage *= caster_ptr->num_blow[i];
672 total_damage += damage / 200;
674 total_damage = total_damage * 7 / 10;
676 fire_beam(caster_ptr, GF_FORCE, dir, total_damage);
682 return _("気迫の雄叫び", "War Cry");
684 return _("視界内の全モンスターに対して轟音の攻撃を行う。さらに、近くにいるモンスターを怒らせる。",
685 "Damages all monsters in sight with sound. Aggravates nearby monsters.");
688 msg_print(_("雄叫びをあげた!", "You roar!"));
689 project_all_los(caster_ptr, GF_SOUND, randint1(plev * 3));
690 aggravate_monsters(caster_ptr, 0);
696 return _("無双三段", "Musou-Sandan");
698 return _("強力な3段攻撃を繰り出す。", "Attacks with three powerful strikes.");
703 if (!get_direction(caster_ptr, &dir, FALSE, FALSE))
708 for (i = 0; i < 3; i++) {
715 y = caster_ptr->y + ddy[dir];
716 x = caster_ptr->x + ddx[dir];
717 g_ptr = &caster_ptr->current_floor_ptr->grid_array[y][x];
720 do_cmd_attack(caster_ptr, y, x, HISSATSU_3DAN);
722 msg_print(_("その方向にはモンスターはいません。", "There is no monster."));
726 if (d_info[caster_ptr->dungeon_idx].flags1 & DF1_NO_MELEE) {
730 /* Monster is dead? */
736 m_idx = g_ptr->m_idx;
737 m_ptr = &caster_ptr->current_floor_ptr->m_list[m_idx];
739 /* Monster cannot move back? */
740 if (!monster_can_enter(caster_ptr, ny, nx, &r_info[m_ptr->r_idx], 0)) {
748 caster_ptr->current_floor_ptr->grid_array[ny][nx].m_idx = m_idx;
752 update_monster(caster_ptr, m_idx, TRUE);
754 /* Redraw the old spot */
755 lite_spot(caster_ptr, y, x);
757 /* Redraw the new spot */
758 lite_spot(caster_ptr, ny, nx);
760 /* Player can move forward? */
761 if (player_can_enter(caster_ptr, g_ptr->feat, 0)) {
762 if (!move_player_effect(caster_ptr, y, x, MPE_FORGET_FLOW | MPE_HANDLE_STUFF | MPE_DONT_PICKUP))
777 return _("吸血鬼の牙", "Vampire's Fang");
779 return _("攻撃した相手の体力を吸いとり、自分の体力を回復させる。生命を持たないモンスターには通じない。",
780 "Attacks with vampiric strikes which absorb HP from a monster and heal you. Has no effect on unliving monsters.");
785 if (!get_direction(caster_ptr, &dir, FALSE, FALSE))
790 y = caster_ptr->y + ddy[dir];
791 x = caster_ptr->x + ddx[dir];
793 if (caster_ptr->current_floor_ptr->grid_array[y][x].m_idx)
794 do_cmd_attack(caster_ptr, y, x, HISSATSU_DRAIN);
796 msg_print(_("その方向にはモンスターはいません。", "There is no monster."));
804 return _("幻惑", "Moon Dazzling");
806 return _("視界内の起きている全モンスターに朦朧、混乱、眠りを与えようとする。", "Attempts to stun, confuse and put to sleep all waking monsters.");
809 msg_print(_("武器を不規則に揺らした...", "You irregularly wave your weapon..."));
810 project_all_los(caster_ptr, GF_ENGETSU, plev * 4);
811 project_all_los(caster_ptr, GF_ENGETSU, plev * 4);
812 project_all_los(caster_ptr, GF_ENGETSU, plev * 4);
818 return _("百人斬り", "Hundred Slaughter");
820 return _("連続して入身でモンスターを攻撃する。攻撃するたびにMPを消費。MPがなくなるか、モンスターを倒せなかったら百人斬りは終了する。",
821 "Performs a series of rush attacks. The series continues as long as the attacked monster dies and you have sufficient SP.");
824 const int mana_cost_per_monster = 8;
829 if (!rush_attack(caster_ptr, &mdeath))
832 /* Reserve needed mana point */
833 caster_ptr->csp -= technic_info[REALM_HISSATSU - MIN_TECHNIC][26].smana;
836 caster_ptr->csp -= mana_cost_per_monster;
842 caster_ptr->redraw |= PR_MANA;
843 handle_stuff(caster_ptr);
844 } while (caster_ptr->csp > mana_cost_per_monster);
849 /* Restore reserved mana */
850 caster_ptr->csp += technic_info[REALM_HISSATSU - MIN_TECHNIC][26].smana;
856 return _("天翔龍閃", "Dragonic Flash");
858 return _("視界内の場所を指定して、その場所と自分の間にいる全モンスターを攻撃し、その場所に移動する。",
859 "Runs toward given location while attacking all monsters on the path.");
864 if (!tgt_pt(caster_ptr, &x, &y))
867 if (!cave_player_teleportable_bold(caster_ptr, y, x, TELEPORT_SPONTANEOUS) || (distance(y, x, caster_ptr->y, caster_ptr->x) > MAX_SIGHT / 2)
868 || !projectable(caster_ptr, caster_ptr->y, caster_ptr->x, y, x)) {
869 msg_print(_("失敗!", "You cannot move to that place!"));
872 if (caster_ptr->anti_tele) {
873 msg_print(_("不思議な力がテレポートを防いだ!", "A mysterious force prevents you from teleporting!"));
876 project(caster_ptr, 0, 0, y, x, HISSATSU_ISSEN, GF_ATTACK, PROJECT_BEAM | PROJECT_KILL, -1);
877 teleport_player_to(caster_ptr, y, x, TELEPORT_SPONTANEOUS);
883 return _("二重の剣撃", "Twin Slash");
885 return _("1ターンで2度攻撃を行う。", "double attacks at a time.");
890 if (!get_rep_dir(caster_ptr, &dir, FALSE))
893 y = caster_ptr->y + ddy[dir];
894 x = caster_ptr->x + ddx[dir];
896 if (caster_ptr->current_floor_ptr->grid_array[y][x].m_idx) {
897 do_cmd_attack(caster_ptr, y, x, 0);
898 if (caster_ptr->current_floor_ptr->grid_array[y][x].m_idx) {
899 handle_stuff(caster_ptr);
900 do_cmd_attack(caster_ptr, y, x, 0);
903 msg_print(_("その方向にはモンスターはいません。", "You don't see any monster in this direction"));
911 return _("虎伏絶刀勢", "Kofuku-Zettousei");
913 return _("強力な攻撃を行い、近くの場所にも効果が及ぶ。", "Performs a powerful attack which even affects nearby monsters.");
916 int total_damage = 0, basedam, i;
918 BIT_FLAGS flgs[TR_FLAG_SIZE];
921 if (!get_direction(caster_ptr, &dir, FALSE, FALSE))
926 y = caster_ptr->y + ddy[dir];
927 x = caster_ptr->x + ddx[dir];
929 if (d_info[caster_ptr->dungeon_idx].flags1 & DF1_NO_MELEE) {
930 msg_print(_("なぜか攻撃することができない。", "Something prevents you from attacking."));
933 msg_print(_("武器を大きく振り下ろした。", "You swing your weapon downward."));
934 for (i = 0; i < 2; i++) {
936 if (!has_melee_weapon(caster_ptr, INVEN_MAIN_HAND + i))
938 o_ptr = &caster_ptr->inventory_list[INVEN_MAIN_HAND + i];
939 basedam = (o_ptr->dd * (o_ptr->ds + 1)) * 50;
940 damage = o_ptr->to_d * 100;
941 object_flags(caster_ptr, o_ptr, flgs);
942 if ((o_ptr->name1 == ART_VORPAL_BLADE) || (o_ptr->name1 == ART_CHAINSWORD)) {
946 } else if (has_flag(flgs, TR_VORPAL)) {
947 /* vorpal flag only */
952 damage += caster_ptr->to_d[i] * 100;
953 damage *= caster_ptr->num_blow[i];
954 total_damage += (damage / 100);
956 project(caster_ptr, 0, (cave_has_flag_bold(caster_ptr->current_floor_ptr, y, x, FF_PROJECT) ? 5 : 0), y, x, total_damage * 3 / 2, GF_METEOR,
957 PROJECT_KILL | PROJECT_JUMP | PROJECT_ITEM, -1);
963 return _("慶雲鬼忍剣", "Keiun-Kininken");
965 return _("自分もダメージをくらうが、相手に非常に大きなダメージを与える。アンデッドには特に効果がある。",
966 "Attacks a monster with extremely powerful damage, but you also take some damage. Hurts an undead monster greatly.");
971 if (!get_direction(caster_ptr, &dir, FALSE, FALSE))
976 y = caster_ptr->y + ddy[dir];
977 x = caster_ptr->x + ddx[dir];
979 if (caster_ptr->current_floor_ptr->grid_array[y][x].m_idx)
980 do_cmd_attack(caster_ptr, y, x, HISSATSU_UNDEAD);
982 msg_print(_("その方向にはモンスターはいません。", "There is no monster."));
985 take_hit(caster_ptr, DAMAGE_NOESCAPE, 100 + randint1(100), _("慶雲鬼忍剣を使った衝撃", "exhaustion on using Keiun-Kininken"), -1);
991 return _("切腹", "Harakiri");
993 return _("「武士道とは、死ぬことと見つけたり。」", "'Bushido, the way of warriors, is found in death'");
997 if (!get_check(_("本当に自殺しますか?", "Do you really want to commit suicide? ")))
999 /* Special Verification for suicide */
1000 prt(_("確認のため '@' を押して下さい。", "Please verify SUICIDE by typing the '@' sign: "), 0, 0);
1007 if (current_world_ptr->total_winner) {
1008 take_hit(caster_ptr, DAMAGE_FORCE, 9999, "Seppuku", -1);
1009 current_world_ptr->total_winner = TRUE;
1011 msg_print(_("武士道とは、死ぬことと見つけたり。", "The meaning of bushido is found in death."));
1012 take_hit(caster_ptr, DAMAGE_FORCE, 9999, "Seppuku", -1);