mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-27 05:46:43 -04:00
Refactor: Remove unnecessary float conversion
This commit is contained in:
parent
363d241691
commit
9d5b3d4e4a
@ -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) =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user