feat: Add notification for wonder event (#41)
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user