OSDN Git Service

[Refactor] #37353 externs.h から util.h への宣言移動。
[hengband/hengband.git] / src / mspells4.c
index aae08f1..4185194 100644 (file)
@@ -7,12 +7,21 @@
 
 
 #include "angband.h"
+#include "util.h"
+
+#include "floor.h"
+#include "grid.h"
 #include "spells-summon.h"
 #include "artifact.h"
 #include "player-status.h"
 #include "realm-hex.h"
 #include "player-move.h"
 #include "monster-spell.h"
+#include "monster-status.h"
+#include "spells.h"
+#include "melee.h"
+#include "player-effects.h"
+
 
 
 /*!
@@ -55,32 +64,6 @@ bool spell_learnable(MONSTER_IDX m_idx)
 }
 
 /*!
-* @brief モンスターIDからモンスターのレベルを取得する(ただし最低1を保証する) /
-* @param m_idx モンスターID
-* @return モンスターのレベル
-*/
-DEPTH monster_level_idx(MONSTER_IDX m_idx)
-{
-       monster_type *m_ptr = &current_floor_ptr->m_list[m_idx];
-       monster_race *r_ptr = &r_info[m_ptr->r_idx];
-       DEPTH rlev = ((r_ptr->level >= 1) ? r_ptr->level : 1);
-       return rlev;
-}
-
-/*!
-* @brief モンスターIDからPOWERFULフラグの有無を取得する /
-* @param m_idx モンスターID
-* @return POWERFULフラグがあればTRUE、なければFALSEを返す。
-*/
-bool monster_is_powerful(MONSTER_IDX m_idx)
-{
-       monster_type    *m_ptr = &current_floor_ptr->m_list[m_idx];
-       monster_race    *r_ptr = &r_info[m_ptr->r_idx];
-       bool powerful = r_ptr->flags2 & RF2_POWERFUL ? TRUE : FALSE;
-       return powerful;
-}
-
-/*!
 * @brief 特定条件のモンスター召喚のみPM_ALLOW_UNIQUEを許可する /
 * @param m_idx モンスターID
 * @return 召喚可能であればPM_ALLOW_UNIQUEを返す。
@@ -1936,7 +1919,7 @@ HIT_POINT spell_RF6_WORLD(MONSTER_IDX m_idx)
        disturb(TRUE, TRUE);
        if (m_ptr->r_idx == MON_DIO) who = 1;
        else if (m_ptr->r_idx == MON_WONG) who = 3;
-       if (!process_the_world(randint1(2) + 2, who, TRUE)) return (FALSE);
+       if (!set_monster_timewalk(randint1(2) + 2, who, TRUE)) return (FALSE);
        return who;
 }