diff options
Diffstat (limited to 'src/playerstate.rs')
| -rw-r--r-- | src/playerstate.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/playerstate.rs b/src/playerstate.rs index 3339dd1..4117bad 100644 --- a/src/playerstate.rs +++ b/src/playerstate.rs @@ -6,7 +6,7 @@ use crate::{ componentwrapper::{ComponentWrapper, PreEntity}, PlayerId, RoomId, - components::{Visible, Player, Inventory, Health, Fighter}, + components::{Visible, Player, Inventory, Health, Fighter, Healing}, attack::Attack, Result, aerr, @@ -116,7 +116,8 @@ impl PlayerState { capacity: self.inventory_capacity }), ComponentWrapper::Health(Health{health: self.health, maxhealth: self.maximum_health}), - ComponentWrapper::Fighter(Fighter{attack: Attack::new(5)}) + ComponentWrapper::Fighter(Fighter{attack: Attack::new(5)}), + ComponentWrapper::Healing(Healing{delay: 50, health: 1, next_heal: None}) ] } } |
