OSDN Git Service

[Refactor] TANUKI を新定義に合わせた
authorSlimebreath6078 <slimebreath6078@yahoo.co.jp>
Sun, 28 Jan 2024 10:36:01 +0000 (19:36 +0900)
committerSlimebreath6078 <slimebreath6078@yahoo.co.jp>
Sat, 3 Feb 2024 09:11:55 +0000 (18:11 +0900)
src/monster-floor/one-monster-placer.cpp
src/monster/monster-damage.cpp

index c15f98d..e965865 100644 (file)
@@ -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;
     }
 
index dadfaee..ace5a70 100644 (file)
@@ -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) {