show wars in global politics (#7887)

* Update GlobalPoliticsOverviewTable.kt

* Update GlobalPoliticsOverviewTable.kt
This commit is contained in:
MindaugasRumsa51 2022-10-13 23:05:43 +03:00 committed by GitHub
parent f0ad7581bc
commit 22a97855b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -163,7 +163,7 @@ class GlobalPoliticsOverviewTable (
// wars
for (otherCiv in civ.getKnownCivs()) {
if(civ.diplomacy[otherCiv.civName]?.hasFlag(DiplomacyFlags.DeclaredWar) == true) {
if(civ.isAtWarWith(otherCiv)) {
val warText = "At war with [${otherCiv.civName}]".toLabel()
warText.color = Color.RED
politicsTable.add(warText).row()