diff options
| author | troido <troido@protonmail.com> | 2020-03-03 14:55:45 +0100 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2020-03-03 14:55:45 +0100 |
| commit | c51585be254795be90626dbc376663b1be8b5bf5 (patch) | |
| tree | f172d05e4ef3c9df62006c627f3f53bc4176985f /src/componentwrapper.rs | |
| parent | c30c92c23a269e5ff28946d3522e68338696ac94 (diff) | |
dummies respawn too; fixed problems with respawn delay
Diffstat (limited to 'src/componentwrapper.rs')
| -rw-r--r-- | src/componentwrapper.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/componentwrapper.rs b/src/componentwrapper.rs index 88597bf..9b1dd7f 100644 --- a/src/componentwrapper.rs +++ b/src/componentwrapper.rs @@ -127,7 +127,7 @@ components!( Autofight () {Autofight::default()}; MonsterAI (move_chance: Float, homesickness: Float, view_distance: Int) {MonsterAI{move_chance, homesickness, view_distance}}; Mortal () {Mortal}; - Spawner (amount: Int, delay: Int, clan: String, template: Template) { + Spawner (amount: Int, delay: Int, clan: String, template: Template, initial_spawn: Bool) { Spawner{ amount: amount as usize, delay, @@ -139,7 +139,7 @@ components!( } }, template: template.unsaved(), - last_spawn: Timestamp(0) + last_spawn: if initial_spawn {Some(Timestamp(-delay))} else {None} } }; Clan (name: String) Clan{name}; |
