diff options
author | Alexander Foremny <aforemny@posteo.de> | 2024-03-24 14:32:01 +0100 |
---|---|---|
committer | Alexander Foremny <aforemny@posteo.de> | 2024-03-24 14:34:41 +0100 |
commit | f7428e317d282856d05ffc37b6ba474c5e9973ce (patch) | |
tree | cf016b07c1145ad4b62c210eb739085c0639f407 /src/shared/projectile.rs | |
parent | 1751960338fc7a08fec438a9b53c78118a35063a (diff) |
feat: damage types
Diffstat (limited to 'src/shared/projectile.rs')
-rw-r--r-- | src/shared/projectile.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/shared/projectile.rs b/src/shared/projectile.rs index f9fb592..5da0526 100644 --- a/src/shared/projectile.rs +++ b/src/shared/projectile.rs @@ -1,3 +1,4 @@ +use crate::shared::damage::*; use crate::shared::player::*; use crate::shared::*; @@ -24,7 +25,7 @@ impl ProjectileBundle { pub struct Projectile { pub type_: ProjectileType, pub source_player: PlayerId, - pub damage: f32, + pub damage: Damage, } #[derive(Component, Message, Serialize, Deserialize, Clone, Debug, PartialEq)] |