summaryrefslogtreecommitdiff
path: root/src/Game/AI/Query/queryCheckAppPoint.cpp
diff options
context:
space:
mode:
authorMichael Zhao <44533763+Pistonight@users.noreply.github.com>2026-04-16 20:08:44 -0700
committerGitHub <noreply@github.com>2026-04-16 20:08:44 -0700
commitb583f00ba58e87a75442820f6d8a35b6782df006 (patch)
treed368d72f83efc5ed060b7bd793a20569aa3644c1 /src/Game/AI/Query/queryCheckAppPoint.cpp
parent1b79b4069dce6685b5ebd3905725b5857378ae9c (diff)
parent276f32f366c81dcd2341d4763f56746f7b721bb2 (diff)
Merge pull request #162 from hgh32/master
match more ai::Query
Diffstat (limited to 'src/Game/AI/Query/queryCheckAppPoint.cpp')
-rw-r--r--src/Game/AI/Query/queryCheckAppPoint.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Game/AI/Query/queryCheckAppPoint.cpp b/src/Game/AI/Query/queryCheckAppPoint.cpp
index 2cf9cceb..408b2139 100644
--- a/src/Game/AI/Query/queryCheckAppPoint.cpp
+++ b/src/Game/AI/Query/queryCheckAppPoint.cpp
@@ -1,5 +1,6 @@
#include "Game/AI/Query/queryCheckAppPoint.h"
#include <evfl/Query.h>
+#include "KingSystem/GameData/gdtSpecialFlags.h"
namespace uking::query {
@@ -7,9 +8,10 @@ CheckAppPoint::CheckAppPoint(const InitArg& arg) : ksys::act::ai::Query(arg) {}
CheckAppPoint::~CheckAppPoint() = default;
-// FIXME: implement
int CheckAppPoint::doQuery() {
- return -1;
+ s32 reach = ksys::gdt::getS32ByKey("ReachPointActorDiscoverNum");
+ s32 use = ksys::gdt::getS32ByKey("App_ExtendUsePoint");
+ return reach - use > 1;
}
void CheckAppPoint::loadParams(const evfl::QueryArg& arg) {}