From d246537a28a7a71dfb2487d31d6fac3ccab5053d Mon Sep 17 00:00:00 2001 From: troido Date: Mon, 2 Mar 2020 00:45:21 +0100 Subject: implemented autofight --- src/componentwrapper.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/componentwrapper.rs') diff --git a/src/componentwrapper.rs b/src/componentwrapper.rs index 08164e4..54c0daa 100644 --- a/src/componentwrapper.rs +++ b/src/componentwrapper.rs @@ -22,7 +22,8 @@ use crate::{ Fighter, Healing, Volatile, - AttackMessage + AttackMessage, + Autofight }, parameter::{Parameter, ParameterType} }; @@ -134,6 +135,7 @@ components!( Fighter (damage: Int, cooldown: Int) {Fighter{attack: AttackMessage::new(damage), cooldown}}; Healing (delay: Int, health: Int) {Healing{delay, health, next_heal: None}}; Volatile (delay: Int) {Volatile{delay, end_time: None}}; + Autofight () {Autofight::default()}; ); -- cgit