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 /apps/fparkan-game | |
| 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 'apps/fparkan-game')
| -rw-r--r-- | apps/fparkan-game/src/strategic_roster_hud.rs | 8 | ||||
| -rw-r--r-- | apps/fparkan-game/src/strategic_view.rs | 5 |
2 files changed, 9 insertions, 4 deletions
diff --git a/apps/fparkan-game/src/strategic_roster_hud.rs b/apps/fparkan-game/src/strategic_roster_hud.rs index 1a57bc70..1268180e 100644 --- a/apps/fparkan-game/src/strategic_roster_hud.rs +++ b/apps/fparkan-game/src/strategic_roster_hud.rs @@ -19,7 +19,7 @@ pub(super) struct StrategicRosterHud { card: Option<WarbotStats>, rows: Vec<WarbotRow>, selected: Option<ObjectHandle>, - order_labels: [String; 5], + order_labels: [String; 6], orders: Option<Option<RosterOrder>>, } @@ -57,9 +57,9 @@ impl StrategicRosterHud { [1.0; 3], 1.0, )?; - let [orders, stand, follow, search, patrol] = - [0x13dc, 0x1388, 0x1389, 0x138b, 0x138e].map(localized); - let order_labels = [orders?, stand?, follow?, search?, patrol?]; + let [orders, stand, follow, search, patrol, recharge] = + [0x13dc, 0x1388, 0x1389, 0x138b, 0x138e, 0x138f].map(localized); + let order_labels = [orders?, stand?, follow?, search?, patrol?, recharge?]; Ok(Self { range, images, diff --git a/apps/fparkan-game/src/strategic_view.rs b/apps/fparkan-game/src/strategic_view.rs index 869b9d77..d21549ae 100644 --- a/apps/fparkan-game/src/strategic_view.rs +++ b/apps/fparkan-game/src/strategic_view.rs @@ -395,6 +395,11 @@ impl StaticVulkanApp { view.order_input = Some(OrderInput::Patrol); return; } + Some((actor, RosterOrder::Recharge)) => { + strategic_orders::recharge(engine, cockpit, actor); + view.order_input = None; + return; + } None => {} } } |
