summaryrefslogtreecommitdiff
path: root/server/src
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-12-25 19:58:35 +0100
committermetamuffin <metamuffin@disroot.org>2024-12-25 20:01:43 +0100
commit502b284be74445d3cecace4dff82f37aee32c3e5 (patch)
tree4338e504e088fb022ea16f7a91a50f6781b3165b /server/src
parent4083df5cfe76e42506c5356cf23d3dc9f3b6e6bf (diff)
downloadhurrycurry-502b284be74445d3cecace4dff82f37aee32c3e5.tar
hurrycurry-502b284be74445d3cecace4dff82f37aee32c3e5.tar.bz2
hurrycurry-502b284be74445d3cecace4dff82f37aee32c3e5.tar.zst
map-specific two-handed mode
Diffstat (limited to 'server/src')
-rw-r--r--server/src/data/mod.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/src/data/mod.rs b/server/src/data/mod.rs
index 15fdfa6b..64f40217 100644
--- a/server/src/data/mod.rs
+++ b/server/src/data/mod.rs
@@ -73,6 +73,7 @@ pub struct MapDecl {
walkable: Vec<String>,
chef_spawn: char,
customer_spawn: char,
+ #[serde(default)] hand_count: Option<usize>,
#[serde(default)] entities: Vec<EntityDecl>,
#[serde(default)] tile_entities: HashMap<char, EntityDecl>,
#[serde(default)] score_baseline: i64,
@@ -314,7 +315,7 @@ pub fn build_data(
item_names,
demands,
tile_names,
- hand_count: 2,
+ hand_count: map_in.hand_count.unwrap_or(1),
},
Serverdata {
initial_map,