mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-16 18:59:15 +07:00
Fix unique Great Prophets not having the correct cost when buying at an increasing cost (#10095)
This commit is contained in:
@ -168,7 +168,8 @@ class ReligionManager : IsPartOfGameInfoSerialization {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun getGreatProphetEquivalent(): BaseUnit? {
|
fun getGreatProphetEquivalent(): BaseUnit? {
|
||||||
return civInfo.gameInfo.ruleset.units.values.firstOrNull { it.hasUnique(UniqueType.MayFoundReligion) }
|
val baseUnit = civInfo.gameInfo.ruleset.units.values.firstOrNull { it.hasUnique(UniqueType.MayFoundReligion) }
|
||||||
|
return if (baseUnit == null) null else civInfo.getEquivalentUnit(baseUnit)
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun generateProphet() {
|
private fun generateProphet() {
|
||||||
|
Reference in New Issue
Block a user