From d4c2ee22771b20208ee07ec38d868c3b0ce963bf Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Sat, 14 Nov 2026 10:02:23 +0400 Subject: feat(runtime): replenish AutoDemo clans after combat losses --- crates/fparkan-runtime/src/player_weapon.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'crates/fparkan-runtime/src/player_weapon.rs') diff --git a/crates/fparkan-runtime/src/player_weapon.rs b/crates/fparkan-runtime/src/player_weapon.rs index 5e5e4152..f1fcbf7e 100644 --- a/crates/fparkan-runtime/src/player_weapon.rs +++ b/crates/fparkan-runtime/src/player_weapon.rs @@ -4,7 +4,7 @@ use fparkan_assets::{ }; /// The starting hero's selectable weapon devices, in resource order. -#[derive(Default)] +#[derive(Clone, Default)] pub struct PlayerWeapons { weapons: Vec, selected: Option, @@ -13,6 +13,7 @@ pub struct PlayerWeapons { } /// A manual-fire device prepared from its CTLD record and effect rows. +#[derive(Clone)] pub struct PlayerWeapon { /// Name of the projectile prototype. pub projectile: String, @@ -30,13 +31,14 @@ pub struct PlayerWeapon { phase_end_ms: f64, } +#[derive(Clone)] struct Barrel { muzzle: PreparedControlPoint, rate: f64, blend: f64, } -#[derive(PartialEq)] +#[derive(Clone, PartialEq)] enum FirePhase { Idle, Shot, -- cgit v1.2.3