OSDN Git Service

[WIP] [Refactor] #39963 Separated spells2.h from spells1.h
[hengband/hengband.git] / src / chest.c
index 2351612..45c4dd8 100644 (file)
@@ -1,8 +1,8 @@
-
-#include "angband.h"
+#include "angband.h"
 #include "util.h"
+#include "main/sound-definitions-table.h"
 
-#include "spells.h"
+#include "spell/spells-type.h"
 #include "spells-summon.h"
 #include "floor.h"
 #include "trap.h"
@@ -11,7 +11,7 @@
 #include "player-class.h"
 #include "player-effects.h"
 #include "grid.h"
-#include "realm-song.h"
+#include "spell/spells2.h"
 
 /*!
 * @brief 箱からアイテムを引き出す /
@@ -99,7 +99,7 @@ void chest_death(player_type *owner_ptr, bool scatter, POSITION y, POSITION x, O
                                x = randint0(MAX_WID);
 
                                /* Must be an empty floor. */
-                               if (!cave_empty_bold(floor_ptr, y, x)) continue;
+                               if (!is_cave_empty_bold(owner_ptr, y, x)) continue;
 
                                /* Place the object there. */
                                (void)drop_near(owner_ptr, q_ptr, -1, y, x);