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/strategic_orders.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/strategic_orders.rs')
| -rw-r--r-- | crates/fparkan-runtime/src/strategic_orders.rs | 5 |
1 files changed, 5 insertions, 0 deletions
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, |
