OSDN Git Service

[Refactor] #37353 コメント整理 / Refactor comments.
[hengband/hengband.git] / src / cmd-activate.c
index 64d2948..46a236e 100644 (file)
@@ -372,7 +372,6 @@ void do_cmd_activate(void)
        }
 
        item_tester_no_ryoute = TRUE;
-       /* Prepare the hook */
        item_tester_hook = item_tester_hook_activate;
 
        q = _("どのアイテムを始動させますか? ", "Activate which item? ");
@@ -1485,12 +1484,10 @@ bool activate_artifact(object_type *o_ptr)
 
                                msg_print(_("石を制御できない!", "You are too weak to control the stone!"));
                                /* Hack -- Bypass free action */
-                               (void)set_paralyzed(p_ptr->paralyzed +
-                                       randint1(5 * oops + 1));
+                               (void)set_paralyzed(p_ptr->paralyzed + randint1(5 * oops + 1));
 
                                /* Confusing. */
-                               (void)set_confused(p_ptr->confused +
-                                       randint1(5 * oops + 1));
+                               (void)set_confused(p_ptr->confused + randint1(5 * oops + 1));
                        }
 
                        /* Redraw mana */
@@ -1498,12 +1495,10 @@ bool activate_artifact(object_type *o_ptr)
                }
                take_hit(DAMAGE_LOSELIFE, damroll(1, 12), _("危険な秘密", "perilous secrets"), -1);
                /* Confusing. */
-               if (one_in_(5)) (void)set_confused(p_ptr->confused +
-                       randint1(10));
+               if (one_in_(5)) (void)set_confused(p_ptr->confused + randint1(10));
 
                /* Exercise a little care... */
-               if (one_in_(20))
-                       take_hit(DAMAGE_LOSELIFE, damroll(4, 10), _("危険な秘密", "perilous secrets"), -1);
+               if (one_in_(20)) take_hit(DAMAGE_LOSELIFE, damroll(4, 10), _("危険な秘密", "perilous secrets"), -1);
                break;
        }
 
@@ -1632,7 +1627,7 @@ bool activate_artifact(object_type *o_ptr)
                if (!get_direction(&dir, FALSE, FALSE)) return FALSE;
                y = p_ptr->y + ddy[dir];
                x = p_ptr->x + ddx[dir];
-               tsuri_dir = dir;
+               p_ptr->fishing_dir = dir;
                if (!cave_have_flag_bold(y, x, FF_WATER))
                {
                        msg_print(_("そこは水辺ではない。", "There is no fishing place."));