diff options
| author | troido <troido@protonmail.com> | 2020-09-28 21:34:12 +0200 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2020-09-28 21:34:12 +0200 |
| commit | 5af83beb6f10023cef7eba192a0b190518fe967b (patch) | |
| tree | 5d559de847d3492999496651ec52136dd31f58a4 /src/componentwrapper.rs | |
| parent | b7187e210ae7e794c87ae2f76d0f212e5d716b15 (diff) | |
better type validation and spawners set home argument on their spawned template
Diffstat (limited to 'src/componentwrapper.rs')
| -rw-r--r-- | src/componentwrapper.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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<Pos>); Spawner (amount: i64, clan: String, template: Template, radius: i64) { Spawner{ amount: amount as usize, |
