mirror of
https://github.com/yairm210/Unciv.git
synced 2025-03-15 04:14:44 +07:00
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:
parent
5d9c1266d7
commit
cbfbec166b
@ -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")) {
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user