OSDN Git Service

[Refactor] #37353 player-skill.c/h を追加。
[hengband/hengband.git] / src / dungeon.c
index 2ce2518..f7414e3 100644 (file)
  */
 
 #include "angband.h"
+#include "util.h"
+
 #include "birth.h"
+#include "bldg.h"
 #include "cmd-activate.h"
 #include "cmd-eat.h"
 #include "cmd-hissatsu.h"
@@ -55,6 +58,8 @@
 #include "monster-status.h"
 #include "monsterrace-hook.h"
 #include "floor-save.h"
+#include "feature.h"
+#include "player-skill.h"
 
 #include "view-mainwindow.h"
 #include "dungeon-file.h"
@@ -2549,11 +2554,8 @@ static void process_world_aux_curse(void)
                        {
                                BIT_FLAGS flgs[TR_FLAG_SIZE];
                                o_ptr = &inventory[i];
-
-                               /* Skip non-objects */
                                if (!o_ptr->k_idx) continue;
 
-                               /* Extract the item flags */
                                object_flags(o_ptr, flgs);
 
                                if (have_flag(flgs, TR_TELEPORT))
@@ -2775,8 +2777,6 @@ static void process_world_aux_recharge(void)
        {
                /* Get the object */
                object_type *o_ptr = &inventory[i];
-
-               /* Skip non-objects */
                if (!o_ptr->k_idx) continue;
 
                /* Recharge activatable objects */
@@ -2810,8 +2810,6 @@ static void process_world_aux_recharge(void)
        {
                object_type *o_ptr = &inventory[i];
                object_kind *k_ptr = &k_info[o_ptr->k_idx];
-
-               /* Skip non-objects */
                if (!o_ptr->k_idx) continue;
 
                /* Examine all charging rods or stacks of charging rods. */