From c846377ead77ef7184cdeddd25c3f2c9d76a6736 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Wed, 2 Dec 2026 13:27:06 +0400 Subject: feat(ui): send warbots to recharge from the strategic panel Verify LTW-3 approaches the generator and clears its recharge status after leaving from the stock Two Fortresses start. Reuse authored building passages and shared Control replenishment, with a licensed test for refilling an empty magazine. --- crates/fparkan-runtime/src/control_resources.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'crates/fparkan-runtime/src/control_resources.rs') diff --git a/crates/fparkan-runtime/src/control_resources.rs b/crates/fparkan-runtime/src/control_resources.rs index 3e7f8aab..676f7008 100644 --- a/crates/fparkan-runtime/src/control_resources.rs +++ b/crates/fparkan-runtime/src/control_resources.rs @@ -133,7 +133,11 @@ pub(super) fn tick(engine: &mut Engine, now_ms: u32) { continue; }; if mobile_owner { - repair_zone::service_unit(table, world, pose, &facilities, seconds); + let docked = mission + .unit_patrol + .as_ref() + .is_some_and(|patrol| patrol.is_servicing(table.handle)); + repair_zone::service_unit(table, world, pose, &facilities, seconds, docked); } let object = table.original_id.map_or(table.handle.slot, |id| id.0); let ticks = state.profiles.ticks.entry(object).or_default(); -- cgit v1.2.3