mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-15 02:09:21 +07:00
Fixed crash in city-state influence notification
This commit is contained in:
@ -282,11 +282,12 @@ class DiplomacyManager() {
|
|||||||
influence = min(restingPoint, influence + increment)
|
influence = min(restingPoint, influence + increment)
|
||||||
else influence = restingPoint
|
else influence = restingPoint
|
||||||
|
|
||||||
|
val civCapitalLocation = if(civInfo.cities.isNotEmpty()) civInfo.getCapital().location else null
|
||||||
if (getTurnsToRelationshipChange() == 1)
|
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())
|
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() {
|
private fun nextTurnFlags() {
|
||||||
|
Reference in New Issue
Block a user