From 95f7998e5cdfbf519ba8ae4741810473680a2bd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20CAMPO?= Date: Mon, 10 Feb 2025 20:57:27 +0100 Subject: [PATCH] Adding some new values to InnerStats struct and renaming two for more clarity --- weaponry/src/weaponry_structs.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/weaponry/src/weaponry_structs.rs b/weaponry/src/weaponry_structs.rs index 6589178..73c6389 100644 --- a/weaponry/src/weaponry_structs.rs +++ b/weaponry/src/weaponry_structs.rs @@ -8,6 +8,8 @@ // #[derive(Default)] #[allow(clippy::missing_docs_in_private_items)] pub struct InnerStats { + id: usize, + name: String, rarity: u8, cost: u8, difficulty: u8, @@ -22,8 +24,8 @@ pub struct InnerStats { damage_type: DamageMod, protection: u8, integrity: u8, - two_handed: u8, - one_handed: u8, + torque_two_handed: Option, + torque_one_handed: Option, dodge: u8, parry: u8, speed: u8, @@ -31,7 +33,7 @@ pub struct InnerStats { category: WeaponCategory, special: Vec, action_cost: u8, - reload_cost: u8, + reload_cost: Option, range: u8, agility_bonus: u8, }