diff options
| author | troido <troido@protonmail.com> | 2020-03-03 18:06:02 +0100 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2020-03-03 18:06:02 +0100 |
| commit | 986c82723cf9a4adada02287309999f4ebbf94e3 (patch) | |
| tree | acc26dfd3cb604c959d16f4291db2f6f21d242f9 /src/components/mod.rs | |
| parent | 9954b5cbaab27aaffcafa8723dcd5d1c99fa811f (diff) | |
randomise attack damage
Diffstat (limited to 'src/components/mod.rs')
| -rw-r--r-- | src/components/mod.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/components/mod.rs b/src/components/mod.rs index 96261c7..202caf2 100644 --- a/src/components/mod.rs +++ b/src/components/mod.rs @@ -5,7 +5,8 @@ pub mod messages; pub use item::Item; pub use messages::{ AttackMessage, - AttackInbox + AttackInbox, + AttackType }; use specs::{ @@ -140,13 +141,13 @@ pub struct Dead; #[derive(Component, Debug, Clone)] #[storage(HashMapStorage)] pub struct Trap { - pub attack: AttackMessage + pub attack: AttackType } #[derive(Component, Debug, Clone)] #[storage(HashMapStorage)] pub struct Fighter { - pub attack: AttackMessage, + pub attack: AttackType, pub cooldown: i64, pub range: i64 } |
