diff options
| author | Valentin Popov <valentin@popov.link> | 2026-11-25 14:41:21 +0300 |
|---|---|---|
| committer | Valentin Popov <valentin@popov.link> | 2026-11-25 14:41:21 +0300 |
| commit | 7a7001c96afdbe0e5d574337bec476f230692477 (patch) | |
| tree | 74d887cfb724d06aee67c61dfa5421b9e64c1408 /docs/tomes | |
| parent | 27d6ea19b0206b71ef6c309142e0875275882bf0 (diff) | |
| download | fparkan-7a7001c96afdbe0e5d574337bec476f230692477.tar.xz fparkan-7a7001c96afdbe0e5d574337bec476f230692477.zip | |
feat(ai): construct clan factories, storage and laboratories
Allow ORDER_ROBOT_BUILD to use the first BuildDat scheme for factories,
storage and laboratories, with the existing technology and onboard-ore gates.
Register completed factories for production and reset their free-build quota
when a prepared slot is reused. Exclude reserved models from initial BAS cuts
using the mission object count, preserving placed neutral buildings.
Validation: fmt, workspace check and tests; ignored licensed stock-start test
builds a factory in mission 29 and queues a transport there. Original Behavior.dll
price calls confirm 670/770/560 ore for storage/factory/laboratory. Stock simulation
also builds a laboratory; a validation-enabled window reaches the first factory.
The new buildings were outside the player's window view; visual construction
parity is not established. G7 still needs mine query 40, research transition 8,
builder resupply and live BAS updates.
Diffstat (limited to 'docs/tomes')
| -rw-r--r-- | docs/tomes/06-behavior.md | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/tomes/06-behavior.md b/docs/tomes/06-behavior.md index 90475aa7..4fdd9baa 100644 --- a/docs/tomes/06-behavior.md +++ b/docs/tomes/06-behavior.md @@ -519,6 +519,17 @@ RVA `0x28800` проверяет детали и считает цену. Ког Изолированный вызов расчёта цены по RVA `0x29810` подтвердил отказ по штатным флагам и цену 1100 руды после открытия деталей. +То же правило действует для склада, завода и лаборатории: первая схема +категории, разрешённые детали и цена из таблицы клана. Исполнение того же +расчёта в DLL на исходных технологиях «Третьей части» даёт соответственно +670, 770 и 560 руды, 177, 178 и 145 энергии. Строитель расходует руду; +энергия здесь не списывается как отдельный ресурс заказа. +В FParkan сценарий этой миссии со штатного старта уже ставит завод и +лабораторию. Готовое здание получает контроллер, запас руды и логический +ID, а завод входит в список производства и принимает заказ транспортника. +Резервные модели будущих зданий не вырезают фундаменты в стартовом рельефе. +Перестройка рельефа при их появлении ещё открыта. + ### Первый запуск сценария |
