mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-27 05:46:43 -04:00
Spectators do not get natural wonder discovery notifications
This commit is contained in:
parent
c6942875bc
commit
d7b6fea2d4
@ -213,7 +213,8 @@ class CivInfoTransientCache(val civInfo: Civilization) {
|
||||
if (civInfo.naturalWonders.contains(tile.naturalWonder))
|
||||
continue
|
||||
civInfo.naturalWonders.add(tile.naturalWonder!!)
|
||||
if(!civInfo.isSpectator())
|
||||
if (civInfo.isSpectator()) continue // don't trigger anything
|
||||
|
||||
civInfo.addNotification("We have discovered [${tile.naturalWonder}]!",
|
||||
tile.position, NotificationCategory.General, "StatIcons/Happiness")
|
||||
|
||||
@ -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")
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user