1 #include "realm/realm-hissatsu.h"
2 #include "art-definition/art-sword-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/spells-effect-util.h"
15 #include "floor/cave.h"
16 #include "floor/floor.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/process-effect.h"
41 #include "spell/spell-types.h"
42 #include "spell/technic-info-table.h"
43 #include "status/bad-status-setter.h"
44 #include "system/floor-type-definition.h"
45 #include "target/targeting.h"
46 #include "term/screen-processor.h"
47 #include "util/bit-flags-calculator.h"
48 #include "view/display-messages.h"
49 #include "world/world.h"
53 * @param caster_ptr プレーヤーへの参照ポインタ
55 * @param mode 処理内容 (SPELL_NAME / SPELL_DESC / SPELL_CAST)
56 * @return SPELL_NAME / SPELL_DESC 時には文字列ポインタを返す。SPELL_CAST時はNULL文字列を返す。
58 concptr do_hissatsu_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type mode)
60 bool name = (mode == SPELL_NAME) ? TRUE : FALSE;
61 bool desc = (mode == SPELL_DESC) ? TRUE : FALSE;
62 bool cast = (mode == SPELL_CAST) ? TRUE : FALSE;
65 PLAYER_LEVEL plev = caster_ptr->lev;
70 return _("飛飯綱", "Tobi-Izuna");
72 return _("2マス離れたところにいるモンスターを攻撃する。", "Attacks a monster two squares away.");
76 if (!get_aim_dir(caster_ptr, &dir))
79 project_hook(caster_ptr, GF_ATTACK, dir, HISSATSU_2, PROJECT_STOP | PROJECT_KILL);
85 return _("五月雨斬り", "3-Way Attack");
87 return _("3方向に対して攻撃する。", "Attacks in 3 directions at one time.");
93 if (!get_direction(caster_ptr, &dir, FALSE, FALSE))
98 for (cdir = 0; cdir < 8; cdir++) {
106 y = caster_ptr->y + ddy_cdd[cdir];
107 x = caster_ptr->x + ddx_cdd[cdir];
108 if (caster_ptr->current_floor_ptr->grid_array[y][x].m_idx)
109 do_cmd_attack(caster_ptr, y, x, 0);
111 msg_print(_("攻撃は空を切った。", "You attack the empty air."));
113 y = caster_ptr->y + ddy_cdd[(cdir + 7) % 8];
114 x = caster_ptr->x + ddx_cdd[(cdir + 7) % 8];
115 if (caster_ptr->current_floor_ptr->grid_array[y][x].m_idx)
116 do_cmd_attack(caster_ptr, y, x, 0);
118 msg_print(_("攻撃は空を切った。", "You attack the empty air."));
120 y = caster_ptr->y + ddy_cdd[(cdir + 1) % 8];
121 x = caster_ptr->x + ddx_cdd[(cdir + 1) % 8];
122 if (caster_ptr->current_floor_ptr->grid_array[y][x].m_idx)
123 do_cmd_attack(caster_ptr, y, x, 0);
125 msg_print(_("攻撃は空を切った。", "You attack the empty air."));
131 return _("ブーメラン", "Boomerang");
134 "武器を手元に戻ってくるように投げる。戻ってこないこともある。", "Throws current weapon. It'll return to your hand unless the action failed.");
137 if (!do_cmd_throw(caster_ptr, 1, TRUE, -1))
144 return _("焔霊", "Burning Strike");
146 return _("火炎耐性のないモンスターに大ダメージを与える。", "Attacks a monster with more damage unless it has resistance to fire.");
151 if (!get_direction(caster_ptr, &dir, FALSE, FALSE))
156 y = caster_ptr->y + ddy[dir];
157 x = caster_ptr->x + ddx[dir];
159 if (caster_ptr->current_floor_ptr->grid_array[y][x].m_idx)
160 do_cmd_attack(caster_ptr, y, x, HISSATSU_FIRE);
162 msg_print(_("その方向にはモンスターはいません。", "There is no monster."));
170 return _("殺気感知", "Detect Ferocity");
172 return _("近くの思考することができるモンスターを感知する。", "Detects all monsters except the mindless in your vicinity.");
175 detect_monsters_mind(caster_ptr, DETECT_RAD_DEFAULT);
181 return _("みね打ち", "Strike to Stun");
183 return _("相手にダメージを与えないが、朦朧とさせる。", "Attempts to stun a monster next to you.");
188 if (!get_direction(caster_ptr, &dir, FALSE, FALSE))
193 y = caster_ptr->y + ddy[dir];
194 x = caster_ptr->x + ddx[dir];
196 if (caster_ptr->current_floor_ptr->grid_array[y][x].m_idx)
197 do_cmd_attack(caster_ptr, y, x, HISSATSU_MINEUCHI);
199 msg_print(_("その方向にはモンスターはいません。", "There is no monster."));
207 return _("カウンター", "Counter");
209 return _("相手に攻撃されたときに反撃する。反撃するたびにMPを消費。",
210 "Prepares to counterattack. When attacked by a monster, strikes back using SP each time.");
213 if (caster_ptr->riding) {
214 msg_print(_("乗馬中には無理だ。", "You cannot do it when riding."));
217 msg_print(_("相手の攻撃に対して身構えた。", "You prepare to counterattack."));
218 caster_ptr->counter = TRUE;
224 return _("払い抜け", "Harainuke");
226 return _("攻撃した後、反対側に抜ける。",
227 "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.");
232 if (caster_ptr->riding) {
233 msg_print(_("乗馬中には無理だ。", "You cannot do it when riding."));
237 if (!get_direction(caster_ptr, &dir, FALSE, FALSE))
242 y = caster_ptr->y + ddy[dir];
243 x = caster_ptr->x + ddx[dir];
245 if (!caster_ptr->current_floor_ptr->grid_array[y][x].m_idx) {
246 msg_print(_("その方向にはモンスターはいません。", "There is no monster."));
250 do_cmd_attack(caster_ptr, y, x, 0);
252 if (!player_can_enter(caster_ptr, caster_ptr->current_floor_ptr->grid_array[y][x].feat, 0)
253 || is_trap(caster_ptr, caster_ptr->current_floor_ptr->grid_array[y][x].feat))
259 if (player_can_enter(caster_ptr, caster_ptr->current_floor_ptr->grid_array[y][x].feat, 0)
260 && !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) {
262 (void)move_player_effect(caster_ptr, y, x, MPE_FORGET_FLOW | MPE_HANDLE_STUFF | MPE_DONT_PICKUP);
269 return _("サーペンツタン", "Serpent's Tongue");
271 return _("毒耐性のないモンスターに大ダメージを与える。", "Attacks a monster with more damage unless it has resistance to poison.");
276 if (!get_direction(caster_ptr, &dir, FALSE, FALSE))
281 y = caster_ptr->y + ddy[dir];
282 x = caster_ptr->x + ddx[dir];
284 if (caster_ptr->current_floor_ptr->grid_array[y][x].m_idx)
285 do_cmd_attack(caster_ptr, y, x, HISSATSU_POISON);
287 msg_print(_("その方向にはモンスターはいません。", "There is no monster."));
295 return _("斬魔剣弐の太刀", "Zammaken");
297 return _("生命のない邪悪なモンスターに大ダメージを与えるが、他のモンスターには全く効果がない。",
298 "Attacks an evil unliving monster with great damage. Has no effect on other monsters.");
303 if (!get_direction(caster_ptr, &dir, FALSE, FALSE))
308 y = caster_ptr->y + ddy[dir];
309 x = caster_ptr->x + ddx[dir];
311 if (caster_ptr->current_floor_ptr->grid_array[y][x].m_idx)
312 do_cmd_attack(caster_ptr, y, x, HISSATSU_ZANMA);
314 msg_print(_("その方向にはモンスターはいません。", "There is no monster."));
322 return _("裂風剣", "Wind Blast");
324 return _("攻撃した相手を後方へ吹き飛ばす。", "Attacks an adjacent monster and blows it away.");
329 if (!get_direction(caster_ptr, &dir, FALSE, FALSE))
334 y = caster_ptr->y + ddy[dir];
335 x = caster_ptr->x + ddx[dir];
337 if (caster_ptr->current_floor_ptr->grid_array[y][x].m_idx)
338 do_cmd_attack(caster_ptr, y, x, 0);
340 msg_print(_("その方向にはモンスターはいません。", "There is no monster."));
343 if (d_info[caster_ptr->dungeon_idx].flags1 & DF1_NO_MELEE) {
346 if (caster_ptr->current_floor_ptr->grid_array[y][x].m_idx) {
348 POSITION ty = y, tx = x;
349 POSITION oy = y, ox = x;
350 MONSTER_IDX m_idx = caster_ptr->current_floor_ptr->grid_array[y][x].m_idx;
351 monster_type *m_ptr = &caster_ptr->current_floor_ptr->m_list[m_idx];
352 GAME_TEXT m_name[MAX_NLEN];
354 monster_desc(caster_ptr, m_name, m_ptr, 0);
356 for (i = 0; i < 5; i++) {
359 if (is_cave_empty_bold(caster_ptr, y, x)) {
365 if ((ty != oy) || (tx != ox)) {
366 msg_format(_("%sを吹き飛ばした!", "You blow %s away!"), m_name);
367 caster_ptr->current_floor_ptr->grid_array[oy][ox].m_idx = 0;
368 caster_ptr->current_floor_ptr->grid_array[ty][tx].m_idx = m_idx;
372 update_monster(caster_ptr, m_idx, TRUE);
373 lite_spot(caster_ptr, oy, ox);
374 lite_spot(caster_ptr, ty, tx);
376 if (r_info[m_ptr->r_idx].flags7 & (RF7_LITE_MASK | RF7_DARK_MASK))
377 caster_ptr->update |= (PU_MON_LITE);
385 return _("刀匠の目利き", "Judge");
387 return _("武器・防具を1つ識別する。レベル45以上で武器・防具の能力を完全に知ることができる。",
388 "Identifies a weapon or armor. *Identifies* the item at level 45.");
392 if (!identify_fully(caster_ptr, TRUE, 0))
395 if (!ident_spell(caster_ptr, TRUE, 0))
403 return _("破岩斬", "Rock Smash");
405 return _("岩を壊し、岩石系のモンスターに大ダメージを与える。", "Breaks rock or greatly damages a monster made of rocks.");
410 if (!get_direction(caster_ptr, &dir, FALSE, FALSE))
415 y = caster_ptr->y + ddy[dir];
416 x = caster_ptr->x + ddx[dir];
418 if (caster_ptr->current_floor_ptr->grid_array[y][x].m_idx)
419 do_cmd_attack(caster_ptr, y, x, HISSATSU_HAGAN);
421 if (!cave_have_flag_bold(caster_ptr->current_floor_ptr, y, x, FF_HURT_ROCK))
424 /* Destroy the feature */
425 cave_alter_feat(caster_ptr, y, x, FF_HURT_ROCK);
426 caster_ptr->update |= (PU_FLOW);
432 return _("乱れ雪月花", "Midare-Setsugekka");
434 return _("攻撃回数が増え、冷気耐性のないモンスターに大ダメージを与える。",
435 "Attacks a monster with an increased number of attacks and more damage unless it has resistance to cold.");
440 if (!get_direction(caster_ptr, &dir, FALSE, FALSE))
445 y = caster_ptr->y + ddy[dir];
446 x = caster_ptr->x + ddx[dir];
448 if (caster_ptr->current_floor_ptr->grid_array[y][x].m_idx)
449 do_cmd_attack(caster_ptr, y, x, HISSATSU_COLD);
451 msg_print(_("その方向にはモンスターはいません。", "There is no monster."));
459 return _("急所突き", "Spot Aiming");
461 return _("モンスターを一撃で倒す攻撃を繰り出す。失敗すると1点しかダメージを与えられない。",
462 "Attempts to kill a monster instantly. If that fails, causes only 1HP of damage.");
467 if (!get_direction(caster_ptr, &dir, FALSE, FALSE))
472 y = caster_ptr->y + ddy[dir];
473 x = caster_ptr->x + ddx[dir];
475 if (caster_ptr->current_floor_ptr->grid_array[y][x].m_idx)
476 do_cmd_attack(caster_ptr, y, x, HISSATSU_KYUSHO);
478 msg_print(_("その方向にはモンスターはいません。", "There is no monster."));
486 return _("魔神斬り", "Majingiri");
488 return _("会心の一撃で攻撃する。攻撃がかわされやすい。", "Attempts to attack with a critical hit, but this attack is easy to evade for a monster.");
493 if (!get_direction(caster_ptr, &dir, FALSE, FALSE))
498 y = caster_ptr->y + ddy[dir];
499 x = caster_ptr->x + ddx[dir];
501 if (caster_ptr->current_floor_ptr->grid_array[y][x].m_idx)
502 do_cmd_attack(caster_ptr, y, x, HISSATSU_MAJIN);
504 msg_print(_("その方向にはモンスターはいません。", "There is no monster."));
512 return _("捨て身", "Desperate Attack");
514 return _("強力な攻撃を繰り出す。次のターンまでの間、食らうダメージが増える。",
515 "Attacks with all of your power, but all damage you take will be doubled for one turn.");
520 if (!get_direction(caster_ptr, &dir, FALSE, FALSE))
525 y = caster_ptr->y + ddy[dir];
526 x = caster_ptr->x + ddx[dir];
528 if (caster_ptr->current_floor_ptr->grid_array[y][x].m_idx)
529 do_cmd_attack(caster_ptr, y, x, HISSATSU_SUTEMI);
531 msg_print(_("その方向にはモンスターはいません。", "There is no monster."));
534 caster_ptr->sutemi = TRUE;
540 return _("雷撃鷲爪斬", "Lightning Eagle");
542 return _("電撃耐性のないモンスターに非常に大きいダメージを与える。", "Attacks a monster with more damage unless it has resistance to electricity.");
547 if (!get_direction(caster_ptr, &dir, FALSE, FALSE))
552 y = caster_ptr->y + ddy[dir];
553 x = caster_ptr->x + ddx[dir];
555 if (caster_ptr->current_floor_ptr->grid_array[y][x].m_idx)
556 do_cmd_attack(caster_ptr, y, x, HISSATSU_ELEC);
558 msg_print(_("その方向にはモンスターはいません。", "There is no monster."));
566 return _("入身", "Rush Attack");
568 return _("素早く相手に近寄り攻撃する。", "Steps close to a monster and attacks at the same time.");
571 if (!rush_attack(caster_ptr, NULL))
578 return _("赤流渦", "Bloody Maelstrom");
580 return _("自分自身も傷を作りつつ、その傷が深いほど大きい威力で全方向の敵を攻撃できる。生きていないモンスターには効果がない。",
581 "Attacks all adjacent monsters with power corresponding to your cuts. Then increases your cuts. Has no effect on unliving monsters.");
584 POSITION y = 0, x = 0;
589 if (caster_ptr->cut < 300)
590 set_cut(caster_ptr, caster_ptr->cut + 300);
592 set_cut(caster_ptr, caster_ptr->cut * 2);
594 for (dir = 0; dir < 8; dir++) {
595 y = caster_ptr->y + ddy_ddd[dir];
596 x = caster_ptr->x + ddx_ddd[dir];
597 g_ptr = &caster_ptr->current_floor_ptr->grid_array[y][x];
598 m_ptr = &caster_ptr->current_floor_ptr->m_list[g_ptr->m_idx];
600 /* Hack -- attack monsters */
601 if (g_ptr->m_idx && (m_ptr->ml || cave_have_flag_bold(caster_ptr->current_floor_ptr, y, x, FF_PROJECT))) {
602 if (!monster_living(m_ptr->r_idx)) {
603 GAME_TEXT m_name[MAX_NLEN];
605 monster_desc(caster_ptr, m_name, m_ptr, 0);
606 msg_format(_("%sには効果がない!", "%s is unharmed!"), m_name);
608 do_cmd_attack(caster_ptr, y, x, HISSATSU_SEKIRYUKA);
616 return _("激震撃", "Earthquake Blow");
618 return _("地震を起こす。", "Shakes dungeon structure, and results in random swapping of floors and walls.");
623 if (!get_direction(caster_ptr, &dir, FALSE, FALSE))
628 y = caster_ptr->y + ddy[dir];
629 x = caster_ptr->x + ddx[dir];
631 if (caster_ptr->current_floor_ptr->grid_array[y][x].m_idx)
632 do_cmd_attack(caster_ptr, y, x, HISSATSU_QUAKE);
634 earthquake(caster_ptr, caster_ptr->y, caster_ptr->x, 10, 0);
640 return _("地走り", "Crack");
642 return _("衝撃波のビームを放つ。", "Fires a shock wave as a beam.");
645 int total_damage = 0, basedam, i;
646 BIT_FLAGS flgs[TR_FLAG_SIZE];
648 if (!get_aim_dir(caster_ptr, &dir))
650 msg_print(_("武器を大きく振り下ろした。", "You swing your weapon downward."));
651 for (i = 0; i < 2; i++) {
654 if (!has_melee_weapon(caster_ptr, INVEN_RARM + i))
656 o_ptr = &caster_ptr->inventory_list[INVEN_RARM + i];
657 basedam = (o_ptr->dd * (o_ptr->ds + 1)) * 50;
658 damage = o_ptr->to_d * 100;
659 object_flags(caster_ptr, o_ptr, flgs);
660 if ((o_ptr->name1 == ART_VORPAL_BLADE) || (o_ptr->name1 == ART_CHAINSWORD)) {
664 } else if (have_flag(flgs, TR_VORPAL)) {
665 /* vorpal flag only */
670 damage *= caster_ptr->num_blow[i];
671 total_damage += damage / 200;
673 total_damage = total_damage * 7 / 10;
675 fire_beam(caster_ptr, GF_FORCE, dir, total_damage);
681 return _("気迫の雄叫び", "War Cry");
683 return _("視界内の全モンスターに対して轟音の攻撃を行う。さらに、近くにいるモンスターを怒らせる。",
684 "Damages all monsters in sight with sound. Aggravates nearby monsters.");
687 msg_print(_("雄叫びをあげた!", "You roar!"));
688 project_all_los(caster_ptr, GF_SOUND, randint1(plev * 3));
689 aggravate_monsters(caster_ptr, 0);
695 return _("無双三段", "Musou-Sandan");
697 return _("強力な3段攻撃を繰り出す。", "Attacks with three powerful strikes.");
702 if (!get_direction(caster_ptr, &dir, FALSE, FALSE))
707 for (i = 0; i < 3; i++) {
714 y = caster_ptr->y + ddy[dir];
715 x = caster_ptr->x + ddx[dir];
716 g_ptr = &caster_ptr->current_floor_ptr->grid_array[y][x];
719 do_cmd_attack(caster_ptr, y, x, HISSATSU_3DAN);
721 msg_print(_("その方向にはモンスターはいません。", "There is no monster."));
725 if (d_info[caster_ptr->dungeon_idx].flags1 & DF1_NO_MELEE) {
729 /* Monster is dead? */
735 m_idx = g_ptr->m_idx;
736 m_ptr = &caster_ptr->current_floor_ptr->m_list[m_idx];
738 /* Monster cannot move back? */
739 if (!monster_can_enter(caster_ptr, ny, nx, &r_info[m_ptr->r_idx], 0)) {
747 caster_ptr->current_floor_ptr->grid_array[ny][nx].m_idx = m_idx;
751 update_monster(caster_ptr, m_idx, TRUE);
753 /* Redraw the old spot */
754 lite_spot(caster_ptr, y, x);
756 /* Redraw the new spot */
757 lite_spot(caster_ptr, ny, nx);
759 /* Player can move forward? */
760 if (player_can_enter(caster_ptr, g_ptr->feat, 0)) {
761 if (!move_player_effect(caster_ptr, y, x, MPE_FORGET_FLOW | MPE_HANDLE_STUFF | MPE_DONT_PICKUP))
776 return _("吸血鬼の牙", "Vampire's Fang");
778 return _("攻撃した相手の体力を吸いとり、自分の体力を回復させる。生命を持たないモンスターには通じない。",
779 "Attacks with vampiric strikes which absorb HP from a monster and heal you. Has no effect on unliving monsters.");
784 if (!get_direction(caster_ptr, &dir, FALSE, FALSE))
789 y = caster_ptr->y + ddy[dir];
790 x = caster_ptr->x + ddx[dir];
792 if (caster_ptr->current_floor_ptr->grid_array[y][x].m_idx)
793 do_cmd_attack(caster_ptr, y, x, HISSATSU_DRAIN);
795 msg_print(_("その方向にはモンスターはいません。", "There is no monster."));
803 return _("幻惑", "Moon Dazzling");
805 return _("視界内の起きている全モンスターに朦朧、混乱、眠りを与えようとする。", "Attempts to stun, confuse and put to sleep all waking monsters.");
808 msg_print(_("武器を不規則に揺らした...", "You irregularly wave your weapon..."));
809 project_all_los(caster_ptr, GF_ENGETSU, plev * 4);
810 project_all_los(caster_ptr, GF_ENGETSU, plev * 4);
811 project_all_los(caster_ptr, GF_ENGETSU, plev * 4);
817 return _("百人斬り", "Hundred Slaughter");
819 return _("連続して入身でモンスターを攻撃する。攻撃するたびにMPを消費。MPがなくなるか、モンスターを倒せなかったら百人斬りは終了する。",
820 "Performs a series of rush attacks. The series continues as long as the attacked monster dies and you have sufficient SP.");
823 const int mana_cost_per_monster = 8;
828 if (!rush_attack(caster_ptr, &mdeath))
831 /* Reserve needed mana point */
832 caster_ptr->csp -= technic_info[REALM_HISSATSU - MIN_TECHNIC][26].smana;
835 caster_ptr->csp -= mana_cost_per_monster;
841 caster_ptr->redraw |= PR_MANA;
842 handle_stuff(caster_ptr);
843 } while (caster_ptr->csp > mana_cost_per_monster);
848 /* Restore reserved mana */
849 caster_ptr->csp += technic_info[REALM_HISSATSU - MIN_TECHNIC][26].smana;
855 return _("天翔龍閃", "Dragonic Flash");
857 return _("視界内の場所を指定して、その場所と自分の間にいる全モンスターを攻撃し、その場所に移動する。",
858 "Runs toward given location while attacking all monsters on the path.");
863 if (!tgt_pt(caster_ptr, &x, &y))
866 if (!cave_player_teleportable_bold(caster_ptr, y, x, TELEPORT_SPONTANEOUS) || (distance(y, x, caster_ptr->y, caster_ptr->x) > MAX_SIGHT / 2)
867 || !projectable(caster_ptr, caster_ptr->y, caster_ptr->x, y, x)) {
868 msg_print(_("失敗!", "You cannot move to that place!"));
871 if (caster_ptr->anti_tele) {
872 msg_print(_("不思議な力がテレポートを防いだ!", "A mysterious force prevents you from teleporting!"));
875 project(caster_ptr, 0, 0, y, x, HISSATSU_ISSEN, GF_ATTACK, PROJECT_BEAM | PROJECT_KILL, -1);
876 teleport_player_to(caster_ptr, y, x, TELEPORT_SPONTANEOUS);
882 return _("二重の剣撃", "Twin Slash");
884 return _("1ターンで2度攻撃を行う。", "double attacks at a time.");
889 if (!get_rep_dir(caster_ptr, &dir, FALSE))
892 y = caster_ptr->y + ddy[dir];
893 x = caster_ptr->x + ddx[dir];
895 if (caster_ptr->current_floor_ptr->grid_array[y][x].m_idx) {
896 do_cmd_attack(caster_ptr, y, x, 0);
897 if (caster_ptr->current_floor_ptr->grid_array[y][x].m_idx) {
898 handle_stuff(caster_ptr);
899 do_cmd_attack(caster_ptr, y, x, 0);
902 msg_print(_("その方向にはモンスターはいません。", "You don't see any monster in this direction"));
910 return _("虎伏絶刀勢", "Kofuku-Zettousei");
912 return _("強力な攻撃を行い、近くの場所にも効果が及ぶ。", "Performs a powerful attack which even affects nearby monsters.");
915 int total_damage = 0, basedam, i;
917 BIT_FLAGS flgs[TR_FLAG_SIZE];
920 if (!get_direction(caster_ptr, &dir, FALSE, FALSE))
925 y = caster_ptr->y + ddy[dir];
926 x = caster_ptr->x + ddx[dir];
928 if (d_info[caster_ptr->dungeon_idx].flags1 & DF1_NO_MELEE) {
929 msg_print(_("なぜか攻撃することができない。", "Something prevents you from attacking."));
932 msg_print(_("武器を大きく振り下ろした。", "You swing your weapon downward."));
933 for (i = 0; i < 2; i++) {
935 if (!has_melee_weapon(caster_ptr, INVEN_RARM + i))
937 o_ptr = &caster_ptr->inventory_list[INVEN_RARM + i];
938 basedam = (o_ptr->dd * (o_ptr->ds + 1)) * 50;
939 damage = o_ptr->to_d * 100;
940 object_flags(caster_ptr, o_ptr, flgs);
941 if ((o_ptr->name1 == ART_VORPAL_BLADE) || (o_ptr->name1 == ART_CHAINSWORD)) {
945 } else if (have_flag(flgs, TR_VORPAL)) {
946 /* vorpal flag only */
951 damage += caster_ptr->to_d[i] * 100;
952 damage *= caster_ptr->num_blow[i];
953 total_damage += (damage / 100);
955 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,
956 PROJECT_KILL | PROJECT_JUMP | PROJECT_ITEM, -1);
962 return _("慶雲鬼忍剣", "Keiun-Kininken");
964 return _("自分もダメージをくらうが、相手に非常に大きなダメージを与える。アンデッドには特に効果がある。",
965 "Attacks a monster with extremely powerful damage, but you also take some damage. Hurts an undead monster greatly.");
970 if (!get_direction(caster_ptr, &dir, FALSE, FALSE))
975 y = caster_ptr->y + ddy[dir];
976 x = caster_ptr->x + ddx[dir];
978 if (caster_ptr->current_floor_ptr->grid_array[y][x].m_idx)
979 do_cmd_attack(caster_ptr, y, x, HISSATSU_UNDEAD);
981 msg_print(_("その方向にはモンスターはいません。", "There is no monster."));
984 take_hit(caster_ptr, DAMAGE_NOESCAPE, 100 + randint1(100), _("慶雲鬼忍剣を使った衝撃", "exhaustion on using Keiun-Kininken"), -1);
990 return _("切腹", "Harakiri");
992 return _("「武士道とは、死ぬことと見つけたり。」", "'Bushido, the way of warriors, is found in death'");
996 if (!get_check(_("本当に自殺しますか?", "Do you really want to commit suicide? ")))
998 /* Special Verification for suicide */
999 prt(_("確認のため '@' を押して下さい。", "Please verify SUICIDE by typing the '@' sign: "), 0, 0);
1006 if (current_world_ptr->total_winner) {
1007 take_hit(caster_ptr, DAMAGE_FORCE, 9999, "Seppuku", -1);
1008 current_world_ptr->total_winner = TRUE;
1010 msg_print(_("武士道とは、死ぬことと見つけたり。", "The meaning of bushido is found in death."));
1011 take_hit(caster_ptr, DAMAGE_FORCE, 9999, "Seppuku", -1);