From 481e03e04b055cebaf230b3a3cdce3446418c68c Mon Sep 17 00:00:00 2001 From: troido Date: Mon, 24 Feb 2020 14:39:04 +0100 Subject: added volatile wounds --- src/room.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/room.rs') 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::(); 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"]) -- cgit