2 * @brief モンスターがプレーヤーへ攻撃する処理に関するユーティリティ
7 #include "combat/monster-attack-util.h"
8 #include "floor/floor.h"
10 monap_type *initialize_monap_type(player_type *target_ptr, monap_type *monap_ptr, MONSTER_IDX m_idx)
13 monap_ptr->abbreviate = 0;
15 monap_ptr->m_idx = m_idx;
16 floor_type *floor_ptr = target_ptr->current_floor_ptr;
17 monap_ptr->m_ptr = &floor_ptr->m_list[m_idx];
18 monap_ptr->act = NULL;
19 monap_ptr->touched = FALSE;
20 monap_ptr->explode = FALSE;
21 monap_ptr->do_silly_attack = one_in_(2) && target_ptr->image;
22 monap_ptr->obvious = FALSE;
23 monap_ptr->get_damage = 0;
24 monap_ptr->alive = FALSE;
25 monap_ptr->fear = FALSE;