diff options
Diffstat (limited to 'server/src/entity/mod.rs')
| -rw-r--r-- | server/src/entity/mod.rs | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/server/src/entity/mod.rs b/server/src/entity/mod.rs index 2c46a017..279826a9 100644 --- a/server/src/entity/mod.rs +++ b/server/src/entity/mod.rs @@ -126,9 +126,14 @@ pub fn construct_entity(decl: &EntityDecl) -> DynEntity { blocker_tile, active: true, }), - EntityDecl::Customers { scaling_factor, .. } => { - Box::new(Customers::new(scaling_factor.unwrap_or(0.5))) - } + EntityDecl::Customers { + scaling_factor, + spawn_cooldown, + .. + } => Box::new(Customers::new( + scaling_factor.unwrap_or(0.5), + spawn_cooldown.unwrap_or(5.), + )), EntityDecl::EnvironmentEffect(config) => Box::new(EnvironmentEffectController::new(config)), EntityDecl::Environment(names) => Box::new(EnvironmentController(names)), EntityDecl::Tram { |