OSDN Git Service

[Refactor] #37353 コメント整理 / Refactor comments.
[hengband/hengband.git] / src / realm-hex.c
index 4344ba5..7b157c3 100644 (file)
@@ -19,6 +19,7 @@
 #include "cmd-spell.h"
 #include "cmd-quaff.h"
 #include "object-hook.h"
+#include "object-curse.h"
 
 #define MAX_KEEP 4 /*!<呪術の最大詠唱数 */
 
@@ -58,17 +59,13 @@ bool stop_hex_spell(void)
        char choice;
        char out_val[160];
        bool flag = FALSE;
-       int y = 1;
-       int x = 20;
+       TERM_LEN y = 1;
+       TERM_LEN x = 20;
        int sp[MAX_KEEP];
 
        if (!hex_spelling_any())
        {
-#ifdef JP
-               msg_print("呪文を詠唱していません。");
-#else
-               msg_print("You are casting no spell.");
-#endif
+               msg_print(_("呪文を詠唱していません。", "You are casting no spell."));
                return FALSE;
        }
 
@@ -215,7 +212,6 @@ void check_hex(void)
                        /* Update monsters */
                        p_ptr->update |= (PU_MONSTERS);
 
-                       /* Window stuff */
                        p_ptr->window |= (PW_OVERHEAD | PW_DUNGEON);
                }
        }
@@ -543,7 +539,7 @@ cptr do_hex_spell(SPELL_IDX spell, BIT_FLAGS mode)
                }
                if (cont)
                {
-                       int rad = 2 + (power / 50);
+                       POSITION rad = 2 + (power / 50);
 
                        HEX_REVENGE_TURN(p_ptr)--;
 
@@ -698,7 +694,7 @@ cptr do_hex_spell(SPELL_IDX spell, BIT_FLAGS mode)
                {
                        msg_print(_("気分が良くなってくる。", "You feel better and better."));
                }
-               if (cast || cont) (void)cure_serious_wounds(4, 10);
+               if (cast || cont) (void)cure_critical_wounds(damroll(4, 10));
                break;
 
        case 18:
@@ -1102,7 +1098,7 @@ cptr do_hex_spell(SPELL_IDX spell, BIT_FLAGS mode)
 
                        if (HEX_REVENGE_TURN(p_ptr) <= 0)
                        {
-                               int dir;
+                               DIRECTION dir;
 
                                if (power)
                                {