summaryrefslogtreecommitdiff
path: root/server/src/entity/customers.rs
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/entity/customers.rs')
-rw-r--r--server/src/entity/customers.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/src/entity/customers.rs b/server/src/entity/customers.rs
index aaf6995f..388f7b26 100644
--- a/server/src/entity/customers.rs
+++ b/server/src/entity/customers.rs
@@ -18,6 +18,7 @@
use super::{bot::BotDriver, Entity, EntityContext};
use anyhow::Result;
use hurrycurry_bot::algos::Customer;
+use hurrycurry_protocol::PlayerClass;
use rand::random;
pub struct Customers {
@@ -53,7 +54,8 @@ impl Entity for Customers {
self.spawn_cooldown = 10. + random::<f32>() * 10.;
let bot = BotDriver::new(
"".to_string(),
- -1 - (random::<u16>() as i32),
+ random::<u16>() as i32,
+ PlayerClass::Customer,
Customer::default(),
);
self.customers.push(bot)