9 msg_print(_("夜が明けた。", "The sun has risen."));
11 if (!p_ptr->wild_mode)
13 /* Hack -- Scan the town */
14 for (y = 0; y < current_floor_ptr->height; y++)
16 for (x = 0; x < current_floor_ptr->width; x++)
18 grid_type *g_ptr = ¤t_floor_ptr->grid_array[y][x];
21 g_ptr->info |= (CAVE_GLOW);
23 /* Hack -- Memorize lit grids if allowed */
24 if (view_perma_grids) g_ptr->info |= (CAVE_MARK);
26 /* Hack -- Notice spot */
32 p_ptr->update |= (PU_MONSTERS | PU_MON_LITE);
33 p_ptr->redraw |= (PR_MAP);
34 p_ptr->window |= (PW_OVERHEAD | PW_DUNGEON);
36 if (p_ptr->special_defense & NINJA_S_STEALTH)
38 if (current_floor_ptr->grid_array[p_ptr->y][p_ptr->x].info & CAVE_GLOW) set_superstealth(FALSE);
43 void night_falls(void)
46 msg_print(_("日が沈んだ。", "The sun has fallen."));
48 if (!p_ptr->wild_mode)
50 /* Hack -- Scan the town */
51 for (y = 0; y < current_floor_ptr->height; y++)
53 for (x = 0; x < current_floor_ptr->width; x++)
55 grid_type *g_ptr = ¤t_floor_ptr->grid_array[y][x];
57 /* Feature code (applying "mimic" field) */
58 feature_type *f_ptr = &f_info[get_feat_mimic(g_ptr)];
60 if (!is_mirror_grid(g_ptr) && !have_flag(f_ptr->flags, FF_QUEST_ENTER) &&
61 !have_flag(f_ptr->flags, FF_ENTRANCE))
64 g_ptr->info &= ~(CAVE_GLOW);
66 if (!have_flag(f_ptr->flags, FF_REMEMBER))
68 /* Forget the normal floor grid */
69 g_ptr->info &= ~(CAVE_MARK);
71 /* Hack -- Notice spot */
77 /* Glow deep lava and building entrances */
78 glow_deep_lava_and_bldg();
82 p_ptr->update |= (PU_MONSTERS | PU_MON_LITE);
83 p_ptr->redraw |= (PR_MAP);
84 p_ptr->window |= (PW_OVERHEAD | PW_DUNGEON);
86 if (p_ptr->special_defense & NINJA_S_STEALTH)
88 if (current_floor_ptr->grid_array[p_ptr->y][p_ptr->x].info & CAVE_GLOW) set_superstealth(FALSE);
94 * @brief 現在フロアに残っている敵モンスターの数を返す /
97 MONSTER_NUMBER count_all_hostile_monsters(void)
100 MONSTER_NUMBER number_mon = 0;
102 for (x = 0; x < current_floor_ptr->width; ++x)
104 for (y = 0; y < current_floor_ptr->height; ++y)
106 MONSTER_IDX m_idx = current_floor_ptr->grid_array[y][x].m_idx;
108 if (m_idx > 0 && is_hostile(¤t_floor_ptr->m_list[m_idx]))