From 40e4e9e7a7e2c59a5659d8d4bd2ecfafed967299 Mon Sep 17 00:00:00 2001 From: troido Date: Fri, 28 Feb 2020 12:40:52 +0100 Subject: added cooldowns for moving and fighting --- src/playerstate.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/playerstate.rs') diff --git a/src/playerstate.rs b/src/playerstate.rs index 4117bad..e27af1d 100644 --- a/src/playerstate.rs +++ b/src/playerstate.rs @@ -116,7 +116,7 @@ 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), cooldown: 8}), ComponentWrapper::Healing(Healing{delay: 50, health: 1, next_heal: None}) ] } -- cgit