mirror of
https://github.com/yairm210/Unciv.git
synced 2025-02-11 03:18:18 +07:00
Reverted 6a32d6
This commit is contained in:
parent
5223caf390
commit
c7265c79b6
@ -505,15 +505,13 @@ class DiplomacyManager() {
|
||||
revertToZero(DiplomaticModifiers.DeclarationOfFriendship, 1 / 2f) //decreases slowly and will revert to full if it is declared later
|
||||
|
||||
if (otherCiv().isCityState()) {
|
||||
val eraInfo = civInfo.getEraObject()
|
||||
|
||||
if (relationshipLevel() < RelationshipLevel.Friend) {
|
||||
if (hasFlag(DiplomacyFlags.ProvideMilitaryUnit)) removeFlag(DiplomacyFlags.ProvideMilitaryUnit)
|
||||
} else {
|
||||
val relevantBonuses = if (civInfo.gameInfo.ruleSet.eras.isEmpty()) null
|
||||
else {
|
||||
val eraInfo = civInfo.getEraObject()
|
||||
if (relationshipLevel() == RelationshipLevel.Friend) eraInfo.friendBonus[otherCiv().cityStateType.name]
|
||||
else eraInfo.allyBonus[otherCiv().cityStateType.name]
|
||||
}
|
||||
val relevantBonuses = if (relationshipLevel() == RelationshipLevel.Friend) eraInfo.friendBonus[otherCiv().cityStateType.name]
|
||||
else eraInfo.allyBonus[otherCiv().cityStateType.name]
|
||||
if (relevantBonuses == null && otherCiv().cityStateType == CityStateType.Militaristic) {
|
||||
// Deprecated, assume Civ V values for compatibility
|
||||
if (!hasFlag(DiplomacyFlags.ProvideMilitaryUnit) && relationshipLevel() == RelationshipLevel.Friend)
|
||||
|
Loading…
Reference in New Issue
Block a user