7 msg_print(_("夜が明けた。", "The sun has risen."));
11 /* Hack -- Scan the town */
12 for (y = 0; y < current_floor_ptr->height; y++)
14 for (x = 0; x < current_floor_ptr->width; x++)
16 grid_type *g_ptr = ¤t_floor_ptr->grid_array[y][x];
19 g_ptr->info |= (CAVE_GLOW);
21 /* Hack -- Memorize lit grids if allowed */
22 if (view_perma_grids) g_ptr->info |= (CAVE_MARK);
24 /* Hack -- Notice spot */
30 p_ptr->update |= (PU_MONSTERS | PU_MON_LITE);
31 p_ptr->redraw |= (PR_MAP);
32 p_ptr->window |= (PW_OVERHEAD | PW_DUNGEON);
34 if (p_ptr->special_defense & NINJA_S_STEALTH)
36 if (current_floor_ptr->grid_array[p_ptr->y][p_ptr->x].info & CAVE_GLOW) set_superstealth(FALSE);
41 void night_falls(void)
44 msg_print(_("日が沈んだ。", "The sun has fallen."));
46 if (!p_ptr->wild_mode)
48 /* Hack -- Scan the town */
49 for (y = 0; y < current_floor_ptr->height; y++)
51 for (x = 0; x < current_floor_ptr->width; x++)
53 grid_type *g_ptr = ¤t_floor_ptr->grid_array[y][x];
55 /* Feature code (applying "mimic" field) */
56 feature_type *f_ptr = &f_info[get_feat_mimic(g_ptr)];
58 if (!is_mirror_grid(g_ptr) && !have_flag(f_ptr->flags, FF_QUEST_ENTER) &&
59 !have_flag(f_ptr->flags, FF_ENTRANCE))
62 g_ptr->info &= ~(CAVE_GLOW);
64 if (!have_flag(f_ptr->flags, FF_REMEMBER))
66 /* Forget the normal floor grid */
67 g_ptr->info &= ~(CAVE_MARK);
69 /* Hack -- Notice spot */
75 /* Glow deep lava and building entrances */
76 glow_deep_lava_and_bldg();
80 p_ptr->update |= (PU_MONSTERS | PU_MON_LITE);
81 p_ptr->redraw |= (PR_MAP);
82 p_ptr->window |= (PW_OVERHEAD | PW_DUNGEON);
84 if (p_ptr->special_defense & NINJA_S_STEALTH)
86 if (current_floor_ptr->grid_array[p_ptr->y][p_ptr->x].info & CAVE_GLOW) set_superstealth(FALSE);
92 * @brief 現在フロアに残っている敵モンスターの数を返す /
95 MONSTER_NUMBER count_all_hostile_monsters(void)
98 MONSTER_NUMBER number_mon = 0;
100 for (x = 0; x < current_floor_ptr->width; ++x)
102 for (y = 0; y < current_floor_ptr->height; ++y)
104 MONSTER_IDX m_idx = current_floor_ptr->grid_array[y][x].m_idx;
106 if (m_idx > 0 && is_hostile(¤t_floor_ptr->m_list[m_idx]))