Fixed a bug where great prophets gained through non-conventional means did not receive bonus spreads provided by wonders (#5558)

* Fixed a bug where great prophets gained through non-conventional means did not receive bonus spreads provided by wonders

* Fixed overextended indentation
This commit is contained in:
Xander Lenstra 2021-10-25 22:56:48 +02:00 committed by GitHub
parent 5d9c1266d7
commit cbfbec166b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -1019,7 +1019,7 @@ class CivilizationInfo {
city != null -> city.cityConstructions.cityInfo.religion.getMajorityReligionName()
else -> religionManager.religion?.name
}
placedUnit.setupAbilityUses()
placedUnit.setupAbilityUses(cityToAddTo)
}
for (unique in getMatchingUniques("Land units may cross [] tiles after the first [] is earned")) {

View File

@ -244,7 +244,7 @@ class MapGenerator(val ruleset: Ruleset) {
tileMap.setTransients(ruleset)
for (tile in tileMap.values.asSequence().filter { !it.isWater }) {
var elevation = randomness.getPerlinNoise(tile, elevationSeed, scale = 2.0)
elevation = abs(elevation).pow(1.0 - tileMap.mapParameters.elevationExponent.toDouble()) * elevation.sign
elevation = abs(elevation).pow(1.0 - tileMap.mapParameters.elevationExponent.toDouble()) * elevation.sign
when {
elevation <= 0.5 -> tile.baseTerrain = flat