-#include "spell-realm/spells-song.h"
+#include "spell-realm/spells-song.h"
#include "core/disturbance.h"
#include "core/stuff-handler.h"
#include "core/window-redrawer.h"
set_interrupting_song_effect(player_ptr, MUSIC_NONE);
msg_print(_("歌を再開した。", "You resume singing."));
player_ptr->action = ACTION_SING;
- const auto flags_srf = {
- StatusRedrawingFlag::BONUS,
- StatusRedrawingFlag::HP,
- StatusRedrawingFlag::MONSTER_STATUSES,
+ static constexpr auto flags_srf = {
+ StatusRecalculatingFlag::BONUS,
+ StatusRecalculatingFlag::HP,
+ StatusRecalculatingFlag::MONSTER_STATUSES,
};
rfu.set_flags(flags_srf);
- const auto flags_mwrf = {
+ static constexpr auto flags_mwrf = {
MainWindowRedrawingFlag::MAP,
MainWindowRedrawingFlag::TIMED_EFFECT,
MainWindowRedrawingFlag::ACTION,
};
rfu.set_flags(flags_mwrf);
- player_ptr->window_flags |= (PW_OVERHEAD | PW_DUNGEON);
+ static constexpr auto flags_swrf = {
+ SubWindowRedrawingFlag::OVERHEAD,
+ SubWindowRedrawingFlag::DUNGEON,
+ };
+ rfu.set_flags(flags_swrf);
}
PlayerSkill(player_ptr).gain_continuous_spell_skill_exp(REALM_MUSIC, spell);
disturb(player_ptr, false, false);
}
- rfu.set_flag(StatusRedrawingFlag::BONUS);
+ rfu.set_flag(StatusRecalculatingFlag::BONUS);
handle_stuff(player_ptr);
return true;
}
set_singing_song_effect(player_ptr, MUSIC_NONE);
set_singing_song_id(player_ptr, 0);
auto &rfu = RedrawingFlagsUpdater::get_instance();
- rfu.set_flag(StatusRedrawingFlag::BONUS);
+ rfu.set_flag(StatusRecalculatingFlag::BONUS);
rfu.set_flag(MainWindowRedrawingFlag::TIMED_EFFECT);
}