extern void health_track(MONSTER_IDX m_idx);
extern void monster_race_track(MONRACE_IDX r_idx);
extern void object_kind_track(KIND_OBJECT_IDX k_idx);
-extern void glow_deep_lava_and_bldg(void);
extern bool cave_monster_teleportable_bold(MONSTER_IDX m_idx, POSITION y, POSITION x, BIT_FLAGS mode);
extern bool cave_player_teleportable_bold(POSITION y, POSITION x, BIT_FLAGS mode);
extern bool is_open(FEAT_IDX feat);
#include "angband.h"
#include "floor.h"
+#include "floor-events.h"
#include "grid.h"
#include "monster.h"
#include "monster-status.h"
p_ptr->redraw |= (PR_DEPTH);
if (disturb_minor) disturb(FALSE, FALSE);
-}
\ No newline at end of file
+}
+
+
+/*
+ * Glow deep lava and building entrances in the floor
+ */
+void glow_deep_lava_and_bldg(void)
+{
+ POSITION y, x, yy, xx;
+ DIRECTION i;
+ grid_type *g_ptr;
+
+ /* Not in the darkness dungeon */
+ if (d_info[p_ptr->dungeon_idx].flags1 & DF1_DARKNESS) return;
+
+ for (y = 0; y < current_floor_ptr->height; y++)
+ {
+ for (x = 0; x < current_floor_ptr->width; x++)
+ {
+ g_ptr = ¤t_floor_ptr->grid_array[y][x];
+
+ /* Feature code (applying "mimic" field) */
+
+ if (have_flag(f_info[get_feat_mimic(g_ptr)].flags, FF_GLOW))
+ {
+ for (i = 0; i < 9; i++)
+ {
+ yy = y + ddy_ddd[i];
+ xx = x + ddx_ddd[i];
+ if (!in_bounds2(yy, xx)) continue;
+ current_floor_ptr->grid_array[yy][xx].info |= CAVE_GLOW;
+ }
+ }
+ }
+ }
+
+ /* Update the view and lite */
+ p_ptr->update |= (PU_VIEW | PU_LITE | PU_MON_LITE);
+
+ p_ptr->redraw |= (PR_MAP);
+}
void night_falls(void);
MONSTER_NUMBER count_all_hostile_monsters(void);
byte get_dungeon_feeling(void);
-void update_dungeon_feeling(void);
\ No newline at end of file
+void update_dungeon_feeling(void);
+extern void glow_deep_lava_and_bldg(void);
#include "floor.h"
#include "floor-streams.h"
#include "floor-generate.h"
+#include "floor-events.h"
#include "trap.h"
#include "monster.h"
#include "quest.h"
}
-
-/*
- * Glow deep lava and building entrances in the floor
- */
-void glow_deep_lava_and_bldg(void)
-{
- POSITION y, x, yy, xx;
- DIRECTION i;
- grid_type *g_ptr;
-
- /* Not in the darkness dungeon */
- if (d_info[p_ptr->dungeon_idx].flags1 & DF1_DARKNESS) return;
-
- for (y = 0; y < current_floor_ptr->height; y++)
- {
- for (x = 0; x < current_floor_ptr->width; x++)
- {
- g_ptr = ¤t_floor_ptr->grid_array[y][x];
-
- /* Feature code (applying "mimic" field) */
-
- if (have_flag(f_info[get_feat_mimic(g_ptr)].flags, FF_GLOW))
- {
- for (i = 0; i < 9; i++)
- {
- yy = y + ddy_ddd[i];
- xx = x + ddx_ddd[i];
- if (!in_bounds2(yy, xx)) continue;
- current_floor_ptr->grid_array[yy][xx].info |= CAVE_GLOW;
- }
- }
- }
- }
-
- /* Update the view and lite */
- p_ptr->update |= (PU_VIEW | PU_LITE | PU_MON_LITE);
-
- p_ptr->redraw |= (PR_MAP);
-}
-
/*!
* @brief 指定されたマスがモンスターのテレポート可能先かどうかを判定する。
* @param m_idx モンスターID