}
}
- if (any_bits(em_ptr->r_ptr->flags2, RF2_ELDRITCH_HORROR) || any_bits(em_ptr->r_ptr->flags2, RF2_EMPTY_MIND)) {
+ if (em_ptr->r_ptr->misc_flags.has(MonsterMiscType::ELDRITCH_HORROR) || any_bits(em_ptr->r_ptr->flags2, RF2_EMPTY_MIND)) {
return ProcessResult::PROCESS_CONTINUE;
}
return false;
}
- if (!(r_ptr->flags2 & (RF2_ELDRITCH_HORROR))) {
+ if (r_ptr->misc_flags.has_not(MonsterMiscType::ELDRITCH_HORROR)) {
return false;
}
bool get_nightmare(PlayerType *player_ptr, MonsterRaceId r_idx)
{
auto *r_ptr = &monraces_info[r_idx];
- if (none_bits(r_ptr->flags2, RF2_ELDRITCH_HORROR)) {
+ if (r_ptr->misc_flags.has_not(MonsterMiscType::ELDRITCH_HORROR)) {
return false;
}
}
}
- if (w_ptr->is_loading_now && w_ptr->character_dungeon && !AngbandSystem::get_instance().is_phase_out() && m_ptr->get_appearance_monrace().flags2 & RF2_ELDRITCH_HORROR) {
+ if (w_ptr->is_loading_now && w_ptr->character_dungeon && !AngbandSystem::get_instance().is_phase_out() && m_ptr->get_appearance_monrace().misc_flags.has(MonsterMiscType::ELDRITCH_HORROR)) {
m_ptr->mflag.set(MonsterTemporaryFlagType::SANITY_BLAST);
}
auto *r_ptr = &monraces_info[statue_r_idx];
if (statue_r_idx == MonsterRaceId::BULLGATES) {
info[i++] = _("それは部屋に飾ると恥ずかしい。", "It is shameful.");
- } else if (r_ptr->flags2 & (RF2_ELDRITCH_HORROR)) {
+ } else if (r_ptr->misc_flags.has(MonsterMiscType::ELDRITCH_HORROR)) {
info[i++] = _("それは部屋に飾ると恐い。", "It is fearful.");
} else {
info[i++] = _("それは部屋に飾ると楽しい。", "It is cheerful.");
{
const auto &horror_message = r_ptr->decide_horror_message();
msg_format(_("%s%sの顔を見てしまった!", "You behold the %s visage of %s!"), horror_message.data(), m_name.data());
- r_ptr->r_flags2 |= RF2_ELDRITCH_HORROR;
+ r_ptr->r_misc_flags.set(MonsterMiscType::ELDRITCH_HORROR);
}
/*!
{
const auto &horror_message = r_ptr->decide_horror_message();
msg_format(_("%s%sの顔を見てしまった!", "You behold the %s visage of %s!"), horror_message.data(), desc.data());
- r_ptr->r_flags2 |= RF2_ELDRITCH_HORROR;
+ r_ptr->r_misc_flags.set(MonsterMiscType::ELDRITCH_HORROR);
}
static bool process_mod_hallucination(PlayerType *player_ptr, std::string_view m_name, const MonsterRaceInfo &monrace)
return;
}
- if (!(r_ptr->flags2 & RF2_ELDRITCH_HORROR)) {
+ if (r_ptr->misc_flags.has_not(MonsterMiscType::ELDRITCH_HORROR)) {
return;
}
void display_monster_alignment(lore_type *lore_ptr)
{
- if (lore_ptr->flags2 & RF2_ELDRITCH_HORROR) {
+ if (lore_ptr->misc_flags.has(MonsterMiscType::ELDRITCH_HORROR)) {
hook_c_roff(TERM_VIOLET, _("狂気を誘う", " sanity-blasting"));
}