<ClCompile Include="..\..\src\mind\racial-kutar.c" />\r
<ClCompile Include="..\..\src\mind\stances-table.c" />\r
<ClCompile Include="..\..\src\object-hook\hook-bow.c" />\r
+ <ClCompile Include="..\..\src\object-hook\hook-checker.c" />\r
<ClCompile Include="..\..\src\object-hook\hook-perception.c" />\r
<ClCompile Include="..\..\src\object-hook\hook-weapon.c" />\r
<ClCompile Include="..\..\src\object-hook\hook-armor.c" />\r
<ClInclude Include="..\..\src\mspell\mspells3.h" />\r
<ClInclude Include="..\..\src\object-hook\hook-armor.h" />\r
<ClInclude Include="..\..\src\object-hook\hook-bow.h" />\r
+ <ClInclude Include="..\..\src\object-hook\hook-checker.h" />\r
<ClInclude Include="..\..\src\object-hook\hook-perception.h" />\r
<ClInclude Include="..\..\src\object-hook\hook-weapon.h" />\r
<ClInclude Include="..\..\src\player\bad-status-setter.h" />\r
<ClCompile Include="..\..\src\object-hook\hook-armor.c">
<Filter>object-hook</Filter>
</ClCompile>
+ <ClCompile Include="..\..\src\object-hook\hook-checker.c">
+ <Filter>object-hook</Filter>
+ </ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\src\cmd\cmd-basic.h">
<ClInclude Include="..\..\src\object-hook\hook-armor.h">
<Filter>object-hook</Filter>
</ClInclude>
+ <ClInclude Include="..\..\src\object-hook\hook-checker.h">
+ <Filter>object-hook</Filter>
+ </ClInclude>
</ItemGroup>
<ItemGroup>
<None Include="..\..\src\wall.bmp" />
\
object-hook/hook-armor.c object-hook/hook-armor.h \
object-hook/hook-bow.c object-hook/hook-bow.h \
+ object-hook/hook-checker.c object-hook/hook-checker.h \
object-hook/hook-perception.c object-hook/hook-perception.h \
object-hook/hook-weapon.c object-hook/hook-weapon.h \
\
#include "monster-race/monster-race.h"
#include "monster-race/race-flags1.h"
#include "perception/object-perception.h"
-#include "object/object-hook.h"
#include "object-enchant/item-feeling.h"
#include "object-hook/hook-armor.h"
#include "object-hook/hook-bow.h"
+#include "object-hook/hook-checker.h"
+#include "object/object-hook.h"
#include "object/object-kind.h"
#include "object/object-stack.h"
#include "object/object-value.h"
#include "object-enchant/special-object-flags.h"
#include "object-enchant/trc-types.h"
#include "object-hook/hook-armor.h"
+#include "object-hook/hook-checker.h"
#include "object-hook/hook-weapon.h"
#include "object/item-use-flags.h"
#include "object/object-flavor.h"
#include "monster/monster-info.h"
#include "object-enchant/special-object-flags.h"
#include "object-enchant/tr-types.h"
+#include "object-hook/hook-checker.h"
#include "object-hook/hook-weapon.h"
#include "object/item-use-flags.h"
#include "object/object-broken.h"
#include "monster/monster-status.h"
#include "monster/monster-info.h"
#include "object-hook/hook-armor.h"
-#include "object/object-hook.h"
+#include "object-hook/hook-checker.h"
#include "realm/realm-hex-numbers.h"
#include "spell/process-effect.h"
#include "spell-realm/spells-hex.h"
#include "monster-floor/place-monster-types.h"
#include "monster/monster-info.h"
#include "object-enchant/tr-types.h"
+#include "object-hook/hook-checker.h"
#include "object/object-broken.h"
#include "object/object-flags.h"
#include "object/object-flavor.h"
#include "monster/monster-status.h"
#include "perception/object-perception.h"
#include "object-enchant/object-ego.h"
+#include "object-hook/hook-checker.h"
#include "object/object-hook.h"
#include "object/object-kind.h"
#include "object/object-mark-types.h"
#include "object-enchant/artifact.h"
#include "object-enchant/item-apply-magic.h"
#include "object-enchant/special-object-flags.h"
+#include "object-hook/hook-checker.h"
#include "object/object-flavor.h"
#include "object/object-generator.h"
#include "object/object-hook.h"
#include "monster/monster-update.h"
#include "monster/smart-learn-types.h"
#include "object-enchant/artifact.h"
+#include "object-hook/hook-checker.h"
#include "object/object-hook.h"
#include "pet/pet-util.h"
#include "player/player-class.h"
#include "monster-floor/place-monster-types.h"
#include "object-enchant/artifact.h"
#include "object-enchant/special-object-flags.h"
+#include "object-hook/hook-checker.h"
#include "object/object-generator.h"
#include "object/object-hook.h"
#include "object/object-kind.h"
#include "inventory/recharge-processor.h"
#include "core/hp-mp-regenerator.h"
+#include "object-hook/hook-checker.h"
#include "object/object-flavor.h"
-#include "object/object-hook.h"
#include "object/object-kind.h"
#include "player/player-move.h"
#include "util/quarks.h"
#include "object-enchant/tr-types.h"
#include "object-enchant/trc-types.h"
#include "object-enchant/trg-types.h"
+#include "object-hook/hook-checker.h"
#include "object/object-flags.h"
#include "object/object-generator.h"
#include "object/object-hook.h"
#include "monster/monster-info.h"
#include "monster/smart-learn-types.h"
#include "object-enchant/item-feeling.h"
-#include "object/object-hook.h"
+#include "object-hook/hook-checker.h"
#include "player/avatar.h"
#include "player/player-class.h"
#include "player/player-damage.h"
#include "object-enchant/special-object-flags.h"
#include "object-enchant/tr-types.h"
#include "object-enchant/trc-types.h"
-#include "object/object-hook.h"
+#include "object-hook/hook-checker.h"
#include "object/object-kind.h"
#include "sv-definition/sv-amulet-types.h"
#include "sv-definition/sv-ring-types.h"
#include "object-enchant/tr-types.h"
#include "object-enchant/trc-types.h"
#include "object-enchant/trg-types.h"
+#include "object-hook/hook-checker.h"
#include "object/object-hook.h"
#include "object/object-kind.h"
#include "sv-definition/sv-armor-types.h"
#include "game-option/cheat-types.h"
#include "grid/grid.h"
#include "io/files-util.h"
-#include "perception/identification.h"
-#include "perception/object-perception.h"
#include "object-enchant/object-boost.h"
#include "object-enchant/object-curse.h"
#include "object-enchant/object-ego.h"
#include "object-enchant/random-art-bias-types.h"
+#include "object-enchant/special-object-flags.h"
+#include "object-enchant/tr-types.h"
+#include "object-enchant/trc-types.h"
#include "object-enchant/trg-types.h"
#include "object-hook/hook-armor.h"
+#include "object-hook/hook-checker.h"
#include "object/object-flags.h"
#include "object/object-flavor.h"
#include "object/object-generator.h"
#include "object/object-kind-hook.h"
#include "object/object-kind.h"
#include "object/object-value-calc.h"
-#include "object-enchant/special-object-flags.h"
-#include "sv-definition/sv-armor-types.h"
-#include "sv-definition/sv-weapon-types.h"
-#include "system/system-variables.h"
-#include "object-enchant/tr-types.h"
-#include "object-enchant/trc-types.h"
+#include "perception/identification.h"
+#include "perception/object-perception.h"
#include "player/avatar.h"
#include "player/player-class.h"
#include "player/player-personalities-types.h"
#include "spell/spells-object.h"
+#include "sv-definition/sv-armor-types.h"
+#include "sv-definition/sv-weapon-types.h"
+#include "system/system-variables.h"
#include "util/bit-flags-calculator.h"
#include "util/quarks.h"
#include "view/display-messages.h"
#include "object-enchant/tr-types.h"
#include "object-enchant/trc-types.h"
#include "object-hook/hook-armor.h"
+#include "object-hook/hook-checker.h"
#include "object/object-flags.h"
#include "object/object-flavor.h"
#include "object/object-hook.h"
#include "object-hook/hook-armor.h"
-#include "object/object-hook.h"
+#include "object-hook/hook-checker.h"
#include "object/object-info.h"
#include "sv-definition/sv-armor-types.h"
#include "system/object-type-definition.h"
--- /dev/null
+#include "object-hook/hook-checker.h"
+#include "system/object-type-definition.h"
+#include "object-enchant/special-object-flags.h"
+
+bool object_is_valid(object_type *o_ptr) { return o_ptr->k_idx != 0; }
+
+bool object_is_held_monster(object_type *o_ptr) { return o_ptr->held_m_idx != 0; }
+
+bool object_is_broken(object_type *o_ptr) { return (o_ptr->ident & IDENT_BROKEN) != 0; }
+
+bool object_is_cursed(object_type *o_ptr) { return o_ptr->curse_flags != 0; }
--- /dev/null
+#pragma once
+
+#include "system/angband.h"
+
+bool object_is_valid(object_type *o_ptr);
+bool object_is_held_monster(object_type *o_ptr);
+bool object_is_broken(object_type *o_ptr);
+bool object_is_cursed(object_type *o_ptr);
#include "object-enchant/special-object-flags.h"
#include "object-enchant/tr-types.h"
#include "object-enchant/trg-types.h"
+#include "object-hook/hook-checker.h"
#include "object/object-hook.h"
#include "object/object-kind.h"
#include "object/object-info.h"
#include "object-enchant/tr-types.h"
#include "object-enchant/trg-types.h"
#include "object-hook/hook-armor.h"
+#include "object-hook/hook-checker.h"
#include "object/object-flags.h"
#include "object/object-info.h"
#include "object/object-kind.h"
return TRUE;
}
-bool object_is_valid(object_type *o_ptr) { return o_ptr->k_idx != 0; }
-
-bool object_is_held_monster(object_type *o_ptr) { return o_ptr->held_m_idx != 0; }
-
/*
* Artifacts use the "name1" field
*/
* Ego-Items use the "name2" field
*/
bool object_is_ego(object_type *o_ptr) { return o_ptr->name2 != 0; }
-
-/*
- * Broken items.
- */
-bool object_is_broken(object_type *o_ptr) { return (o_ptr->ident & IDENT_BROKEN) != 0; }
-
-/*
- * Cursed items.
- */
-bool object_is_cursed(object_type *o_ptr) { return o_ptr->curse_flags != 0; }
bool can_player_destroy_object(player_type *player_ptr, object_type *o_ptr);
bool object_is_quest_target(player_type *player_ptr, object_type *o_ptr);
bool item_tester_okay(player_type *player_ptr, object_type *o_ptr, tval_type tval);
-bool object_is_valid(object_type *o_ptr);
-bool object_is_held_monster(object_type *o_ptr);
bool object_is_fixed_artifact(object_type *o_ptr);
bool object_is_ego(object_type *o_ptr);
-bool object_is_broken(object_type *o_ptr);
-bool object_is_cursed(object_type *o_ptr);
#include "object-enchant/object-ego.h"
#include "object-enchant/tr-types.h"
#include "object-enchant/trc-types.h"
+#include "object-hook/hook-checker.h"
#include "object/object-flags.h"
#include "object/object-hook.h"
#include "object/object-kind.h"
#include "object/object-value.h"
+#include "monster-race/monster-race.h"
#include "object-enchant/artifact.h"
-#include "object-enchant/tr-types.h"
-#include "perception/object-perception.h"
-#include "object/object-broken.h"
#include "object-enchant/object-curse.h"
#include "object-enchant/object-ego.h"
+#include "object-enchant/special-object-flags.h"
+#include "object-enchant/tr-types.h"
+#include "object-hook/hook-checker.h"
+#include "object/object-broken.h"
#include "object/object-flags.h"
#include "object/object-hook.h"
#include "object/object-kind.h"
#include "object/object-value-calc.h"
-#include "object-enchant/special-object-flags.h"
-#include "monster-race/monster-race.h"
+#include "perception/object-perception.h"
#include "util/bit-flags-calculator.h"
/*!
#include "object-enchant/trc-types.h"
#include "object/object-flags.h"
#include "object/object-flavor.h"
+#include "object-hook/hook-checker.h"
#include "object/object-hook.h"
#include "object/object-kind.h"
#include "object/object-info.h"
#include "game-option/disturbance-options.h"
#include "inventory/player-inventory.h"
#include "object-enchant/special-object-flags.h"
+#include "object-hook/hook-checker.h"
#include "object/object-flavor.h"
#include "object/object-hook.h"
#include "object/object-info.h"
#include "object-enchant/object-ego.h"
#include "object-enchant/special-object-flags.h"
#include "object-enchant/trg-types.h"
+#include "object-hook/hook-checker.h"
#include "object/object-generator.h"
#include "object/object-hook.h"
#include "object/object-kind.h"
#include "object-enchant/tr-types.h"
#include "object-enchant/trc-types.h"
#include "object-hook/hook-armor.h"
+#include "object-hook/hook-checker.h"
#include "object/object-flags.h"
#include "object/object-hook.h"
#include "object/object-mark-types.h"
#include "object-enchant/tr-types.h"
#include "object-enchant/trc-types.h"
#include "object-hook/hook-armor.h"
+#include "object-hook/hook-checker.h"
#include "object/item-use-flags.h"
#include "object/object-flags.h"
#include "object/object-flavor.h"
#include "player/player-skill.h"
#include "player/player-status.h"
#include "realm/realm-hex-numbers.h"
-#include "spell/process-effect.h"
-#include "spell/spells-execution.h"
-#include "spell-realm/spells-hex.h"
#include "spell-kind/spells-launcher.h"
#include "spell-kind/spells-neighbor.h"
#include "spell-kind/spells-sight.h"
-#include "spell/spells-status.h"
#include "spell-kind/spells-teleport.h"
+#include "spell-realm/spells-hex.h"
+#include "spell/process-effect.h"
#include "spell/spell-types.h"
+#include "spell/spells-execution.h"
+#include "spell/spells-status.h"
#include "spell/spells3.h"
#include "spell/technic-info-table.h"
#include "term/screen-processor.h"
#include "object-enchant/item-feeling.h"
#include "object-enchant/special-object-flags.h"
#include "object-enchant/trc-types.h"
-#include "object/object-hook.h"
+#include "object-hook/hook-checker.h"
#include "system/object-type-definition.h"
#include "view/display-messages.h"
#include "monster/monster-info.h"
#include "monster/monster-status.h"
#include "monster/monster-update.h"
+#include "object-hook/hook-checker.h"
#include "object/object-hook.h"
#include "object/object-mark-types.h"
#include "realm/realm-song-numbers.h"
#include "monster/smart-learn-types.h"
#include "object-enchant/artifact.h"
#include "object-enchant/special-object-flags.h"
+#include "object-hook/hook-checker.h"
#include "object/object-flavor.h"
#include "object/object-hook.h"
#include "object/object-mark-types.h"
#include "monster/monster-update.h"
#include "monster/smart-learn-types.h"
#include "object-enchant/tr-types.h"
+#include "object-hook/hook-checker.h"
#include "object/object-flags.h"
-#include "object/object-hook.h"
#include "player/avatar.h"
#include "player/player-move.h"
#include "spell-kind/spells-launcher.h"
#include "object-enchant/trg-types.h"
#include "object-hook/hook-armor.h"
#include "object-hook/hook-bow.h"
+#include "object-hook/hook-checker.h"
#include "object/item-use-flags.h"
#include "object/object-flags.h"
#include "object/object-flavor.h"
#include "mind/mind.h"
#include "object-enchant/item-feeling.h"
#include "object-enchant/special-object-flags.h"
+#include "object-hook/hook-checker.h"
#include "object/item-use-flags.h"
#include "object/object-flavor.h"
#include "object/object-generator.h"