diff options
| author | Valentin Popov <valentin@popov.link> | 2026-12-02 12:27:06 +0300 |
|---|---|---|
| committer | Valentin Popov <valentin@popov.link> | 2026-12-02 12:27:06 +0300 |
| commit | c846377ead77ef7184cdeddd25c3f2c9d76a6736 (patch) | |
| tree | 6980b05a3fa7ea41b26f64c40ad1fef91849af23 /crates/fparkan-runtime/src/control_resources.rs | |
| parent | 7dd027fd5130daf532cd2214a6d9689293bb2c86 (diff) | |
| download | fparkan-c846377ead77ef7184cdeddd25c3f2c9d76a6736.tar.xz fparkan-c846377ead77ef7184cdeddd25c3f2c9d76a6736.zip | |
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.
Diffstat (limited to 'crates/fparkan-runtime/src/control_resources.rs')
| -rw-r--r-- | crates/fparkan-runtime/src/control_resources.rs | 6 |
1 files changed, 5 insertions, 1 deletions
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(); |
