diff options
| author | troido <troido@protonmail.com> | 2020-02-24 14:39:04 +0100 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2020-02-24 14:39:04 +0100 |
| commit | 481e03e04b055cebaf230b3a3cdce3446418c68c (patch) | |
| tree | 565a2d8afc2fba8d73e310cd1a32b6a94b84039f /src/room.rs | |
| parent | f6a037faa2b675cd7318d6dd8ccee5133c89845d (diff) | |
added volatile wounds
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 9b0f33a..efec6cc 100644 --- a/src/room.rs +++ b/src/room.rs @@ -37,7 +37,8 @@ use crate::{ Attacking, Trapping, Fight, - Heal + Heal, + Volate }, components::{ Position, @@ -80,6 +81,7 @@ impl <'a, 'b>Room<'a, 'b> { world.register::<Serialise>(); let mut dispatcher = DispatcherBuilder::new() + .with(Volate, "volate", &[]) .with(RegisterNew::default(), "registernew", &[]) .with(ControlInput, "controlinput", &["registernew"]) .with(Take, "take", &["controlinput"]) @@ -89,7 +91,7 @@ impl <'a, 'b>Room<'a, 'b> { .with(Fight, "fight", &["move", "controlinput"]) .with(Heal, "heal", &["registernew"]) .with(Attacking, "attacking", &["use", "trapping", "fight", "heal"]) - .with(View::default(), "view", &["move", "attacking"]) + .with(View::default(), "view", &["move", "attacking", "volate"]) .with(Migrate, "migrate", &["view"]) .with(Create, "create", &["view", "controlinput"]) .with(Remove, "remove", &["view", "move"]) |
