#include "angband.h"
-#include "projection.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"
+
/*!
}
/*!
-* @brief モンスターIDからモンスターのレベルを取得する(ただし最低1を保証する) /
-* @param m_idx モンスターID
-* @return モンスターのレベル
-*/
-DEPTH monster_level_idx(MONSTER_IDX m_idx)
-{
- monster_type *m_ptr = ¤t_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 = ¤t_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を返す。
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;
}