diff options
author | metamuffin <metamuffin@disroot.org> | 2024-06-26 14:16:54 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-06-26 14:16:54 +0200 |
commit | 00c54b4594cd58504a7c93ac953ae6fe9f13c19a (patch) | |
tree | 1d0cd194d8a7ff6080fa6a12a387aa0b30c2bc66 /server | |
parent | af1221c3e3ba55f99d3a5dc0983c67f3bdda525f (diff) | |
download | hurrycurry-00c54b4594cd58504a7c93ac953ae6fe9f13c19a.tar hurrycurry-00c54b4594cd58504a7c93ac953ae6fe9f13c19a.tar.bz2 hurrycurry-00c54b4594cd58504a7c93ac953ae6fe9f13c19a.tar.zst |
random customer names
Diffstat (limited to 'server')
-rw-r--r-- | server/Cargo.toml | 1 | ||||
-rw-r--r-- | server/src/customer/mod.rs | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/server/Cargo.toml b/server/Cargo.toml index 9b954908..f09bdf4e 100644 --- a/server/Cargo.toml +++ b/server/Cargo.toml @@ -18,3 +18,4 @@ serde_yaml = "0.9.34+deprecated" rand = "0.9.0-alpha.1" shlex = "1.3.0" clap = { version = "4.5.7", features = ["derive"] } +fake = "2.9.2" diff --git a/server/src/customer/mod.rs b/server/src/customer/mod.rs index 0b300b6e..7f32b094 100644 --- a/server/src/customer/mod.rs +++ b/server/src/customer/mod.rs @@ -25,6 +25,7 @@ use crate::{ state::State, }; use anyhow::{anyhow, Result}; +use fake::{faker, Fake}; use glam::{IVec2, Vec2}; use log::{debug, error, warn}; use movement::MovementBase; @@ -193,7 +194,7 @@ impl CustomerManager { packets_out.push(( id, PacketS::Join { - name: "George".to_string(), + name: faker::name::fr_fr::Name().fake(), character: -2, }, )); |