OSDN Git Service

[Refactor] #38997 set_blessed() に player_type * 引数を追加.
[hengband/hengband.git] / src / spells2.c
index 7dad380..aed46b7 100644 (file)
@@ -915,8 +915,8 @@ bool cleansing_nova(player_type *creature_ptr, bool magic, bool powerful)
        if (dispel_evil(powerful ? 225 : 150)) ident = TRUE;
        int k = 3 * creature_ptr->lev;
        if (set_protevil((magic ? 0 : creature_ptr->protevil) + randint1(25) + k, FALSE)) ident = TRUE;
-       if (set_poisoned(0)) ident = TRUE;
-       if (set_afraid(0)) ident = TRUE;
+       if (set_poisoned(p_ptr, 0)) ident = TRUE;
+       if (set_afraid(p_ptr, 0)) ident = TRUE;
        if (hp_player(p_ptr, 50)) ident = TRUE;
        if (set_stun(0)) ident = TRUE;
        if (set_cut(0)) ident = TRUE;
@@ -2608,9 +2608,9 @@ bool activate_ty_curse(bool stop_ty, int *count)
                        {
                                msg_print(_("彫像になった気分だ!", "You feel like a statue!"));
                                if (p_ptr->free_act)
-                                       set_paralyzed(p_ptr->paralyzed + randint1(3));
+                                       set_paralyzed(p_ptr, p_ptr->paralyzed + randint1(3));
                                else
-                                       set_paralyzed(p_ptr->paralyzed + randint1(13));
+                                       set_paralyzed(p_ptr, p_ptr->paralyzed + randint1(13));
                                stop_ty = TRUE;
                        }
                        if (!one_in_(6)) break;
@@ -3556,7 +3556,7 @@ void cast_invoke_spirits(DIRECTION dir)
        {
                msg_print(_("名状し難い邪悪な存在があなたの心を通り過ぎて行った...", "An unnamable evil brushes against your mind..."));
 
-               set_afraid(p_ptr->afraid + randint1(4) + 4);
+               set_afraid(p_ptr, p_ptr->afraid + randint1(4) + 4);
        }
        else if (die < 26)
        {
@@ -3751,7 +3751,7 @@ void cast_shuffle(void)
        else if (die < 42)
        {
                msg_print(_("《正義》だ。", "It's Justice."));
-               set_blessed(p_ptr->lev, FALSE);
+               set_blessed(p_ptr, p_ptr->lev, FALSE);
        }
        else if (die < 47)
        {