Fix a religion to be a majority when it's over 50% of the cities, not equal to 50% (#7223)

This commit is contained in:
alexban011 2022-06-19 22:48:54 +03:00 committed by GitHub
parent 8d742eef38
commit 363d241691
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,7 +70,7 @@ class ReligionManager {
}
fun isMajorityReligionForCiv(religion: Religion): Boolean {
return civInfo.cities.count { it.religion.getMajorityReligion() == religion } >= civInfo.cities.size / 2
return civInfo.cities.count { it.religion.getMajorityReligion() == religion } >= civInfo.cities.size.toFloat() / 2
}
fun faithForPantheon(additionalCivs: Int = 0) =