summaryrefslogtreecommitdiff
path: root/src/playerstate.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/playerstate.rs')
-rw-r--r--src/playerstate.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/playerstate.rs b/src/playerstate.rs
index e27af1d..01e85fe 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, Healing},
+ components::{Visible, Player, Inventory, Health, Fighter, Healing, Movable},
attack::Attack,
Result,
aerr,
@@ -117,7 +117,8 @@ impl PlayerState {
}),
ComponentWrapper::Health(Health{health: self.health, maxhealth: self.maximum_health}),
ComponentWrapper::Fighter(Fighter{attack: Attack::new(5), cooldown: 8}),
- ComponentWrapper::Healing(Healing{delay: 50, health: 1, next_heal: None})
+ ComponentWrapper::Healing(Healing{delay: 50, health: 1, next_heal: None}),
+ ComponentWrapper::Movable(Movable{cooldown: 2})
]
}
}