OSDN Git Service

[Refactor] #40414 Separated spells-charm.c/h from spells2.c/h
authorHourier <hourier@users.sourceforge.jp>
Fri, 5 Jun 2020 11:37:44 +0000 (20:37 +0900)
committerHourier <hourier@users.sourceforge.jp>
Fri, 5 Jun 2020 11:37:44 +0000 (20:37 +0900)
23 files changed:
Hengband/Hengband/Hengband.vcxproj
Hengband/Hengband/Hengband.vcxproj.filters
src/Makefile.am
src/cmd-item/cmd-activate.c
src/cmd-item/cmd-zaprod.c
src/cmd-item/cmd-zapwand.c
src/core/player-processor.c
src/grid/trap.c
src/inventory/inventory-curse.c
src/monster/monster-status.c
src/monster/monster-status.h
src/mspell/mspells2.c
src/mutation/mutation.c
src/player/patron.c
src/realm/realm-death.c
src/realm/realm-nature.c
src/realm/realm-sorcery.c
src/specific-object/chest.c
src/spell-kind/spells-charm.c [new file with mode: 0644]
src/spell-kind/spells-charm.h [new file with mode: 0644]
src/spell/spells2.c
src/spell/spells2.h
src/spell/spells3.c

index d8c6d16..9d680ea 100644 (file)
     <ClCompile Include="..\..\src\mspell\mspell-util.c" />\r
     <ClCompile Include="..\..\src\mspell\mspell-ball.c" />\r
     <ClCompile Include="..\..\src\spell-kind\spells-beam.c" />\r
+    <ClCompile Include="..\..\src\spell-kind\spells-chaos.c" />\r
+    <ClCompile Include="..\..\src\spell-kind\spells-charm.c" />\r
     <ClCompile Include="..\..\src\spell\spells-describer.c" />\r
     <ClCompile Include="..\..\src\spell-kind\spells-detection.c" />\r
     <ClCompile Include="..\..\src\spell-kind\spells-genocide.c" />\r
     <ClInclude Include="..\..\src\realm\realm-hex-numbers.h" />\r
     <ClInclude Include="..\..\src\realm\realm-song-numbers.h" />\r
     <ClInclude Include="..\..\src\spell-kind\spells-beam.h" />\r
+    <ClInclude Include="..\..\src\spell-kind\spells-chaos.h" />\r
+    <ClInclude Include="..\..\src\spell-kind\spells-charm.h" />\r
     <ClInclude Include="..\..\src\spell\spells-describer.h" />\r
     <ClInclude Include="..\..\src\spell-kind\spells-genocide.h" />\r
     <ClInclude Include="..\..\src\spell\spells-hex.h" />\r
index fdf0da6..2cfda83 100644 (file)
     <ClCompile Include="..\..\src\spell-kind\spells-world.c">
       <Filter>spell-kind</Filter>
     </ClCompile>
+    <ClCompile Include="..\..\src\spell-kind\spells-chaos.c">
+      <Filter>spell-kind</Filter>
+    </ClCompile>
+    <ClCompile Include="..\..\src\spell-kind\spells-charm.c">
+      <Filter>spell-kind</Filter>
+    </ClCompile>
   </ItemGroup>
   <ItemGroup>
     <ClInclude Include="..\..\src\cmd\cmd-basic.h">
     <ClInclude Include="..\..\src\spell-kind\spells-world.h">
       <Filter>spell-kind</Filter>
     </ClInclude>
+    <ClInclude Include="..\..\src\spell-kind\spells-chaos.h">
+      <Filter>spell-kind</Filter>
+    </ClInclude>
+    <ClInclude Include="..\..\src\spell-kind\spells-charm.h">
+      <Filter>spell-kind</Filter>
+    </ClInclude>
   </ItemGroup>
   <ItemGroup>
     <None Include="..\..\src\wall.bmp" />
