mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-13 17:28:57 +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? {
|
||||
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() {
|
||||
|
Reference in New Issue
Block a user