From 036262043347ede8a6e752265b49d2f7d44d1cd2 Mon Sep 17 00:00:00 2001 From: demenik Date: Wed, 10 Dec 2025 14:00:47 +0100 Subject: [PATCH] feat: Add `berries_per_focus_minute` option in `GameConfig` (#63) --- assets/config.json | 3 ++- src/features/config/components.rs | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/assets/config.json b/assets/config.json index 4798184..0e6ba58 100644 --- a/assets/config.json +++ b/assets/config.json @@ -27,5 +27,6 @@ "growth_stages": 6 } ], - "wonder_event_url": "wss://pomomon.farm/ws" + "wonder_event_url": "wss://pomomon.farm/ws", + "berries_per_focus_minute": 1 } diff --git a/src/features/config/components.rs b/src/features/config/components.rs index d9b3b14..1f3ccb8 100644 --- a/src/features/config/components.rs +++ b/src/features/config/components.rs @@ -11,6 +11,7 @@ pub struct GameConfig { pub shovel_rate: f32, pub berry_seeds: Vec, pub wonder_event_url: String, + pub berries_per_focus_minute: u32, } #[derive(Deserialize, Debug, Clone)] @@ -54,6 +55,7 @@ impl Default for GameConfig { }, ], wonder_event_url: "wss://pomomon.farm/ws".into(), + berries_per_focus_minute: 1, } } }