mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-27 13:55:54 -04:00
Spectators do not get natural wonder discovery notifications
This commit is contained in:
parent
c6942875bc
commit
d7b6fea2d4
@ -213,9 +213,10 @@ class CivInfoTransientCache(val civInfo: Civilization) {
|
|||||||
if (civInfo.naturalWonders.contains(tile.naturalWonder))
|
if (civInfo.naturalWonders.contains(tile.naturalWonder))
|
||||||
continue
|
continue
|
||||||
civInfo.naturalWonders.add(tile.naturalWonder!!)
|
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")
|
civInfo.addNotification("We have discovered [${tile.naturalWonder}]!",
|
||||||
|
tile.position, NotificationCategory.General, "StatIcons/Happiness")
|
||||||
|
|
||||||
var goldGained = 0
|
var goldGained = 0
|
||||||
val discoveredNaturalWonders = civInfo.gameInfo.civilizations.filter { it != civInfo && it.isMajorCiv() }
|
val discoveredNaturalWonders = civInfo.gameInfo.civilizations.filter { it != civInfo && it.isMajorCiv() }
|
||||||
@ -240,8 +241,6 @@ class CivInfoTransientCache(val civInfo: Civilization) {
|
|||||||
StateForConditionals(civInfo, tile = tile)
|
StateForConditionals(civInfo, tile = tile)
|
||||||
))
|
))
|
||||||
UniqueTriggerActivation.triggerCivwideUnique(unique, civInfo, tile=tile, triggerNotificationText = "due to discovering a Natural Wonder")
|
UniqueTriggerActivation.triggerCivwideUnique(unique, civInfo, tile=tile, triggerNotificationText = "due to discovering a Natural Wonder")
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user