From: Slimebreath6078 Date: Sun, 28 Jan 2024 10:36:01 +0000 (+0900) Subject: [Refactor] TANUKI を新定義に合わせた X-Git-Tag: 3.0.1.7-Beta~2^2~11 X-Git-Url: http://git.osdn.net/view?p=hengbandforosx%2Fhengbandosx.git;a=commitdiff_plain;h=f8497b5959674deff448e1604f4fd02bc04bcd70 [Refactor] TANUKI を新定義に合わせた --- diff --git a/src/monster-floor/one-monster-placer.cpp b/src/monster-floor/one-monster-placer.cpp index c15f98de3..e96586567 100644 --- a/src/monster-floor/one-monster-placer.cpp +++ b/src/monster-floor/one-monster-placer.cpp @@ -96,7 +96,7 @@ static MonsterRaceId initial_r_appearance(PlayerType *player_ptr, MonsterRaceId return MonsterRaceId::ALIEN_JURAL; } - if (none_bits(monraces_info[r_idx].flags7, RF7_TANUKI)) { + if (monraces_info[r_idx].misc_flags.has_not(MonsterMiscType::TANUKI)) { return r_idx; } diff --git a/src/monster/monster-damage.cpp b/src/monster/monster-damage.cpp index dadfaeed0..ace5a70b9 100644 --- a/src/monster/monster-damage.cpp +++ b/src/monster/monster-damage.cpp @@ -181,7 +181,7 @@ void MonsterDamageProcessor::death_special_flag_monster() auto *m_ptr = &this->player_ptr->current_floor_ptr->m_list[this->m_idx]; auto r_idx = m_ptr->r_idx; auto *r_ptr = &monraces_info[r_idx]; - if (any_bits(monraces_info[r_idx].flags7, RF7_TANUKI)) { + if (monraces_info[r_idx].misc_flags.has(MonsterMiscType::TANUKI)) { r_ptr = &monraces_info[r_idx]; m_ptr->ap_r_idx = r_idx; if (r_ptr->r_sights < MAX_SHORT) {