diff options
| author | Michael Zhao <44533763+Pistonight@users.noreply.github.com> | 2026-04-16 20:08:44 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-04-16 20:08:44 -0700 |
| commit | b583f00ba58e87a75442820f6d8a35b6782df006 (patch) | |
| tree | d368d72f83efc5ed060b7bd793a20569aa3644c1 /src/Game/AI/Query/queryBranchByDyeColor.cpp | |
| parent | 1b79b4069dce6685b5ebd3905725b5857378ae9c (diff) | |
| parent | 276f32f366c81dcd2341d4763f56746f7b721bb2 (diff) | |
Merge pull request #162 from hgh32/master
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) {} |
