mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-21 10:25:10 -04:00
Civs should be Friendly with themselves
This commit is contained in:
parent
6fc69b0087
commit
20e9c2b66b
@ -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)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user