diff options
| author | theo3 <arisstephenson2@gmail.com> | 2021-07-01 19:28:09 -0700 |
|---|---|---|
| committer | theo3 <arisstephenson2@gmail.com> | 2021-07-01 21:05:10 -0700 |
| commit | 60dd80779a92120c74e7bda9e1ccf2695e2c7c19 (patch) | |
| tree | 4d76dc03072740a41634893a9062d6a7e4626f68 /src/Game/AI/Query/queryCheckHorseCustomizeSelect.cpp | |
| parent | 112c1f987d3831df97f46c0f9e4ae977fba59484 (diff) | |
match some ai::Query
Diffstat (limited to 'src/Game/AI/Query/queryCheckHorseCustomizeSelect.cpp')
| -rw-r--r-- | src/Game/AI/Query/queryCheckHorseCustomizeSelect.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/Game/AI/Query/queryCheckHorseCustomizeSelect.cpp b/src/Game/AI/Query/queryCheckHorseCustomizeSelect.cpp index 6244cffe..37ac8f43 100644 --- a/src/Game/AI/Query/queryCheckHorseCustomizeSelect.cpp +++ b/src/Game/AI/Query/queryCheckHorseCustomizeSelect.cpp @@ -1,5 +1,6 @@ #include "Game/AI/Query/queryCheckHorseCustomizeSelect.h" #include <evfl/Query.h> +#include "KingSystem/GameData/gdtCommonFlagsUtils.h" namespace uking::query { @@ -8,9 +9,15 @@ CheckHorseCustomizeSelect::CheckHorseCustomizeSelect(const InitArg& arg) CheckHorseCustomizeSelect::~CheckHorseCustomizeSelect() = default; -// FIXME: implement int CheckHorseCustomizeSelect::doQuery() { - return -1; + if (ksys::gdt::getFlag_Shop_IsDecide()) { + s32 state = ksys::gdt::getFlag_Shop_CurrentItemState(); + if (state == 0) + return 0; + if (state == 0xF) + return 1; + } + return 2; } void CheckHorseCustomizeSelect::loadParams(const evfl::QueryArg& arg) {} |
