Appropriate notifications when wonders are built in a city you haven't yet seen
This commit is contained in:
parent
e1018371b3
commit
e99bf8004f
1 changed files with 5 additions and 2 deletions
|
@ -106,8 +106,11 @@ class CityConstructions {
|
|||
construction.postBuildEvent(this)
|
||||
inProgressConstructions.remove(currentConstruction)
|
||||
|
||||
if(construction is Building && construction.isWonder)
|
||||
cityInfo.civInfo.gameInfo.getPlayerCivilization().addNotification(currentConstruction + " has been built in " + cityInfo.name, cityInfo.location)
|
||||
if(construction is Building && construction.isWonder) {
|
||||
val playerCiv = cityInfo.civInfo.gameInfo.getPlayerCivilization()
|
||||
val builtLocation = if(playerCiv.exploredTiles.contains(cityInfo.location)) cityInfo.name else "a faraway land"
|
||||
playerCiv.addNotification("$currentConstruction has been built in $builtLocation", cityInfo.location)
|
||||
}
|
||||
else
|
||||
cityInfo.civInfo.addNotification(currentConstruction + " has been built in " + cityInfo.name, cityInfo.location)
|
||||
|
||||
|
|
Loading…
Reference in a new issue