From 27d6ea19b0206b71ef6c309142e0875275882bf0 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Wed, 25 Nov 2026 15:20:46 +0400 Subject: fix(ai): account for pending construction in class limits Implement Handler(11) limits for the original class set, including hangar and laboratory counters. Keep owned-object caps separate from pending thresholds; medium and large towers allow three and one active builds. Record the ordered class on construction tasks and count queries by clan, class and result. Execute ai.dll RVA 0xc5e7 with the GOG hash guard and compare owned counts, maxima, pending counts and unknown classes. Preserve these native vectors in a Rust test. Extend the licensed construction test to require pending count before registration, owner isolation and reset after completion. Validate fmt, workspace check/tests, licensed construction, release build and stock mission 29 in simulation and its window. This removes the Handler(11) coverage blocker for the following construction work; generic building orders and Handler(40) are still open. Pending counter sources and lifecycle beyond active FParkan Construction tasks remain approximate. --- docs/appendices/knowledge-boundaries.md | 3 +++ 1 file changed, 3 insertions(+) (limited to 'docs/appendices/knowledge-boundaries.md') diff --git a/docs/appendices/knowledge-boundaries.md b/docs/appendices/knowledge-boundaries.md index 5ff31df3..1043ca6b 100644 --- a/docs/appendices/knowledge-boundaries.md +++ b/docs/appendices/knowledge-boundaries.md @@ -40,6 +40,9 @@ authoring API без динамического подтверждения. `script_unit_queue_approx` считает принятые Go, Attack, ShutDown и добавленный Patrol по объекту и типу приказа. Переход к следующей команде использует приближённое достижение точки и удаление цели; нативное завершение задач и параметры профиля открыты. +`script_class_limit_approx` считает запросы `Handler(11)` по клану, классу +и ответу. Незавершённые постройки берутся из активных задач Construction; +прочие источники нативных счётчиков и момент их обновления ещё открыты. `mine_orders_approx` отмечает немедленное развёртывание шахты по M на подготовленном месторождении. Подход строителя, время и эффекты сборки, доля питания и динамический BAS -- cgit v1.2.3