summaryrefslogtreecommitdiff
path: root/src/playerstate.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/playerstate.rs')
-rw-r--r--src/playerstate.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/playerstate.rs b/src/playerstate.rs
index dc4594b..4ccd6af 100644
--- a/src/playerstate.rs
+++ b/src/playerstate.rs
@@ -14,7 +14,7 @@ use crate::{
Fighter,
Healing,
Movable,
- AttackMessage,
+ AttackType,
Autofight
},
Result,
@@ -131,7 +131,7 @@ impl PlayerState {
capacity: self.inventory_capacity
}),
ComponentWrapper::Health(Health{health: self.health, maxhealth: self.maximum_health}),
- ComponentWrapper::Fighter(Fighter{attack: AttackMessage::new(5), cooldown: 8, range: 1}),
+ ComponentWrapper::Fighter(Fighter{attack: AttackType::Attack(5), cooldown: 8, range: 1}),
ComponentWrapper::Healing(Healing{delay: 50, health: 1, next_heal: None}),
ComponentWrapper::Movable(Movable{cooldown: 2}),
ComponentWrapper::Autofight(Autofight::default())