diff options
| author | hgh32 <39622638+hgh32@users.noreply.github.com> | 2026-04-11 22:23:22 -0400 |
|---|---|---|
| committer | hgh32 <39622638+hgh32@users.noreply.github.com> | 2026-04-16 00:24:28 -0400 |
| commit | 276f32f366c81dcd2341d4763f56746f7b721bb2 (patch) | |
| tree | d368d72f83efc5ed060b7bd793a20569aa3644c1 /src/Game/AI/Query/queryBranchByDyeColor.cpp | |
| parent | 1b79b4069dce6685b5ebd3905725b5857378ae9c (diff) | |
match more ai::Query
Diffstat (limited to 'src/Game/AI/Query/queryBranchByDyeColor.cpp')
| -rw-r--r-- | src/Game/AI/Query/queryBranchByDyeColor.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/Game/AI/Query/queryBranchByDyeColor.cpp b/src/Game/AI/Query/queryBranchByDyeColor.cpp index 085367f0..30cfe43e 100644 --- a/src/Game/AI/Query/queryBranchByDyeColor.cpp +++ b/src/Game/AI/Query/queryBranchByDyeColor.cpp @@ -1,5 +1,6 @@ #include "Game/AI/Query/queryBranchByDyeColor.h" #include <evfl/Query.h> +#include "KingSystem/GameData/gdtCommonFlagsUtils.h" namespace uking::query { @@ -7,9 +8,12 @@ BranchByDyeColor::BranchByDyeColor(const InitArg& arg) : ksys::act::ai::Query(ar BranchByDyeColor::~BranchByDyeColor() = default; -// FIXME: implement int BranchByDyeColor::doQuery() { - return -1; + auto index = ksys::gdt::getFlag_ColorChange_MaterialIndex(); + if (index >= 1 && index <= 15) { + return index; + } + return 0; } void BranchByDyeColor::loadParams(const evfl::QueryArg& arg) {} |
