diff options
| author | troido <troido@protonmail.com> | 2020-02-24 14:39:04 +0100 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2020-02-24 14:39:04 +0100 |
| commit | 481e03e04b055cebaf230b3a3cdce3446418c68c (patch) | |
| tree | 565a2d8afc2fba8d73e310cd1a32b6a94b84039f /src/componentwrapper.rs | |
| parent | f6a037faa2b675cd7318d6dd8ccee5133c89845d (diff) | |
added volatile wounds
Diffstat (limited to 'src/componentwrapper.rs')
| -rw-r--r-- | src/componentwrapper.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/componentwrapper.rs b/src/componentwrapper.rs index 7e48668..4812b0b 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, Fighter, Healing}, + components::{Visible, Blocking, Player, Floor, Item, Inventory, Health, Serialise, RoomExit, Trap, Fighter, Healing, Volatile}, parameter::{Parameter, ParameterType} }; @@ -117,6 +117,7 @@ components!( Trap (damage: Int) {Trap{attack: Attack::new(damage)}}; Fighter (damage: Int) {Fighter{attack: Attack::new(damage)}}; Healing (delay: Int, health: Int) {Healing{delay, health, next_heal: None}}; + Volatile (delay: Int) {Volatile{delay, end_time: None}}; ); |
