mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-25 04:43:05 -04:00
Fixed crash in city-state influence notification
This commit is contained in:
parent
b29813b389
commit
375c39c61e
@ -282,11 +282,12 @@ class DiplomacyManager() {
|
||||
influence = min(restingPoint, influence + increment)
|
||||
else influence = restingPoint
|
||||
|
||||
val civCapitalLocation = if(civInfo.cities.isNotEmpty()) civInfo.getCapital().location else null
|
||||
if (getTurnsToRelationshipChange() == 1)
|
||||
otherCiv().addNotification("Your relationship with [${civInfo.civName}] is about to degrade", civInfo.getCapital().location, Color.GOLD)
|
||||
otherCiv().addNotification("Your relationship with [${civInfo.civName}] is about to degrade", civCapitalLocation, Color.GOLD)
|
||||
|
||||
if (initialRelationshipLevel >= RelationshipLevel.Friend && initialRelationshipLevel != relationshipLevel())
|
||||
otherCiv().addNotification("Your relationship with [${civInfo.civName}] degraded", civInfo.getCapital().location, Color.GOLD)
|
||||
otherCiv().addNotification("Your relationship with [${civInfo.civName}] degraded", civCapitalLocation, Color.GOLD)
|
||||
}
|
||||
|
||||
private fun nextTurnFlags() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user