OSDN Git Service

[Refactor] オブジェクト判定関数から不要なplayer_type引数を削除
authorHabu <habu1010+github@gmail.com>
Tue, 24 Aug 2021 12:17:40 +0000 (21:17 +0900)
committerHabu <habu1010+github@gmail.com>
Tue, 24 Aug 2021 12:17:40 +0000 (21:17 +0900)
commit91a493e79a068da31db8bff3001ca2f9104b8612
treebab4b662b36726de0270eb0758067ce65496ed5c
parent0eaf5059e6ea6461b2e29e19819522e7164736c7
[Refactor] オブジェクト判定関数から不要なplayer_type引数を削除

オブジェクトを判定する関数で item_tester_hook に渡すだけのために
受け取っている player_type 引数を削除する。
item_tester_hook に渡すときはインターフェースを適合させるラッパー
関数を返す make_item_tester を呼ぶ。
43 files changed:
src/artifact/artifact-info.cpp
src/artifact/random-art-generator.cpp
src/artifact/random-art-misc.cpp
src/autopick/autopick-destroyer.cpp
src/autopick/autopick-entry.cpp
src/autopick/autopick-matcher.cpp
src/cmd-building/cmd-building.cpp
src/cmd-item/cmd-equipment.cpp
src/cmd-item/cmd-smith.cpp
src/combat/aura-counterattack.cpp
src/flavor/flavor-describer.cpp
src/flavor/named-item-describer.cpp
src/load/load-v1-5-0.cpp
src/market/building-craft-fix.cpp
src/market/building-craft-weapon.cpp
src/mind/mind-archer.cpp
src/mind/mind-priest.cpp
src/mind/mind-weaponsmith.cpp
src/mind/mind-weaponsmith.h
src/monster-attack/monster-attack-player.cpp
src/object-enchant/object-curse.cpp
src/object-enchant/object-ego.cpp
src/object-hook/hook-armor.cpp
src/object-hook/hook-armor.h
src/object-hook/hook-bow.cpp
src/object-hook/hook-bow.h
src/object-hook/hook-enchant.cpp
src/object-hook/hook-enchant.h
src/object-hook/hook-perception.cpp
src/object-hook/hook-weapon.cpp
src/object-hook/hook-weapon.h
src/object-use/throw-execution.cpp
src/object/item-tester-hooker.cpp
src/object/item-tester-hooker.h
src/object/object-flags.cpp
src/player/player-damage.cpp
src/player/player-status.cpp
src/realm/realm-hex.cpp
src/spell-kind/spells-enchant.cpp
src/spell-kind/spells-equipment.cpp
src/spell-kind/spells-perception.cpp
src/spell-realm/spells-nature.cpp
src/spell/spells-object.cpp