From 6c9e1480978e839692fa73f7e28639c3f95a36ee Mon Sep 17 00:00:00 2001 From: metamuffin Date: Fri, 12 Dec 2025 15:23:02 +0100 Subject: Customizable customer spawn delay (close #522) --- server/src/entity/mod.rs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'server/src/entity/mod.rs') 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 { -- cgit v1.3