feat: Add notification for wonder event (#41)

This commit is contained in:
demenik
2025-12-10 15:50:51 +01:00
parent 110b306194
commit a4f5771d57

View File

@@ -165,6 +165,7 @@ fn handle_wonder_event_response(
mut tile_query: Query<&mut TileState>,
game_config: Res<GameConfig>,
mut commands: Commands,
mut notifications: ResMut<Notifications>,
) {
if let Ok(rx) = receiver.0.try_lock() {
while let Ok(msg) = rx.try_recv() {
@@ -191,6 +192,7 @@ fn handle_wonder_event_response(
new_stage += 1;
}
}
notifications.info(Some("Wunder Ereignis"), "Es ist ein Wunder passiert! Eine deiner Pflanzen ist auf magischer Weise gewachsen.");
TileState::Occupied {
seed: seed.clone(),