summaryrefslogtreecommitdiff
path: root/src/room.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/room.rs')
-rw-r--r--src/room.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/room.rs b/src/room.rs
index 916d76d..e19d689 100644
--- a/src/room.rs
+++ b/src/room.rs
@@ -34,7 +34,8 @@ use crate::{
Migrate,
Use,
Attacking,
- Trapping
+ Trapping,
+ Fight
},
components::{
Position,
@@ -83,7 +84,8 @@ impl <'a, 'b>Room<'a, 'b> {
.with(Use, "use", &["controlinput"])
.with(Move, "move", &["registernew", "controlinput"])
.with(Trapping, "trapping", &["move"])
- .with(Attacking, "attacking", &["use", "trapping"])
+ .with(Fight, "fight", &["move", "controlinput"])
+ .with(Attacking, "attacking", &["use", "trapping", "fight"])
.with(View::default(), "view", &["move", "attacking"])
.with(Migrate, "migrate", &["view"])
.with(Create, "create", &["view", "controlinput"])