index 87dbf2d..db86262 100644 (file)
@@ -403,6 +403,7 @@ hengband_SOURCES = \
        \
        spell-kind/spells-beam.c spell-kind/spells-beam.h \
        spell-kind/spells-chaos.c spell-kind/spells-chaos.h \
+       spell-kind/spells-charm.c spell-kind/spells-charm.h \
        spell-kind/spells-detection.c spell-kind/spells-detection.h \
        spell-kind/spells-floor.c spell-kind/spells-floor.h \
        spell-kind/spells-genocide.c spell-kind/spells-genocide.h \
index 711e388..b94a6af 100644 (file)
@@ -30,6 +30,7 @@
 #include "spell/process-effect.h"
 #include "spell-kind/spells-beam.h"
 #include "spell-kind/spells-chaos.h"
+#include "spell-kind/spells-charm.h"
 #include "spell-kind/spells-detection.h"
 #include "spell-kind/spells-floor.h"
 #include "spell-kind/spells-genocide.h"
@@ -44,7 +45,6 @@
 #include "spell/spells-summon.h"
 #include "spell-kind/spells-teleport.h"
 #include "spell/spells-type.h"
-#include "spell/spells2.h"
 #include "spell/spells3.h"
 #include "world/world.h"
 
index cae0b3d..34f1c8a 100644 (file)
@@ -27,7 +27,6 @@
 #include "spell/spells-status.h"
 #include "spell-kind/spells-teleport.h"
 #include "spell/spells-type.h"
-#include "spell/spells2.h"
 #include "spell/spells3.h"
 #include "util/util.h"
 #include "view/display-main-window.h"
index d04a75b..42e37b8 100644 (file)
@@ -16,6 +16,7 @@
 #include "player/player-effects.h"
 #include "player/player-status.h"
 #include "spell-kind/spells-beam.h"
+#include "spell-kind/spells-charm.h"
 #include "spell-kind/spells-launcher.h"
 #include "spell-kind/spells-lite.h"
 #include "spell-kind/spells-neighbor.h"
@@ -23,7 +24,6 @@
 #include "spell/spells-status.h"
 #include "spell-kind/spells-teleport.h"
 #include "spell/spells-type.h"
-#include "spell/spells2.h"
 #include "util/util.h"
 #include "view/display-main-window.h"
 #include "view/object-describer.h"
index 8f4de36..330da35 100644 (file)
@@ -16,7 +16,6 @@
 #include "spell/music-checker.h"
 #include "spell-kind/spells-chaos.h"
 #include "spell/spells-hex.h"
-#include "spell/spells2.h" // 相互依存している。後でどうするか検討する.
 #include "view/display-main-window.h"
 
 bool load = TRUE;
index 9fc09d2..45cfb0d 100644 (file)
@@ -27,7 +27,6 @@
 #include "spell/spells-summon.h"
 #include "spell-kind/spells-teleport.h"
 #include "spell/spells-type.h"
-#include "spell/spells2.h"
 #include "util/util.h"
 #include "world/world.h"
 
index 0488db6..c7f425e 100644 (file)
@@ -15,7 +15,6 @@
 #include "spell-kind/spells-chaos.h"
 #include "spell-kind/spells-teleport.h"
 #include "spell/spells-summon.h"
