mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-22 05:41:11 +07:00
Add a fixed base strength to motivationToAttack (#5248)
This commit is contained in:
@ -498,8 +498,9 @@ object NextTurnAutomation {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun motivationToAttack(civInfo: CivilizationInfo, otherCiv: CivilizationInfo): Int {
|
private fun motivationToAttack(civInfo: CivilizationInfo, otherCiv: CivilizationInfo): Int {
|
||||||
val ourCombatStrength = civInfo.getStatForRanking(RankingType.Force).toFloat()
|
val baseForce = 30f
|
||||||
var theirCombatStrength = otherCiv.getStatForRanking(RankingType.Force).toFloat()
|
val ourCombatStrength = civInfo.getStatForRanking(RankingType.Force).toFloat() + baseForce
|
||||||
|
var theirCombatStrength = otherCiv.getStatForRanking(RankingType.Force).toFloat() + baseForce
|
||||||
|
|
||||||
//for city-states, also consider there protectors
|
//for city-states, also consider there protectors
|
||||||
if(otherCiv.isCityState() and otherCiv.getProtectorCivs().isNotEmpty()) {
|
if(otherCiv.isCityState() and otherCiv.getProtectorCivs().isNotEmpty()) {
|
||||||
|
Reference in New Issue
Block a user