summaryrefslogtreecommitdiff
path: root/src/componentwrapper.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/componentwrapper.rs')
-rw-r--r--src/componentwrapper.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/componentwrapper.rs b/src/componentwrapper.rs
index 8ab991a..1a61728 100644
--- a/src/componentwrapper.rs
+++ b/src/componentwrapper.rs
@@ -7,7 +7,8 @@ use crate::{
RoomId,
Sprite,
playerstate::RoomPos,
- components::{Visible, Blocking, Player, Floor, Item, Inventory, Health, Serialise, RoomExit},
+ attack::Attack,
+ components::{Visible, Blocking, Player, Floor, Item, Inventory, Health, Serialise, RoomExit, Trap},
parameter::{Parameter, ParameterType}
};
@@ -113,6 +114,7 @@ components!(
}
}
};
+ Trap (damage: Int) {Trap{attack: Attack::new(damage)}};
);