MONSTER_IDX t_idx = dummy;
monster_type *t_ptr;
t_ptr = &floor_ptr->m_list[t_idx];
-
if (t_ptr == m_ptr) continue;
if (!monster_is_valid(t_ptr)) continue;
-
if (decide_pet_approch_direction(target_ptr, m_ptr, t_ptr)) continue;
if (!are_enemies(target_ptr, m_ptr, t_ptr)) continue;
*y = t_ptr->fy;
*x = t_ptr->fx;
-
- break;
+ return;
}
}
}
+/*!
+ * @brief モンスターの移動方向を保存する
+ * @param mm 移動方向
+ * @param y 移動先Y座標
+ * @param x 移動先X座標
+ */
void store_enemy_approch_direction(int *mm, POSITION y, POSITION x)
{
/* North, South, East, West, North-West, North-East, South-West, South-East */