diff options
-rw-r--r-- | Cargo.lock | 17 | ||||
-rw-r--r-- | server/Cargo.toml | 1 | ||||
-rw-r--r-- | server/src/entity/customers.rs | 2 | ||||
-rw-r--r-- | test-client/protocol.ts | 2 |
4 files changed, 2 insertions, 20 deletions
@@ -507,12 +507,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e8566979429cf69b49a5c740c60791108e86440e8be149bbea4fe54d2c32d6e2" [[package]] -name = "deunicode" -version = "1.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "339544cc9e2c4dc3fc7149fd630c5f22263a4fdf18a98afd0075784968b5cf00" - -[[package]] name = "digest" version = "0.10.7" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -590,16 +584,6 @@ dependencies = [ ] [[package]] -name = "fake" -version = "2.9.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1c25829bde82205da46e1823b2259db6273379f626fc211f126f65654a2669be" -dependencies = [ - "deunicode", - "rand 0.8.5", -] - -[[package]] name = "fastrand" version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -866,7 +850,6 @@ dependencies = [ "bincode", "clap", "env_logger", - "fake", "futures-util", "hurrycurry-bot", "hurrycurry-client-lib", diff --git a/server/Cargo.toml b/server/Cargo.toml index 72e9dc45..3f48b499 100644 --- a/server/Cargo.toml +++ b/server/Cargo.toml @@ -17,7 +17,6 @@ serde_yml = "0.0.11" rand = "0.9.0-alpha.2" shlex = "1.3.0" clap = { version = "4.5.15", features = ["derive"] } -fake = "2.9.2" pollster = "0.3.0" bincode = "2.0.0-rc.3" diff --git a/server/src/entity/customers.rs b/server/src/entity/customers.rs index a89d5687..114ec440 100644 --- a/server/src/entity/customers.rs +++ b/server/src/entity/customers.rs @@ -41,7 +41,7 @@ impl Entity for Customers { if self.customers.len() < 5 && self.spawn_cooldown <= 0. { self.spawn_cooldown = 10. + random::<f32>() * 10.; let bot = BotDriver::new( - fake::Fake::fake(&fake::faker::name::fr_fr::Name()), + "".to_string(), -1 - (random::<u16>() as i32), Customer::default(), ); diff --git a/test-client/protocol.ts b/test-client/protocol.ts index e16f80d3..d5ce67ff 100644 --- a/test-client/protocol.ts +++ b/test-client/protocol.ts @@ -32,7 +32,7 @@ export interface Gamedata { tile_collide: boolean[], // Look-up table for TileIndex to check tile collision with players tile_interact: boolean[], // Look-up table for TileIndex to check if a tile is interactable spawn: Vec2, // Where players spawn when they join. - maps: { [key: string]: MapMetadata }, + maps: [string, MapMetadata][], } export type PacketS = |