OSDN Git Service

[Refactor] #37353 メッセージ整理。
[hengband/hengband.git] / src / hissatsu.c
index e08c2c3..6e04464 100644 (file)
@@ -36,18 +36,18 @@ static int get_hissatsu_power(SPELL_IDX *sn)
 {
        SPELL_IDX i;
        int j = 0;
-       int             num = 0;
-       int             y = 1;
-       int             x = 15;
-       int             plev = p_ptr->lev;
-       int             ask = TRUE;
-       char            choice;
-       char            out_val[160];
+       int num = 0;
+       POSITION y = 1;
+       POSITION x = 15;
+       PLAYER_LEVEL plev = p_ptr->lev;
+       int ask = TRUE;
+       char choice;
+       char out_val[160];
        SPELL_IDX sentaku[32];
-       cptr            p = _("必殺剣", "special attack");
+       cptr p = _("必殺剣", "special attack");
        COMMAND_CODE code;
        magic_type spell;
-       bool            flag, redraw;
+       bool flag, redraw;
        int menu_line = (use_menu ? 1 : 0);
 
        /* Assume cancelled */
@@ -299,7 +299,6 @@ static int get_hissatsu_power(SPELL_IDX *sn)
        /* Show choices */
        p_ptr->window |= (PW_SPELL);
 
-       /* Window stuff */
        window_stuff();
 
 
@@ -329,7 +328,6 @@ void do_cmd_hissatsu(void)
        SPELL_IDX       n = 0;
        magic_type      spell;
 
-
        /* not if confused */
        if (p_ptr->confused)
        {
@@ -373,7 +371,6 @@ void do_cmd_hissatsu(void)
        /* Cast the spell */
        if (!do_spell(REALM_HISSATSU, n, SPELL_CAST)) return;
 
-       /* Take a turn */
        p_ptr->energy_use = 100;
 
        /* Use some mana */
@@ -385,7 +382,6 @@ void do_cmd_hissatsu(void)
        /* Redraw mana */
        p_ptr->redraw |= (PR_MANA);
 
-       /* Window stuff */
        p_ptr->window |= (PW_PLAYER);
        p_ptr->window |= (PW_SPELL);
 }
@@ -441,7 +437,6 @@ void do_cmd_gain_hissatsu(void)
 
        item_tester_tval = TV_HISSATSU_BOOK;
 
-       /* Get an item */
        q = _("どの書から学びますか? ", "Study which book? ");
        s = _("読める書がない。", "You have no books that you can read.");
 
@@ -480,7 +475,6 @@ void do_cmd_gain_hissatsu(void)
        if (!gain)
                msg_print(_("何も覚えられなかった。", "You were not able to learn any special attacks."));
 
-       /* Take a turn */
        else
                p_ptr->energy_use = 100;