Refactor: Remove unnecessary float conversion

This commit is contained in:
Azzurite 2022-06-19 21:50:06 +02:00
parent 363d241691
commit 9d5b3d4e4a

View File

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