From 5af83beb6f10023cef7eba192a0b190518fe967b Mon Sep 17 00:00:00 2001 From: troido Date: Mon, 28 Sep 2020 21:34:12 +0200 Subject: better type validation and spawners set home argument on their spawned template --- src/componentwrapper.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/componentwrapper.rs') diff --git a/src/componentwrapper.rs b/src/componentwrapper.rs index 75a0bca..2f12a42 100644 --- a/src/componentwrapper.rs +++ b/src/componentwrapper.rs @@ -159,7 +159,7 @@ components!(all: Fighter (damage: i64, cooldown: i64) {Fighter{attack: AttackType::Attack(damage), cooldown, range: 1}}; Healing (delay: i64, health: i64) {Healing{delay, health, next_heal: None}}; Autofight () {Autofight::default()}; - MonsterAI (move_chance: f64, view_distance: i64, homesickness: f64); + MonsterAI (move_chance: f64, view_distance: i64, homesickness: f64, home: Option); Spawner (amount: i64, clan: String, template: Template, radius: i64) { Spawner{ amount: amount as usize, -- cgit