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/queryGeneralChoice2.cpp | |
| parent | 112c1f987d3831df97f46c0f9e4ae977fba59484 (diff) | |
match some ai::Query
Diffstat (limited to 'src/Game/AI/Query/queryGeneralChoice2.cpp')
| -rw-r--r-- | src/Game/AI/Query/queryGeneralChoice2.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/Game/AI/Query/queryGeneralChoice2.cpp b/src/Game/AI/Query/queryGeneralChoice2.cpp index 7ff555df..9bb73aaf 100644 --- a/src/Game/AI/Query/queryGeneralChoice2.cpp +++ b/src/Game/AI/Query/queryGeneralChoice2.cpp @@ -1,5 +1,6 @@ #include "Game/AI/Query/queryGeneralChoice2.h" #include <evfl/Query.h> +#include "KingSystem/ActorSystem/actActorUtil.h" namespace uking::query { @@ -7,9 +8,12 @@ GeneralChoice2::GeneralChoice2(const InitArg& arg) : ksys::act::ai::Query(arg) { GeneralChoice2::~GeneralChoice2() = default; -// FIXME: implement int GeneralChoice2::doQuery() { - return -1; + s32 idx = ksys::act::getSelectedChoiceIdx(2, getName()); + if (idx < 0) + return 0; + + return idx; } void GeneralChoice2::loadParams(const evfl::QueryArg& arg) {} |
