Fixed compile error from branch merging

This commit is contained in:
yairm210 2021-08-11 21:15:04 +03:00
parent 0d041ab1ef
commit fb266b07b2
3 changed files with 740 additions and 598 deletions

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

After

Width:  |  Height:  |  Size: 1.1 MiB

View File

@ -58,15 +58,24 @@ class CityInfoReligionManager {
val religionOwningCiv = cityInfo.civInfo.gameInfo.getCivilization(cityInfo.civInfo.gameInfo.religions[newMajorityReligion]!!.foundingCivName) val religionOwningCiv = cityInfo.civInfo.gameInfo.getCivilization(cityInfo.civInfo.gameInfo.religions[newMajorityReligion]!!.foundingCivName)
for (unique in cityInfo.civInfo.gameInfo.religions[newMajorityReligion]!!.getFounderUniques()) { for (unique in cityInfo.civInfo.gameInfo.religions[newMajorityReligion]!!.getFounderUniques()) {
val statsGranted = when (unique.placeholderText) { val statsGranted = when (unique.placeholderText) {
"[] when a city adopts this religion for the first time (modified by game speed)" -> unique.stats.times(cityInfo.civInfo.gameInfo.gameParameters.gameSpeed.modifier) "[] when a city adopts this religion for the first time (modified by game speed)" ->
unique.stats.times(cityInfo.civInfo.gameInfo.gameParameters.gameSpeed.modifier)
"[] when a city adopts this religion for the first time" -> unique.stats "[] when a city adopts this religion for the first time" -> unique.stats
else -> continue else -> continue
} }
religionOwningCiv.addStats(statsGranted) for (stat in statsGranted.toHashMap())
religionOwningCiv.addStat(stat.key, stat.value.toInt())
if (cityInfo.location in religionOwningCiv.exploredTiles) if (cityInfo.location in religionOwningCiv.exploredTiles)
religionOwningCiv.addNotification("You gained [$statsGranted] as your religion was spread to [${cityInfo.name}]", cityInfo.location, NotificationIcon.Faith) religionOwningCiv.addNotification(
"You gained [$statsGranted] as your religion was spread to [${cityInfo.name}]",
cityInfo.location,
NotificationIcon.Faith
)
else else
religionOwningCiv.addNotification("You gained [$statsGranted] as your religion was spread to an unknown city", NotificationIcon.Faith) religionOwningCiv.addNotification(
"You gained [$statsGranted] as your religion was spread to an unknown city",
NotificationIcon.Faith
)
} }
religionsAtSomePointAdopted.add(newMajorityReligion) religionsAtSomePointAdopted.add(newMajorityReligion)
} }