Civs should be Friendly with themselves

This commit is contained in:
Rob Loach 2025-09-13 12:42:07 -04:00
parent 6fc69b0087
commit 20e9c2b66b
No known key found for this signature in database
GPG Key ID: 627C60834A74A21A

View File

@ -575,7 +575,7 @@ class Civilization : IsPartOfGameInfoSerialization {
"Human player" -> isHuman()
"AI player" -> isAI()
"Open Borders" -> state?.civInfo?.diplomacy[civName]?.hasOpenBorders ?: false
"Friendly" -> state?.civInfo?.diplomacy[civName]?.isRelationshipLevelGE(RelationshipLevel.Friend) ?: false
"Friendly" -> state?.civInfo?.let { it.civName == civName || (it.diplomacy[civName]?.isRelationshipLevelGE(RelationshipLevel.Friend) == true) } ?: false
"Hostile" -> state?.civInfo?.let { isAtWarWith(it) } ?: false
else -> nation.matchesFilter(filter, state, false)
}