-#include "spell/spells2.h"
 
 #define TRC_P_FLAG_MASK \
     (TRC_TELEPORT_SELF | TRC_CHAINSWORD | TRC_TY_CURSE | TRC_DRAIN_EXP | TRC_ADD_L_CURSE | TRC_ADD_H_CURSE | TRC_CALL_ANIMAL | TRC_CALL_DEMON \
index 284d8c1..2332dd5 100644 (file)
@@ -1,34 +1,32 @@
-#include "system/angband.h"
-#include "core/stuff-handler.h"
-#include "util/util.h"
-#include "main/sound-definitions-table.h"
-#include "monster/creature.h"
-#include "io/write-diary.h"
+#include "monster/monster-status.h"
 #include "autopick/autopick-pref-processor.h"
-#include "cmd/cmd-draw.h"
 #include "cmd-io/cmd-dump.h"
+#include "cmd/cmd-draw.h"
+#include "combat/monster-attack-effect.h"
+#include "combat/monster-attack-types.h"
+#include "core/stuff-handler.h"
 #include "dungeon/dungeon.h"
 #include "floor/floor.h"
 #include "grid/grid.h"
-#include "monster/monster.h"
-#include "monster/monster-status.h"
-#include "mspell/monster-spell.h"
+#include "io/files-util.h"
+#include "io/report.h"
+#include "io/write-diary.h"
+#include "main/sound-definitions-table.h"
+#include "monster/creature.h"
 #include "monster/monster-process.h"
-#include "spell/spells2.h"
-#include "spell/spells-summon.h"
 #include "monster/monster-race-hook.h"
-#include "object-enchant/object-curse.h"
+#include "monster/monster.h"
+#include "mspell/monster-spell.h"
 #include "object-enchant/artifact.h"
+#include "object-enchant/object-curse.h"
 #include "player/avatar.h"
-#include "io/files-util.h"
 #include "player/player-effects.h"
 #include "player/player-personalities-table.h"
+#include "spell-kind/spells-chaos.h"
+#include "spell/spells-summon.h"
+#include "util/util.h"
 #include "view/display-main-window.h"
 #include "world/world.h"
-#include "io/report.h"
-#include "combat/monster-attack-effect.h"
-#include "combat/monster-attack-types.h"
-#include "spell-kind/spells-chaos.h"
 
 /*!
 * @brief モンスターIDからPOWERFULフラグの有無を取得する /
index 97c879a..b4f52d6 100644 (file)
@@ -1,25 +1,27 @@
 #pragma once
 
-extern bool monster_is_powerful(floor_type *floor_ptr, MONSTER_IDX m_idx);
-extern DEPTH monster_level_idx(floor_type *floor_ptr, MONSTER_IDX m_idx);
+#include "system/angband.h"
 
-extern HIT_POINT mon_damage_mod(player_type *target_ptr, monster_type *m_ptr, HIT_POINT dam, bool is_psy_spear);
-extern bool mon_take_hit(player_type *target_ptr, MONSTER_IDX m_idx, HIT_POINT dam, bool *fear, concptr note);
-extern int get_mproc_idx(floor_type *floor_ptr, MONSTER_IDX m_idx, int mproc_type);
-extern bool monster_is_valid(monster_type *m_ptr);
+bool monster_is_powerful(floor_type *floor_ptr, MONSTER_IDX m_idx);
+DEPTH monster_level_idx(floor_type *floor_ptr, MONSTER_IDX m_idx);
 
-extern bool set_monster_csleep(player_type *target_ptr, MONSTER_IDX m_idx, int v);
-extern bool set_monster_fast(player_type *target_ptr, MONSTER_IDX m_idx, int v);
-extern bool set_monster_slow(player_type *target_ptr, MONSTER_IDX m_idx, int v);
-extern bool set_monster_stunned(player_type *target_ptr, MONSTER_IDX m_idx, int v);
-extern bool set_monster_confused(player_type *target_ptr, MONSTER_IDX m_idx, int v);
-extern bool set_monster_monfear(player_type *target_ptr, MONSTER_IDX m_idx, int v);
-extern bool set_monster_invulner(player_type *target_ptr, MONSTER_IDX m_idx, int v, bool energy_need);
-extern bool set_monster_timewalk(player_type *target_ptr, int num, MONSTER_IDX who, bool vs_player);
+HIT_POINT mon_damage_mod(player_type *target_ptr, monster_type *m_ptr, HIT_POINT dam, bool is_psy_spear);
+bool mon_take_hit(player_type *target_ptr, MONSTER_IDX m_idx, HIT_POINT dam, bool *fear, concptr note);
+int get_mproc_idx(floor_type *floor_ptr, MONSTER_IDX m_idx, int mproc_type);
+bool monster_is_valid(monster_type *m_ptr);
 
-extern void dispel_monster_status(player_type *target_ptr, MONSTER_IDX m_idx);
-extern void monster_gain_exp(player_type *target_ptr, MONSTER_IDX m_idx, MONRACE_IDX s_idx);
+bool set_monster_csleep(player_type *target_ptr, MONSTER_IDX m_idx, int v);
+bool set_monster_fast(player_type *target_ptr, MONSTER_IDX m_idx, int v);
+bool set_monster_slow(player_type *target_ptr, MONSTER_IDX m_idx, int v);
+bool set_monster_stunned(player_type *target_ptr, MONSTER_IDX m_idx, int v);
+bool set_monster_confused(player_type *target_ptr, MONSTER_IDX m_idx, int v);
+bool set_monster_monfear(player_type *target_ptr, MONSTER_IDX m_idx, int v);
+bool set_monster_invulner(player_type *target_ptr, MONSTER_IDX m_idx, int v, bool energy_need);
+bool set_monster_timewalk(player_type *target_ptr, int num, MONSTER_IDX who, bool vs_player);
 
-extern int get_mproc_idx(floor_type *floor_ptr, MONSTER_IDX m_idx, int mproc_type);
-extern void mproc_init(floor_type *floor_ptr);
-extern void process_monsters_mtimed(player_type *target_ptr, int mtimed_idx);
+void dispel_monster_status(player_type *target_ptr, MONSTER_IDX m_idx);
+void monster_gain_exp(player_type *target_ptr, MONSTER_IDX m_idx, MONRACE_IDX s_idx);
+
+int get_mproc_idx(floor_type *floor_ptr, MONSTER_IDX m_idx, int mproc_type);
+void mproc_init(floor_type *floor_ptr);
+void process_monsters_mtimed(player_type *target_ptr, int mtimed_idx);
index 4ac9b4f..155c22d 100644 (file)
@@ -1,5 +1,4 @@
 /*!
- * @file mspells2.c
  * @brief モンスター魔法の実装(対モンスター処理) / Monster spells (attack monster)
  * @date 2014/01/17
  * @author
index 4f457c0..7150c37 100644 (file)
 #include "player/player-races-table.h"
 #include "player/player-status.h"
 #include "player/selfinfo.h"
+#include "spell-kind/spells-charm.h"
 #include "spell-kind/spells-detection.h"
 #include "spell-kind/spells-floor.h"
 #include "spell-kind/spells-launcher.h"
 #include "spell-kind/spells-lite.h"
 #include "spell-kind/spells-sight.h"
+#include "spell-kind/spells-teleport.h"
 #include "spell/spells-status.h"
 #include "spell/spells-summon.h"
-#include "spell-kind/spells-teleport.h"
 #include "spell/spells-type.h"
 #include "spell/spells2.h"
 #include "spell/spells3.h"
index 8d65f2f..50723b6 100644 (file)
@@ -24,7 +24,6 @@
 #include "spell/spells-status.h"
 #include "spell/spells-summon.h"
 #include "spell/spells-type.h"
-#include "spell/spells2.h"
 #include "util/util.h"
 
 #ifdef JP
index 95cb061..d3e9d96 100644 (file)
@@ -8,19 +8,19 @@
 #include "player/player-effects.h"
 #include "player/player-race.h"
 #include "player/player-status.h"
-#include "spell/process-effect.h"
+#include "spell-kind/spells-charm.h"
 #include "spell-kind/spells-detection.h"
-#include "spell/spells-diceroll.h"
 #include "spell-kind/spells-genocide.h"
 #include "spell-kind/spells-launcher.h"
 #include "spell-kind/spells-neighbor.h"
-#include "spell/spells-object.h"
 #include "spell-kind/spells-sight.h"
 #include "spell-kind/spells-specific-bolt.h"
+#include "spell/process-effect.h"
+#include "spell/spells-diceroll.h"
+#include "spell/spells-object.h"
 #include "spell/spells-status.h"
 #include "spell/spells-summon.h"
 #include "spell/spells-type.h"
-#include "spell/spells2.h"
 #include "spell/spells3.h"
 
 /*!
index 45ff32d..6481c70 100644 (file)
@@ -6,26 +6,26 @@
 #include "io/targeting.h"
 #include "object/object-generator.h"
 #include "object/object-kind-hook.h"
-#include "sv-definition/sv-food-types.h"
 #include "player/avatar.h"
 #include "player/player-damage.h"
 #include "player/player-effects.h"
 #include "player/player-races-table.h"
-#include "spell/process-effect.h"
 #include "spell-kind/spells-beam.h"
+#include "spell-kind/spells-charm.h"
 #include "spell-kind/spells-detection.h"
-#include "spell/spells-diceroll.h"
 #include "spell-kind/spells-floor.h"
 #include "spell-kind/spells-launcher.h"
 #include "spell-kind/spells-lite.h"
 #include "spell-kind/spells-neighbor.h"
-#include "spell/spells-object.h"
 #include "spell-kind/spells-sight.h"
+#include "spell/process-effect.h"
+#include "spell/spells-diceroll.h"
+#include "spell/spells-object.h"
 #include "spell/spells-status.h"
 #include "spell/spells-summon.h"
 #include "spell/spells-type.h"
-#include "spell/spells2.h"
 #include "spell/spells3.h"
+#include "sv-definition/sv-food-types.h"
 #include "util/util.h"
 
 /*!
index 135e2d7..a073c7a 100644 (file)
@@ -4,15 +4,15 @@
 #include "player/avatar.h"
 #include "player/player-effects.h"
 #include "player/selfinfo.h"
+#include "spell-kind/spells-charm.h"
 #include "spell-kind/spells-detection.h"
 #include "spell-kind/spells-floor.h"
 #include "spell-kind/spells-launcher.h"
 #include "spell-kind/spells-lite.h"
 #include "spell-kind/spells-sight.h"
-#include "spell/spells-status.h"
 #include "spell-kind/spells-teleport.h"
+#include "spell/spells-status.h"
 #include "spell/spells-type.h"
-#include "spell/spells2.h"
 #include "spell/spells3.h"
 #include "util/util.h"
 
index 21e5d5b..bcf584a 100644 (file)
@@ -16,7 +16,6 @@
 #include "spell-kind/spells-sight.h"
 #include "spell/spells-summon.h"
 #include "spell/spells-type.h"
-#include "spell/spells2.h"
 #include "spell/spells3.h"
 #include "util/util.h"
 
diff --git a/src/spell-kind/spells-charm.c b/src/spell-kind/spells-charm.c
new file mode 100644 (file)
index 0000000..954d918
--- /dev/null
@@ -0,0 +1,56 @@
+#include "spell-kind/spells-charm.h"
+#include "effect/effect-characteristics.h"
+#include "spell-kind/spells-launcher.h"
+#include "spell/spells-type.h"
+
+/*!
+ * @brief チャーム・モンスター(1体)
+ * @param caster_ptr プレーヤーへの参照ポインタ
+ * @param dir 方向(5ならばグローバル変数 target_col/target_row の座標を目標にする)
+ * @param plev パワー
+ * @return 作用が実際にあった場合TRUEを返す
+ */
+bool charm_monster(player_type *caster_ptr, DIRECTION dir, PLAYER_LEVEL plev)
+{
+    BIT_FLAGS flg = PROJECT_STOP | PROJECT_KILL;
+    return (project_hook(caster_ptr, GF_CHARM, dir, plev, flg));
+}
+
+/*!
+ * @brief アンデッド支配(1体)
+ * @param caster_ptr プレーヤーへの参照ポインタ
+ * @param dir 方向(5ならばグローバル変数 target_col/target_row の座標を目標にする)
+ * @param plev パワー
+ * @return 作用が実際にあった場合TRUEを返す
+ */
+bool control_one_undead(player_type *caster_ptr, DIRECTION dir, PLAYER_LEVEL plev)
+{
+    BIT_FLAGS flg = PROJECT_STOP | PROJECT_KILL;
+    return (project_hook(caster_ptr, GF_CONTROL_UNDEAD, dir, plev, flg));
+}
+
+/*!
+ * @brief 悪魔支配(1体)
+ * @param caster_ptr プレーヤーへの参照ポインタ
+ * @param dir 方向(5ならばグローバル変数 target_col/target_row の座標を目標にする)
+ * @param plev パワー
+ * @return 作用が実際にあった場合TRUEを返す
+ */
+bool control_one_demon(player_type *caster_ptr, DIRECTION dir, PLAYER_LEVEL plev)
+{
+    BIT_FLAGS flg = PROJECT_STOP | PROJECT_KILL;
+    return (project_hook(caster_ptr, GF_CONTROL_DEMON, dir, plev, flg));
+}
+
+/*!
+ * @brief 動物支配(1体)
+ * @param caster_ptr プレーヤーへの参照ポインタ
+ * @param dir 方向(5ならばグローバル変数 target_col/target_row の座標を目標にする)
+ * @param plev パワー
+ * @return 作用が実際にあった場合TRUEを返す
+ */
+bool charm_animal(player_type *caster_ptr, DIRECTION dir, PLAYER_LEVEL plev)
+{
+    BIT_FLAGS flg = PROJECT_STOP | PROJECT_KILL;
+    return (project_hook(caster_ptr, GF_CONTROL_ANIMAL, dir, plev, flg));
+}
diff --git a/src/spell-kind/spells-charm.h b/src/spell-kind/spells-charm.h
new file mode 100644 (file)
index 0000000..d2a6022
--- /dev/null
@@ -0,0 +1,8 @@
+#pragma once
+
+#include "system/angband.h"
+
+bool charm_monster(player_type *caster_ptr, DIRECTION dir, PLAYER_LEVEL plev);
+bool control_one_undead(player_type *caster_ptr, DIRECTION dir, PLAYER_LEVEL plev);
+bool control_one_demon(player_type *caster_ptr, DIRECTION dir, PLAYER_LEVEL plev);
+bool charm_animal(player_type *caster_ptr, DIRECTION dir, PLAYER_LEVEL plev);
index 83a3c50..4bfa399 100644 (file)
@@ -50,6 +50,7 @@
 #include "player/player-effects.h"
 #include "player/player-skill.h"
 #include "player/player-status.h"
+#include "spell-kind/spells-charm.h"
 #include "spell/process-effect.h"
 #include "spell/spells-diceroll.h"
 #include "spell-kind/spells-chaos.h"
 #include "world/world.h"
 
 /*!
- * @brief チャーム・モンスター(1体)
- * @param caster_ptr プレーヤーへの参照ポインタ
- * @param dir 方向(5ならばグローバル変数 target_col/target_row の座標を目標にする)
- * @param plev パワー
- * @return 作用が実際にあった場合TRUEを返す
- */
-bool charm_monster(player_type *caster_ptr, DIRECTION dir, PLAYER_LEVEL plev)
-{
-       BIT_FLAGS flg = PROJECT_STOP | PROJECT_KILL;
-       return (project_hook(caster_ptr, GF_CHARM, dir, plev, flg));
-}
-
-
-/*!
- * @brief アンデッド支配(1体)
- * @param caster_ptr プレーヤーへの参照ポインタ
- * @param dir 方向(5ならばグローバル変数 target_col/target_row の座標を目標にする)
- * @param plev パワー
- * @return 作用が実際にあった場合TRUEを返す
- */
-bool control_one_undead(player_type *caster_ptr, DIRECTION dir, PLAYER_LEVEL plev)
-{
-       BIT_FLAGS flg = PROJECT_STOP | PROJECT_KILL;
-       return (project_hook(caster_ptr, GF_CONTROL_UNDEAD, dir, plev, flg));
-}
-
-
-/*!
- * @brief 悪魔支配(1体)
- * @param caster_ptr プレーヤーへの参照ポインタ
- * @param dir 方向(5ならばグローバル変数 target_col/target_row の座標を目標にする)
- * @param plev パワー
- * @return 作用が実際にあった場合TRUEを返す
- */
-bool control_one_demon(player_type *caster_ptr, DIRECTION dir, PLAYER_LEVEL plev)
-{
-       BIT_FLAGS flg = PROJECT_STOP | PROJECT_KILL;
-       return (project_hook(caster_ptr, GF_CONTROL_DEMON, dir, plev, flg));
-}
-
-
-/*!
- * @brief 動物支配(1体)
- * @param caster_ptr プレーヤーへの参照ポインタ
- * @param dir 方向(5ならばグローバル変数 target_col/target_row の座標を目標にする)
- * @param plev パワー
- * @return 作用が実際にあった場合TRUEを返す
- */
-bool charm_animal(player_type *caster_ptr, DIRECTION dir, PLAYER_LEVEL plev)
-{
-       BIT_FLAGS flg = PROJECT_STOP | PROJECT_KILL;
-       return (project_hook(caster_ptr, GF_CONTROL_ANIMAL, dir, plev, flg));
-}
-
-
-/*!
 * @brief カオス魔法「流星群」の処理としてプレイヤーを中心に隕石落下処理を10+1d10回繰り返す。
 * / Drop 10+1d10 meteor ball at random places near the player
 * @param caster_ptr プレーヤーへの参照ポインタ
@@ -521,10 +466,10 @@ bool vampirism(player_type *caster_ptr)
 
 
 /*!
-* ヒット&アウェイのレイシャルパワー/突然変異
-* @param caster_ptr プレーヤーへの参照ポインタ
-* @return コマンドの入力先にモンスターがいたらTRUE
-*/
+ * ヒット&アウェイのレイシャルパワー/突然変異
+ * @param caster_ptr プレーヤーへの参照ポインタ
+ * @return コマンドの入力先にモンスターがいたらTRUE
+ */
 bool hit_and_away(player_type *caster_ptr)
 {
        DIRECTION dir;
index ea2f0f7..6392dd9 100644 (file)
@@ -2,10 +2,6 @@
 
 #include "system/angband.h"
 
-bool charm_monster(player_type* caster_ptr, DIRECTION dir, PLAYER_LEVEL plev);
-bool control_one_undead(player_type* caster_ptr, DIRECTION dir, PLAYER_LEVEL plev);
-bool control_one_demon(player_type* caster_ptr, DIRECTION dir, PLAYER_LEVEL plev);
-bool charm_animal(player_type* caster_ptr, DIRECTION dir, PLAYER_LEVEL plev);
 bool eat_magic(player_type* caster_ptr, int power);
 void wild_magic(player_type* caster_ptr, int spell);
 void cast_meteor(player_type* caster_ptr, HIT_POINT dam, POSITION rad);
index 8c18a08..fd591e9 100644 (file)
@@ -69,7 +69,6 @@
 #include "spell-kind/spells-sight.h"
 #include "spell/spells-summon.h"
 #include "spell-kind/spells-teleport.h"
-#include "spell/spells2.h"
 #include "spell/technic-info-table.h"
 #include "term/gameterm.h"
 #include "util/util.h"