#include "angband.h"
#include "cmd-pet.h"
#include "monster-hook.h"
+#include "monster-status.h"
#define HORDE_NOGOOD 0x01 /*!< (未実装フラグ)HORDE生成でGOODなモンスターの生成を禁止する? */
#define HORDE_NOEVIL 0x02 /*!< (未実装フラグ)HORDE生成でEVILなモンスターの生成を禁止する? */
* @param x 目標x座標
* @return なし
*/
-void set_target(monster_type *m_ptr, int y, int x)
+void set_target(monster_type *m_ptr, POSITION y, POSITION x)
{
m_ptr->target_y = y;
m_ptr->target_x = x;
*/
void delete_monster_idx(MONSTER_IDX i)
{
- int x, y;
-
+ POSITION x, y;
monster_type *m_ptr = &m_list[i];
-
monster_race *r_ptr = &r_info[m_ptr->r_idx];
-
- s16b this_o_idx, next_o_idx = 0;
-
+ OBJECT_IDX this_o_idx, next_o_idx = 0;
/* Get location */
y = m_ptr->fy;
x = m_ptr->fx;
-
/* Hack -- Reduce the racial counter */
real_r_ptr(m_ptr)->cur_num--;
if (!r_idx)
{
- int level;
+ DEPTH level;
chameleon_change_m_idx = m_idx;
if (old_unique)
* Use "slp" to choose the initial "sleep" status
* Use "monster_level" for the monster level
*/
-bool alloc_monster(int dis, BIT_FLAGS mode)
+bool alloc_monster(POSITION dis, BIT_FLAGS mode)
{
- int y = 0, x = 0;
- int attempts_left = 10000;
+ int y = 0, x = 0;
+ int attempts_left = 10000;
/* Put the Guardian */
if (alloc_guardian(FALSE)) return TRUE;