OSDN Git Service

[Refactor] #37353 explosive_rune() to spells-floor.c.
authordeskull <deskull@users.sourceforge.jp>
Wed, 6 Mar 2019 04:46:43 +0000 (13:46 +0900)
committerdeskull <deskull@users.sourceforge.jp>
Wed, 6 Mar 2019 04:46:43 +0000 (13:46 +0900)
src/externs.h
src/racial.c
src/spells-floor.c
src/spells-floor.h
src/spells3.c

index 64424d3..c0595e9 100644 (file)
@@ -960,7 +960,6 @@ extern void call_the_(void);
 extern void fetch(DIRECTION dir, WEIGHT wgt, bool require_los);
 extern void alter_reality(void);
 extern bool place_mirror(void);
-extern bool explosive_rune(void);
 extern void identify_pack(void);
 extern int remove_curse(void);
 extern int remove_all_curse(void);
index f125fb9..571e126 100644 (file)
@@ -21,6 +21,7 @@
 #include "player-status.h"
 #include "spells-status.h"
 #include "spells-object.h"
+#include "spells-floor.h"
 #include "cmd-spell.h"
 #include "realm-hex.h"
 
index 96e2033..835ca3c 100644 (file)
@@ -188,3 +188,28 @@ bool warding_glyph(void)
 
        return TRUE;
 }
+
+
+/*!
+ * @brief 爆発のルーン設置処理 /
+ * Leave an "explosive rune" which prevents monster movement
+ * @return 実際に設置が行われた場合TRUEを返す
+ */
+bool explosive_rune(void)
+{
+       if (!cave_clean_bold(p_ptr->y, p_ptr->x))
+       {
+               msg_print(_("床上のアイテムが呪文を跳ね返した。", "The object resists the spell."));
+               return FALSE;
+       }
+
+       /* Create a glyph */
+       current_floor_ptr->grid_array[p_ptr->y][p_ptr->x].info |= CAVE_OBJECT;
+       current_floor_ptr->grid_array[p_ptr->y][p_ptr->x].mimic = feat_explosive_rune;
+
+       note_spot(p_ptr->y, p_ptr->x);
+       lite_spot(p_ptr->y, p_ptr->x);
+
+       return TRUE;
+}
+
index c60431c..1a69807 100644 (file)
@@ -3,3 +3,4 @@
 extern void wiz_lite(bool ninja);
 extern void wiz_dark(void);
 extern bool warding_glyph(void);
+extern bool explosive_rune(void);
index 461003d..f239a60 100644 (file)
@@ -1608,30 +1608,6 @@ bool place_mirror(void)
 
 
 /*!
- * @brief 爆発のルーン設置処理 /
- * Leave an "explosive rune" which prevents monster movement
- * @return 実際に設置が行われた場合TRUEを返す
- */
-bool explosive_rune(void)
-{
-       if (!cave_clean_bold(p_ptr->y, p_ptr->x))
-       {
-               msg_print(_("床上のアイテムが呪文を跳ね返した。", "The object resists the spell."));
-               return FALSE;
-       }
-
-       /* Create a glyph */
-       current_floor_ptr->grid_array[p_ptr->y][p_ptr->x].info |= CAVE_OBJECT;
-       current_floor_ptr->grid_array[p_ptr->y][p_ptr->x].mimic = feat_explosive_rune;
-
-       note_spot(p_ptr->y, p_ptr->x);  
-       lite_spot(p_ptr->y, p_ptr->x);
-
-       return TRUE;
-}
-
-
-/*!
  * @brief 全所持アイテム鑑定処理 /
  * Identify everything being carried.
  * Done by a potion of "self knowledge".