OSDN Git Service

[Refactor] #37353 性格定義ID を player-personality.h へ移動.
[hengband/hengband.git] / src / mutation.c
index 7ba83a8..38a5690 100644 (file)
  */
 
 #include "angband.h"
+#include "core.h"
+#include "util.h"
+
+#include "cmd-dump.h"
 #include "mutation.h"
 
 #include "selfinfo.h"
 #include "spells-summon.h"
 #include "avatar.h"
 #include "player-status.h"
+#include "player-effects.h"
+#include "player-personality.h"
+#include "player-class.h"
 #include "spells-status.h"
+#include "object-hook.h"
+#include "spells.h"
+#include "cmd-basic.h"
+#include "files.h"
+#include "floor.h"
+#include "targeting.h"
+#include "player-race.h"
 
 /*!
  * @brief プレイヤーに突然変異を与える
@@ -2018,8 +2032,6 @@ void do_cmd_knowledge_mutations(void)
 
        /* Display the file contents */
        show_file(TRUE, file_name, _("突然変異", "Mutations"), 0, 0);
-
-       /* Remove the file */
        fd_kill(file_name);
 }
 
@@ -2174,7 +2186,7 @@ bool mutation_power_aux(int power)
 
                                for (i = 0; i < INVEN_TOTAL; i++)
                                {
-                                       object_type *o_ptr = &inventory[i];
+                                       object_type *o_ptr = &p_ptr->inventory_list[i];
 
                                        if (!o_ptr->k_idx) continue;
                                        if (!object_is_cursed(o_ptr)) continue;
@@ -2203,7 +2215,7 @@ bool mutation_power_aux(int power)
                                DIRECTION i;
                                for (i = 0; i < 8; i++)
                                {
-                                       summon_specific(-1, p_ptr->y, p_ptr->x, lvl, SUMMON_MOLD, PM_FORCE_PET, '\0');
+                                       summon_specific(-1, p_ptr->y, p_ptr->x, lvl, SUMMON_MOLD, PM_FORCE_PET);
                                }
                        }
                        break;