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/room.rs | |
| parent | 481e03e04b055cebaf230b3a3cdce3446418c68c (diff) | |
added cooldowns for moving and fighting
Diffstat (limited to 'src/room.rs')
| -rw-r--r-- | src/room.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/room.rs b/src/room.rs index efec6cc..f3861dc 100644 --- a/src/room.rs +++ b/src/room.rs @@ -38,7 +38,8 @@ use crate::{ Trapping, Fight, Heal, - Volate + Volate, + UpdateCooldowns }, components::{ Position, @@ -83,7 +84,8 @@ impl <'a, 'b>Room<'a, 'b> { let mut dispatcher = DispatcherBuilder::new() .with(Volate, "volate", &[]) .with(RegisterNew::default(), "registernew", &[]) - .with(ControlInput, "controlinput", &["registernew"]) + .with(UpdateCooldowns, "cool_down", &["registernew"]) + .with(ControlInput, "controlinput", &["cool_down"]) .with(Take, "take", &["controlinput"]) .with(Use, "use", &["controlinput"]) .with(Move, "move", &["registernew", "controlinput"]) |
