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/systems/useitem.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/systems/useitem.rs') diff --git a/src/systems/useitem.rs b/src/systems/useitem.rs index 4414b39..183bd79 100644 --- a/src/systems/useitem.rs +++ b/src/systems/useitem.rs @@ -36,7 +36,7 @@ impl <'a> System<'a> for Use { fn run(&mut self, (entities, controllers, positions, mut inventories, mut new, mut attacked): Self::SystemData) { for (ent, controller, position, inventory) in (&entities, &controllers, &positions, &mut inventories).join(){ - match &controller.0 { + match &controller.control { Control::Use(rank) => { if let Some(item) = inventory.items.get(*rank) { match &item.action { -- cgit