6 msg_print(_("夜が明けた。", "The sun has risen."));
10 /* Hack -- Scan the town */
11 for (y = 0; y < cur_hgt; y++)
13 for (x = 0; x < cur_wid; x++)
15 /* Get the cave grid */
16 cave_type *c_ptr = &cave[y][x];
19 c_ptr->info |= (CAVE_GLOW);
21 /* Hack -- Memorize lit grids if allowed */
22 if (view_perma_grids) c_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 (cave[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 < cur_hgt; y++)
51 for (x = 0; x < cur_wid; x++)
53 /* Get the cave grid */
54 cave_type *c_ptr = &cave[y][x];
56 /* Feature code (applying "mimic" field) */
57 feature_type *f_ptr = &f_info[get_feat_mimic(c_ptr)];
59 if (!is_mirror_grid(c_ptr) && !have_flag(f_ptr->flags, FF_QUEST_ENTER) &&
60 !have_flag(f_ptr->flags, FF_ENTRANCE))
63 c_ptr->info &= ~(CAVE_GLOW);
65 if (!have_flag(f_ptr->flags, FF_REMEMBER))
67 /* Forget the normal floor grid */
68 c_ptr->info &= ~(CAVE_MARK);
70 /* Hack -- Notice spot */
76 /* Glow deep lava and building entrances */
77 glow_deep_lava_and_bldg();
81 p_ptr->update |= (PU_MONSTERS | PU_MON_LITE);
82 p_ptr->redraw |= (PR_MAP);
83 p_ptr->window |= (PW_OVERHEAD | PW_DUNGEON);
85 if (p_ptr->special_defense & NINJA_S_STEALTH)
87 if (cave[p_ptr->y][p_ptr->x].info & CAVE_GLOW) set_superstealth(FALSE);
93 * @brief 現在フロアに残っている敵モンスターの数を返す /
96 MONSTER_NUMBER count_all_hostile_monsters(void)
99 MONSTER_NUMBER number_mon = 0;
101 for (x = 0; x < cur_wid; ++x)
103 for (y = 0; y < cur_hgt; ++y)
105 MONSTER_IDX m_idx = cave[y][x].m_idx;
107 if (m_idx > 0 && is_hostile(&m_list[m_idx]))