#include "monster-hook.h"\r
\r
/*\r
-* Helper function for "glass room"\r
-*/\r
-static bool vault_aux_lite(MONRACE_IDX r_idx)\r
-{\r
- monster_race *r_ptr = &r_info[r_idx];\r
-\r
- /* Validate the monster */\r
- if (!vault_monster_okay(r_idx)) return FALSE;\r
-\r
- /* Require lite attack */\r
- if (!(r_ptr->flags4 & RF4_BR_LITE) && !(r_ptr->a_ability_flags1 & RF5_BA_LITE)) return FALSE;\r
-\r
- /* No wall passing monsters */\r
- if (r_ptr->flags2 & (RF2_PASS_WALL | RF2_KILL_WALL)) return FALSE;\r
-\r
- /* No disintegrating monsters */\r
- if (r_ptr->flags4 & RF4_BR_DISI) return FALSE;\r
-\r
- return TRUE;\r
-}\r
-\r
-/*\r
-* Helper function for "glass room"\r
-*/\r
-static bool vault_aux_shards(MONRACE_IDX r_idx)\r
-{\r
- monster_race *r_ptr = &r_info[r_idx];\r
-\r
- /* Validate the monster */\r
- if (!vault_monster_okay(r_idx)) return FALSE;\r
-\r
- /* Require shards breath attack */\r
- if (!(r_ptr->flags4 & RF4_BR_SHAR)) return FALSE;\r
-\r
- return TRUE;\r
-}\r
-\r
-/*\r
-* Hack -- determine if a template is potion\r
-*/\r
+ * Hack -- determine if a template is potion\r
+ */\r
static bool kind_is_potion(KIND_OBJECT_IDX k_idx)\r
{\r
return k_info[k_idx].tval == TV_POTION;\r