diff options
author | Alexander Foremny <aforemny@posteo.de> | 2024-03-18 07:26:56 +0100 |
---|---|---|
committer | Alexander Foremny <aforemny@posteo.de> | 2024-03-18 07:30:53 +0100 |
commit | ad9a34852a289a19e480fc8c20eb2fe22544fadc (patch) | |
tree | 706844838a7e5a75c557d4c8110bdd9f5f5d2a76 /src/shared/stats.rs | |
parent | cc19e7c6a5d91abeb55e00e8ece986101c2293bd (diff) |
feat: vary max health
Diffstat (limited to 'src/shared/stats.rs')
-rw-r--r-- | src/shared/stats.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/shared/stats.rs b/src/shared/stats.rs index 8513a3c..ae449f0 100644 --- a/src/shared/stats.rs +++ b/src/shared/stats.rs @@ -4,6 +4,7 @@ use crate::shared::*; pub struct Stats { pub attack_range: f32, pub movement_speed: f32, + pub max_health: f32, } #[derive(Component, Message, Clone, Copy, Serialize, Deserialize, PartialEq, Debug)] @@ -18,10 +19,12 @@ impl BaseStats { Champion::Meele => BaseStats(Stats { attack_range: 25., movement_speed: 75., + max_health: 150., }), Champion::Ranged => BaseStats(Stats { attack_range: 60., movement_speed: 85., + max_health: 100., }), } } |