diff options
| author | troido <troido@protonmail.com> | 2020-02-28 12:40:52 +0100 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2020-02-28 12:40:52 +0100 |
| commit | 40e4e9e7a7e2c59a5659d8d4bd2ecfafed967299 (patch) | |
| tree | fa2c2bb9b293781a871ca64915b5c0149e36fd6c /src/systems/take.rs | |
| parent | 481e03e04b055cebaf230b3a3cdce3446418c68c (diff) | |
added cooldowns for moving and fighting
Diffstat (limited to 'src/systems/take.rs')
| -rw-r--r-- | src/systems/take.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systems/take.rs b/src/systems/take.rs index 99c66d5..1d139d8 100644 --- a/src/systems/take.rs +++ b/src/systems/take.rs @@ -39,7 +39,7 @@ impl <'a> System<'a> for Take { fn run(&mut self, (entities, controllers, positions, ground, mut removed, items, mut inventories, mut new, visibles): Self::SystemData) { for (ent, controller, position, inventory) in (&entities, &controllers, &positions, &mut inventories).join(){ - match &controller.0 { + match &controller.control { Control::Take(rank) if inventory.items.len() < inventory.capacity => { let mut ents = ground.by_height(&position.pos, &visibles, &ent); if let Some(idx) = rank { |
