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/strategic_orders.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'crates/fparkan-runtime/src/strategic_orders.rs') diff --git a/crates/fparkan-runtime/src/strategic_orders.rs b/crates/fparkan-runtime/src/strategic_orders.rs index a20153b0..f99f60bf 100644 --- a/crates/fparkan-runtime/src/strategic_orders.rs +++ b/crates/fparkan-runtime/src/strategic_orders.rs @@ -59,6 +59,11 @@ pub fn search_and_destroy( issue(engine, cockpit, actor, UnitOrder::SearchAndDestroy) } +/// Sends the selected warbot to a friendly facility to replenish its supplies. +pub fn recharge(engine: &mut Engine, cockpit: StartingCockpit, actor: ObjectHandle) -> bool { + issue(engine, cockpit, actor, UnitOrder::Recharge) +} + /// Replaces the selected warbot's order with the confirmed sequence of world points. pub fn follow_route( engine: &mut Engine, -- cgit v1.2.3