OSDN Git Service

[Refactor] #40414 Moved confusing_light() from spells2.c/h to racial-mirror-master.c/h
authorHourier <hourier@users.sourceforge.jp>
Thu, 4 Jun 2020 12:30:37 +0000 (21:30 +0900)
committerHourier <hourier@users.sourceforge.jp>
Thu, 4 Jun 2020 12:30:37 +0000 (21:30 +0900)
src/mind/racial-mirror-master.c
src/mind/racial-mirror-master.h
src/spell/spells2.c
src/spell/spells2.h

index ed5e81a..ec5264d 100644 (file)
@@ -7,6 +7,7 @@
 #include "effect/spells-effect-util.h"
 #include "floor/floor.h"
 #include "spell/process-effect.h"
+#include "spell/spells-sight.h"
 #include "spell/spells-type.h"
 #include "term/gameterm.h"
 #include "view/display-main-window.h"
@@ -215,3 +216,19 @@ void seal_of_mirror(player_type *caster_ptr, HIT_POINT dam)
         }
     }
 }
+
+/*!
+ * 幻惑の光 @ 鏡使いだけでなく混沌の戦士も使える
+ * @param creature_ptr プレーヤーへの参照ポインタ
+ * @return 常にTRUE
+ */
+bool confusing_light(player_type *creature_ptr)
+{
+    msg_print(_("辺りを睨んだ...", "You glare nearby monsters..."));
+    slow_monsters(creature_ptr, creature_ptr->lev);
+    stun_monsters(creature_ptr, creature_ptr->lev * 4);
+    confuse_monsters(creature_ptr, creature_ptr->lev * 4);
+    turn_monsters(creature_ptr, creature_ptr->lev * 4);
+    stasis_monsters(creature_ptr, creature_ptr->lev * 4);
+    return TRUE;
+}
index 28f559a..73999cc 100644 (file)
@@ -7,3 +7,4 @@ bool mirror_concentration(player_type *creature_ptr);
 void remove_all_mirrors(player_type *caster_ptr, bool explode);
 bool binding_field(player_type *caster_ptr, HIT_POINT dam);
 void seal_of_mirror(player_type *caster_ptr, HIT_POINT dam);
+bool confusing_light(player_type *creature_ptr);
index 656990a..50b2070 100644 (file)
@@ -2197,23 +2197,6 @@ bool sword_dancing(player_type *creature_ptr)
 }
 
 
-/*!
- * 幻惑の光
- * @param creature_ptr プレーヤーへの参照ポインタ
- * @return 常にTRUE
-*/
-bool confusing_light(player_type *creature_ptr)
-{
-       msg_print(_("辺りを睨んだ...", "You glare nearby monsters..."));
-       slow_monsters(creature_ptr, creature_ptr->lev);
-       stun_monsters(creature_ptr, creature_ptr->lev * 4);
-       confuse_monsters(creature_ptr, creature_ptr->lev * 4);
-       turn_monsters(creature_ptr, creature_ptr->lev * 4);
-       stasis_monsters(creature_ptr, creature_ptr->lev * 4);
-       return TRUE;
-}
-
-
 bool clear_mind(player_type *creature_ptr)
 {
        if (total_friends)
index cbb3401..c5e74af 100644 (file)
@@ -49,6 +49,5 @@ bool comvert_hp_to_mp(player_type* creature_ptr);
 bool comvert_mp_to_hp(player_type* creature_ptr);
 bool demonic_breath(player_type* creature_ptr);
 bool sword_dancing(player_type* creature_ptr);
-bool confusing_light(player_type* creature_ptr);
 bool clear_mind(player_type* creature_ptr);
 bool vanish_dungeon(player_type* caster_ptr);