#include "util/quarks.h"
#include "util/string-processor.h"
-void have_kill_wall(player_type *creature_ptr)
+bool have_kill_wall(player_type *creature_ptr)
{
- creature_ptr->kill_wall = FALSE;
-
- if (creature_ptr->mimic_form == MIMIC_DEMON_LORD) {
- creature_ptr->kill_wall = TRUE;
- }
-
- if (music_singing(creature_ptr, MUSIC_WALL)) {
- creature_ptr->kill_wall = TRUE;
+ if (creature_ptr->mimic_form == MIMIC_DEMON_LORD || music_singing(creature_ptr, MUSIC_WALL)) {
+ return TRUE;
}
if (creature_ptr->riding) {
monster_type *riding_m_ptr = &creature_ptr->current_floor_ptr->m_list[creature_ptr->riding];
monster_race *riding_r_ptr = &r_info[riding_m_ptr->r_idx];
if (riding_r_ptr->flags2 & RF2_KILL_WALL)
- creature_ptr->kill_wall = TRUE;
+ return TRUE;
}
+
+ return FALSE;
}
bool have_pass_wall(player_type *creature_ptr)
#include "player/player-status.h"
bool have_pass_wall(player_type *creature_ptr);
-void have_kill_wall(player_type *creature_ptr);
+bool have_kill_wall(player_type *creature_ptr);
void have_xtra_might(player_type *creature_ptr);
void have_esp_evil(player_type *creature_ptr);
void have_esp_animal(player_type *creature_ptr);
calc_weapon_weight_limit(creature_ptr);
creature_ptr->pass_wall = have_pass_wall(creature_ptr);
- have_kill_wall(creature_ptr);
+ creature_ptr->kill_wall = have_kill_wall(creature_ptr);
have_xtra_might(creature_ptr);
have_esp_evil(creature_ptr);
have_esp_animal(creature_ptr);