mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-11 00:08:58 +07:00
Spectators do not get natural wonder discovery notifications
This commit is contained in:
@ -213,9 +213,10 @@ class CivInfoTransientCache(val civInfo: Civilization) {
|
||||
if (civInfo.naturalWonders.contains(tile.naturalWonder))
|
||||
continue
|
||||
civInfo.naturalWonders.add(tile.naturalWonder!!)
|
||||
if(!civInfo.isSpectator())
|
||||
civInfo.addNotification("We have discovered [${tile.naturalWonder}]!",
|
||||
tile.position, NotificationCategory.General, "StatIcons/Happiness")
|
||||
if (civInfo.isSpectator()) continue // don't trigger anything
|
||||
|
||||
civInfo.addNotification("We have discovered [${tile.naturalWonder}]!",
|
||||
tile.position, NotificationCategory.General, "StatIcons/Happiness")
|
||||
|
||||
var goldGained = 0
|
||||
val discoveredNaturalWonders = civInfo.gameInfo.civilizations.filter { it != civInfo && it.isMajorCiv() }
|
||||
@ -240,8 +241,6 @@ class CivInfoTransientCache(val civInfo: Civilization) {
|
||||
StateForConditionals(civInfo, tile = tile)
|
||||
))
|
||||
UniqueTriggerActivation.triggerCivwideUnique(unique, civInfo, tile=tile, triggerNotificationText = "due to discovering a Natural Wonder")
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user