if (current_world_ptr->game_turn % TURNS_PER_TICK) {
return;
}
-
+
decide_auto_save();
auto *floor_ptr = this->player_ptr->current_floor_ptr;
if (floor_ptr->monster_noise && !ignore_unview) {
{
/* 帰還無しモード時のレベルテレポバグ対策 / Fix for level teleport bugs on ironman_downward.*/
if (!ironman_downward || (this->player_ptr->dungeon_idx == DUNGEON_ANGBAND) || (this->player_ptr->dungeon_idx == 0)) {
- return;
+ return;
}
auto *floor_ptr = this->player_ptr->current_floor_ptr;
update_gambling_monsters(this->player_ptr);
return;
}
-
+
if (number_mon == 1) {
process_monster_arena_winner(win_m_idx);
return;
return;
}
-
+
auto is_in_dungeon = vanilla_town;
is_in_dungeon |= lite_town && (floor_ptr->inside_quest == 0) && !this->player_ptr->phase_out && !floor_ptr->inside_arena;
is_in_dungeon &= floor_ptr->dun_level != 0;
if (!is_in_dungeon) {
- return;
+ return;
}
if ((current_world_ptr->game_turn % (TURNS_PER_TICK * STORE_TICKS)) != 0) {
- return;
+ return;
}
shuffle_shopkeeper();
regenerate_captured_monsters(this->player_ptr);
}
- if (!this->player_ptr->leaving) {
- for (int i = 0; i < MAX_MTIMED; i++) {
- if (this->player_ptr->current_floor_ptr->mproc_max[i] > 0) {
- process_monsters_mtimed(this->player_ptr, i);
- }
+ if (this->player_ptr->leaving) {
+ return;
+ }
+
+ for (auto i = 0; i < MAX_MTIMED; i++) {
+ if (this->player_ptr->current_floor_ptr->mproc_max[i] > 0) {
+ process_monsters_mtimed(this->player_ptr, i);
}
}
}
void WorldTurnProcessor::ring_nightmare_bell(int prev_min)
{
if (!ironman_nightmare || (this->min == prev_min)) {
- return;
+ return;
}
if ((this->hour == 23) && !(this->min % 15)) {
}
if ((this->hour > 0) || (this->min > 0)) {
- return;
+ return;
}
disturb(this->player_ptr, true, true);