mirror of
https://github.com/yairm210/Unciv.git
synced 2025-02-11 11:28:03 +07:00
Fixed compile error from branch merging
This commit is contained in:
parent
0d041ab1ef
commit
fb266b07b2
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 |
@ -58,15 +58,24 @@ class CityInfoReligionManager {
|
||||
val religionOwningCiv = cityInfo.civInfo.gameInfo.getCivilization(cityInfo.civInfo.gameInfo.religions[newMajorityReligion]!!.foundingCivName)
|
||||
for (unique in cityInfo.civInfo.gameInfo.religions[newMajorityReligion]!!.getFounderUniques()) {
|
||||
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
|
||||
else -> continue
|
||||
}
|
||||
religionOwningCiv.addStats(statsGranted)
|
||||
for (stat in statsGranted.toHashMap())
|
||||
religionOwningCiv.addStat(stat.key, stat.value.toInt())
|
||||
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
|
||||
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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user