*/
monsterrace_hook_type get_monster_hook2(POSITION y, POSITION x)
{
- feature_type *f_ptr = &f_info[cave[y][x].feat];
+ feature_type *f_ptr = &f_info[current_floor_ptr->grid_array[y][x].feat];
/* Set the monster list */
*/
bool monster_can_enter(POSITION y, POSITION x, monster_race *r_ptr, BIT_FLAGS16 mode)
{
- cave_type *c_ptr = &cave[y][x];
+ grid_type *g_ptr = ¤t_floor_ptr->grid_array[y][x];
/* Player or other monster */
if (player_bold(y, x)) return FALSE;
- if (c_ptr->m_idx) return FALSE;
+ if (g_ptr->m_idx) return FALSE;
- return monster_can_cross_terrain(c_ptr->feat, r_ptr, mode);
+ return monster_can_cross_terrain(g_ptr->feat, r_ptr, mode);
}
}
/* Reset the object level */
- object_level = base_level;
+ object_level = current_floor_ptr->base_level;
/* Reset "coin" type */
coin_type = 0;