Add a fixed base strength to motivationToAttack (#5248)

This commit is contained in:
SimonCeder 2021-09-17 12:23:03 +02:00 committed by GitHub
parent 38231bf937
commit c2fa1366bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -498,8 +498,9 @@ object NextTurnAutomation {
}
private fun motivationToAttack(civInfo: CivilizationInfo, otherCiv: CivilizationInfo): Int {
val ourCombatStrength = civInfo.getStatForRanking(RankingType.Force).toFloat()
var theirCombatStrength = otherCiv.getStatForRanking(RankingType.Force).toFloat()
val baseForce = 30f
val ourCombatStrength = civInfo.getStatForRanking(RankingType.Force).toFloat() + baseForce
var theirCombatStrength = otherCiv.getStatForRanking(RankingType.Force).toFloat() + baseForce
//for city-states, also consider there protectors
if(otherCiv.isCityState() and otherCiv.getProtectorCivs().isNotEmpty()) {