mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-04 07:17:50 +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:
@ -1019,7 +1019,7 @@ class CivilizationInfo {
|
|||||||
city != null -> city.cityConstructions.cityInfo.religion.getMajorityReligionName()
|
city != null -> city.cityConstructions.cityInfo.religion.getMajorityReligionName()
|
||||||
else -> religionManager.religion?.name
|
else -> religionManager.religion?.name
|
||||||
}
|
}
|
||||||
placedUnit.setupAbilityUses()
|
placedUnit.setupAbilityUses(cityToAddTo)
|
||||||
}
|
}
|
||||||
|
|
||||||
for (unique in getMatchingUniques("Land units may cross [] tiles after the first [] is earned")) {
|
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)
|
tileMap.setTransients(ruleset)
|
||||||
for (tile in tileMap.values.asSequence().filter { !it.isWater }) {
|
for (tile in tileMap.values.asSequence().filter { !it.isWater }) {
|
||||||
var elevation = randomness.getPerlinNoise(tile, elevationSeed, scale = 2.0)
|
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 {
|
when {
|
||||||
elevation <= 0.5 -> tile.baseTerrain = flat
|
elevation <= 0.5 -> tile.baseTerrain = flat
|
||||||
|
Reference in New Issue
Block a user