From 276f32f366c81dcd2341d4763f56746f7b721bb2 Mon Sep 17 00:00:00 2001 From: hgh32 <39622638+hgh32@users.noreply.github.com> Date: Sat, 11 Apr 2026 22:23:22 -0400 Subject: match more ai::Query --- src/Game/AI/Query/queryBranchByDyeColor.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/Game/AI/Query/queryBranchByDyeColor.cpp') 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 +#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) {} -- cgit v1.2.3