diff options
Diffstat (limited to 'server/src/entity/pedestrians.rs')
-rw-r--r-- | server/src/entity/pedestrians.rs | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/server/src/entity/pedestrians.rs b/server/src/entity/pedestrians.rs index 9b433ded..64adf57b 100644 --- a/server/src/entity/pedestrians.rs +++ b/server/src/entity/pedestrians.rs @@ -1,5 +1,3 @@ -use std::collections::HashMap; - /* Hurry Curry! - a game about cooking Copyright 2025 metamuffin @@ -19,9 +17,10 @@ use std::collections::HashMap; */ use super::{Entity, EntityContext}; use anyhow::Result; -use hurrycurry_protocol::{glam::Vec2, PacketS, PlayerClass, PlayerID}; +use hurrycurry_protocol::{glam::Vec2, Character, PacketS, PlayerClass, PlayerID}; use rand::{random, rng}; use rand_distr::Distribution; +use std::collections::HashMap; pub struct Pedestrians { pub players: HashMap<PlayerID, usize>, @@ -40,7 +39,11 @@ impl Entity for Pedestrians { let id = PlayerID(random()); c.packet_in.push_back(PacketS::Join { name: "Pedestrian".to_string(), - character: 0, + character: Character { + color: random(), + hairstyle: random(), + headwear: 0, + }, class: PlayerClass::Customer, id: Some(id), position: self.points.get(0).copied(), |