summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-08-15 20:10:42 +0200
committermetamuffin <metamuffin@disroot.org>2024-08-15 20:10:42 +0200
commit967d3a0d70aa0b002373c593c7b31168c24d0a19 (patch)
treed863fe3e86cc5e5d2034eb6d744cf366d529b2e2
parent36fedecc82f9741491f3d154afa9bc7c6c8ad712 (diff)
downloadhurrycurry-967d3a0d70aa0b002373c593c7b31168c24d0a19.tar
hurrycurry-967d3a0d70aa0b002373c593c7b31168c24d0a19.tar.bz2
hurrycurry-967d3a0d70aa0b002373c593c7b31168c24d0a19.tar.zst
empty usernames for customers
-rw-r--r--Cargo.lock17
-rw-r--r--server/Cargo.toml1
-rw-r--r--server/src/entity/customers.rs2
-rw-r--r--test-client/protocol.ts2
4 files changed, 2 insertions, 20 deletions
diff --git a/Cargo.lock b/Cargo.lock
index 4b3a4d4b..a7f72d56 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -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 =