diff options
| author | troido <troido@protonmail.com> | 2020-02-24 12:38:23 +0100 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2020-02-24 12:38:23 +0100 |
| commit | 715c9106dbff4524f3fdf5d23f762e5e6518e0cb (patch) | |
| tree | cf5dc0c5d30fc9ba7e38bdff40907fe4a96261a2 /src/componentwrapper.rs | |
| parent | 4718cfdc7c2bf67d2389ca18ab035fe5a0887ff0 (diff) | |
healing works now too, the first time based system
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 67f551f..7e48668 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}, + components::{Visible, Blocking, Player, Floor, Item, Inventory, Health, Serialise, RoomExit, Trap, Fighter, Healing}, parameter::{Parameter, ParameterType} }; @@ -116,6 +116,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}}; ); |
