From 86cdc6c567d0ca429d69bebbb2fb02f1d3754c8d Mon Sep 17 00:00:00 2001 From: troido Date: Sun, 23 Feb 2020 23:44:50 +0100 Subject: players can now attack other objects --- src/componentwrapper.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/componentwrapper.rs') diff --git a/src/componentwrapper.rs b/src/componentwrapper.rs index 1a61728..67f551f 100644 --- a/src/componentwrapper.rs +++ b/src/componentwrapper.rs @@ -8,7 +8,7 @@ use crate::{ Sprite, playerstate::RoomPos, attack::Attack, - components::{Visible, Blocking, Player, Floor, Item, Inventory, Health, Serialise, RoomExit, Trap}, + components::{Visible, Blocking, Player, Floor, Item, Inventory, Health, Serialise, RoomExit, Trap, Fighter}, parameter::{Parameter, ParameterType} }; @@ -115,7 +115,7 @@ components!( } }; Trap (damage: Int) {Trap{attack: Attack::new(damage)}}; - + Fighter (damage: Int) {Fighter{attack: Attack::new(damage)}}; ); -- cgit