summaryrefslogtreecommitdiff
path: root/src/componentwrapper.rs
diff options
context:
space:
mode:
authortroido <troido@protonmail.com>2020-03-02 00:45:21 +0100
committertroido <troido@protonmail.com>2020-03-02 00:45:21 +0100
commitd246537a28a7a71dfb2487d31d6fac3ccab5053d (patch)
tree885f89ee5605659edd7359279cf6d046ebb3fa3f /src/componentwrapper.rs
parent32037d2247a4db1c1c09d63a7849f562b6081bfe (diff)
implemented autofight
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 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()};
);