feat: Add wonder_event_url to GameConfig

This commit is contained in:
demenik
2025-12-09 15:20:42 +01:00
parent 5b734e6567
commit 14cd5419ac
3 changed files with 8 additions and 3 deletions

View File

@@ -26,5 +26,7 @@
"slice": "Seed3",
"growth_stages": 6
}
]
],
"wonder_event_url": "wss://pomomon.farm/ws"
}

View File

@@ -10,6 +10,7 @@ pub struct GameConfig {
pub shovel_base_price: u32,
pub shovel_rate: f32,
pub berry_seeds: Vec<BerrySeedConfig>,
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(),
}
}
}

View File

@@ -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"
}"#,
);