OSDN Git Service

[Refactor] #37353 VARTUE_LARGE, VARTUE_SMALL を avatar.h へ移動.
[hengband/hengband.git] / src / realm-hex.c
index f914a6f..720e97d 100644 (file)
  */
 
 #include "angband.h"
+#include "util.h"
+
+#include "floor.h"
 #include "cmd-spell.h"
 #include "cmd-quaff.h"
+#include "object-flavor.h"
 #include "object-hook.h"
 #include "object-curse.h"
 #include "spells-status.h"
+#include "spells.h"
 #include "player-status.h"
+#include "player-effects.h"
+#include "player-skill.h"
+#include "realm-hex.h"
+#include "grid.h"
+#include "monsterrace.h"
+#include "targeting.h"
+#include "realm-song.h"
+#include "view-mainwindow.h"
 
 #define MAX_KEEP 4 /*!<呪術の最大詠唱数 */
 
@@ -718,7 +731,7 @@ concptr do_hex_spell(SPELL_IDX spell, BIT_FLAGS mode)
                        o_ptr = choose_object(&item, q, s, (USE_EQUIP));
                        if (!o_ptr) return FALSE;
 
-                       o_ptr = &inventory[item];
+                       o_ptr = &p_ptr->inventory_list[item];
                        object_desc(o_name, o_ptr, OD_NAME_ONLY);
                        object_flags(o_ptr, f);
 
@@ -785,7 +798,7 @@ concptr do_hex_spell(SPELL_IDX spell, BIT_FLAGS mode)
                if (desc) return _("影のオーラを身にまとい、敵に影のダメージを与える。", "Gives aura of shadow.");
                if (cast)
                {
-                       object_type *o_ptr = &inventory[INVEN_OUTER];
+                       object_type *o_ptr = &p_ptr->inventory_list[INVEN_OUTER];
 
                        if (!o_ptr->k_idx)
                        {
@@ -804,7 +817,7 @@ concptr do_hex_spell(SPELL_IDX spell, BIT_FLAGS mode)
                }
                if (cont)
                {
-                       object_type *o_ptr = &inventory[INVEN_OUTER];
+                       object_type *o_ptr = &p_ptr->inventory_list[INVEN_OUTER];
 
                        if ((!o_ptr->k_idx) || (!object_is_cursed(o_ptr)))
                        {