OSDN Git Service

[Refactor] #38997 display_koff() にplayer_type *引数を追加 / Added player_type * argument...
[hengband/hengband.git] / src / spells-status.c
index e1ab471..f828b8c 100644 (file)
@@ -221,7 +221,7 @@ bool time_walk(player_type *creature_ptr)
        creature_ptr->redraw |= (PR_MAP);
        creature_ptr->update |= (PU_MONSTERS);
        creature_ptr->window |= (PW_OVERHEAD | PW_DUNGEON);
-       handle_stuff();
+       handle_stuff(creature_ptr);
        return TRUE;
 }
 
@@ -267,7 +267,7 @@ void roll_hitdice(player_type *creature_ptr, SPOP_FLAGS options)
        creature_ptr->redraw |= (PR_HP);
        creature_ptr->window |= (PW_PLAYER);
 
-       if (!(options & SPOP_NO_UPDATE)) handle_stuff();
+       if (!(options & SPOP_NO_UPDATE)) handle_stuff(creature_ptr);
 
        if (!(options & SPOP_DISPLAY_MES)) return;
 
@@ -305,7 +305,7 @@ bool_hack life_stream(player_type *creature_ptr, bool_hack message, bool_hack vi
        (void)set_cut(creature_ptr,0);
        (void)restore_all_status(creature_ptr);
        (void)set_shero(creature_ptr, 0, TRUE);
-       handle_stuff();
+       handle_stuff(creature_ptr);
        hp_player(creature_ptr, 5000);
 
        return TRUE;
@@ -472,7 +472,7 @@ bool cosmic_cast_off(player_type *creature_ptr, object_type *o_ptr)
 
        object_type forge;
        object_copy(&forge, o_ptr);
-       inven_item_increase(inv, (0 - o_ptr->number));
+       inven_item_increase(creature_ptr, inv, (0 - o_ptr->number));
        inven_item_optimize(inv);
        OBJECT_IDX o_idx = drop_near(creature_ptr, &forge, 0, creature_ptr->y, creature_ptr->x);
        o_ptr = &creature_ptr->current_floor_ptr->o_list[o_idx];