summaryrefslogtreecommitdiff
path: root/src/componentwrapper.rs
diff options
context:
space:
mode:
authortroido <troido@protonmail.com>2020-02-23 23:44:50 +0100
committertroido <troido@protonmail.com>2020-02-23 23:44:50 +0100
commit86cdc6c567d0ca429d69bebbb2fb02f1d3754c8d (patch)
treed70eb9d9f014c9cdbf301772c339f22ee5e3ab82 /src/componentwrapper.rs
parentf422238d7aaae0ff1b2d560a71a99b0a881ad338 (diff)
players can now attack other objects
Diffstat (limited to 'src/componentwrapper.rs')
-rw-r--r--src/componentwrapper.rs4
1 files changed, 2 insertions, 2 deletions
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)}};
);