diff --git a/assets/config.json b/assets/config.json index 56bc933..0eaa793 100644 --- a/assets/config.json +++ b/assets/config.json @@ -26,5 +26,7 @@ "slice": "Seed3", "growth_stages": 6 } - ] -} \ No newline at end of file + ], + "wonder_event_url": "wss://pomomon.farm/ws" +} + diff --git a/src/features/config/components.rs b/src/features/config/components.rs index 6533682..d9b3b14 100644 --- a/src/features/config/components.rs +++ b/src/features/config/components.rs @@ -10,6 +10,7 @@ pub struct GameConfig { pub shovel_base_price: u32, pub shovel_rate: f32, pub berry_seeds: Vec, + pub wonder_event_url: String, } #[derive(Deserialize, Debug, Clone)] @@ -52,6 +53,7 @@ impl Default for GameConfig { growth_stages: 6, }, ], + wonder_event_url: "wss://pomomon.farm/ws".into(), } } } diff --git a/tests/config.rs b/tests/config.rs index 90b2dc6..1ea4a20 100644 --- a/tests/config.rs +++ b/tests/config.rs @@ -25,7 +25,8 @@ fn test_load_valid_config() { "pom_speed": 2.0, "shovel_base_price": 10, "shovel_rate": 0.2, - "berry_seeds": [] + "berry_seeds": [], + "wonder_event_url": "wss://pomomon.farm/ws" }"#, );