OSDN Git Service

[Feature] モンスターの元RF2以外の地形関連特性フラグが調査で満たされるように変更
authorSlimebreath6078 <slimebreath6078@yahoo.co.jp>
Tue, 23 Jan 2024 22:11:27 +0000 (07:11 +0900)
committerSlimebreath6078 <slimebreath6078@yahoo.co.jp>
Wed, 24 Jan 2024 21:50:01 +0000 (06:50 +0900)
具体的にはAQUATIC、CAN_SWIM、CAN_FLYの3つ

Hengband/Hengband/Hengband.vcxproj
Hengband/Hengband/Hengband.vcxproj.filters
src/Makefile.am
src/lore/lore-store.cpp
src/monster-race/race-feature-mask.cpp [deleted file]
src/monster-race/race-feature-mask.h [deleted file]

index 8f5b363..f4d9022 100644 (file)
     <ClCompile Include="..\..\src\load\player-class-specific-data-loader.cpp" />\r
     <ClCompile Include="..\..\src\main-win\main-win-exception.cpp" />\r
     <ClCompile Include="..\..\src\monster-race\race-brightness-mask.cpp" />\r
-    <ClCompile Include="..\..\src\monster-race\race-feature-mask.cpp" />\r
     <ClCompile Include="..\..\src\monster-race\race-sex-const.cpp" />\r
     <ClCompile Include="..\..\src\monster\monster-pain-describer.cpp" />\r
     <ClCompile Include="..\..\src\net\curl-easy-session.cpp" />\r
     <ClInclude Include="..\..\src\monster-race\race-brightness-mask.h" />\r
     <ClInclude Include="..\..\src\monster-race\race-drop-flags.h" />\r
     <ClInclude Include="..\..\src\monster-race\race-feature-flags.h" />\r
-    <ClInclude Include="..\..\src\monster-race\race-feature-mask.h" />\r
     <ClInclude Include="..\..\src\monster-race\race-kind-flags.h" />\r
     <ClInclude Include="..\..\src\monster-race\race-population-flags.h" />\r
     <ClInclude Include="..\..\src\monster-race\race-resistance-mask.h" />\r
index fb42be2..eda5dd4 100644 (file)
     <ClCompile Include="..\..\src\mspell\mspell-attack\mspell-particularity.cpp">\r
       <Filter>mspell\mspell-attack</Filter>\r
     </ClCompile>\r
-    <ClCompile Include="..\..\src\monster-race\race-feature-mask.cpp">\r
-      <Filter>monster-race</Filter>\r
-    </ClCompile>\r
     <ClCompile Include="..\..\src\timed-effect\player-acceleration.cpp">\r
       <Filter>timed-effect</Filter>\r
     </ClCompile>\r
     <ClInclude Include="..\..\src\monster-race\race-feature-flags.h">\r
       <Filter>monster-race</Filter>\r
     </ClInclude>\r
-    <ClInclude Include="..\..\src\monster-race\race-feature-mask.h">\r
-      <Filter>monster-race</Filter>\r
-    </ClInclude>\r
     <ClInclude Include="..\..\src\timed-effect\player-acceleration.h">\r
       <Filter>timed-effect</Filter>\r
     </ClInclude>\r
index 77b3661..35671a4 100644 (file)
@@ -518,7 +518,6 @@ hengband_SOURCES = \
        monster-race/race-brightness-mask.h monster-race/race-brightness-mask.cpp \
        monster-race/race-drop-flags.h \
        monster-race/race-feature-flags.h \
-       monster-race/race-feature-mask.cpp monster-race/race-feature-mask.h \
        monster-race/race-flags-resistance.h \
        monster-race/race-flags1.h monster-race/race-flags2.h \
        monster-race/race-flags3.h \
index e480ab9..fed7283 100644 (file)
@@ -7,7 +7,6 @@
 #include "lore/lore-store.h"
 #include "core/window-redrawer.h"
 #include "monster-race/monster-race.h"
-#include "monster-race/race-feature-mask.h"
 #include "monster-race/race-flags1.h"
 #include "monster/monster-info.h"
 #include "system/floor-type-definition.h"
@@ -95,7 +94,7 @@ int lore_do_probe(PlayerType *player_ptr, MonsterRaceId r_idx)
     n += count_lore_mflag_group(r_ptr->ability_flags, r_ptr->r_ability_flags);
     n += count_lore_mflag_group(r_ptr->behavior_flags, r_ptr->r_behavior_flags);
     n += count_lore_mflag_group(r_ptr->drop_flags, r_ptr->r_drop_flags);
-    n += count_lore_mflag_group(r_ptr->feature_flags & feature_lore_flags2, r_ptr->r_feature_flags);
+    n += count_lore_mflag_group(r_ptr->feature_flags, r_ptr->r_feature_flags);
 
     r_ptr->r_flags1 = r_ptr->flags1;
     r_ptr->r_flags2 = r_ptr->flags2;
@@ -104,7 +103,7 @@ int lore_do_probe(PlayerType *player_ptr, MonsterRaceId r_idx)
     r_ptr->r_ability_flags = r_ptr->ability_flags;
     r_ptr->r_behavior_flags = r_ptr->behavior_flags;
     r_ptr->r_drop_flags = r_ptr->drop_flags;
-    r_ptr->r_feature_flags.set(r_ptr->feature_flags & feature_lore_flags2);
+    r_ptr->r_feature_flags = r_ptr->feature_flags;
 
     if (!r_ptr->r_can_evolve) {
         n++;
diff --git a/src/monster-race/race-feature-mask.cpp b/src/monster-race/race-feature-mask.cpp
deleted file mode 100644 (file)
index 8e77998..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#include "monster-race/race-feature-mask.h"
-
-const EnumClassFlagGroup<MonsterFeatureType> feature_lore_flags2 = {
-    MonsterFeatureType::PASS_WALL,
-    MonsterFeatureType::KILL_WALL
-};
diff --git a/src/monster-race/race-feature-mask.h b/src/monster-race/race-feature-mask.h
deleted file mode 100644 (file)
index 9f328cd..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#pragma once
-
-#include "monster-race/race-feature-flags.h"
-#include "util/flag-group.h"
-
-extern const EnumClassFlagGroup<MonsterFeatureType> feature_lore_flags2;