diff options
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, |
