mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-30 15:30:43 -04:00
Merge branch 'temp'
This commit is contained in:
commit
4a0c69741e
@ -3,8 +3,8 @@ package com.unciv.build
|
|||||||
object BuildConfig {
|
object BuildConfig {
|
||||||
const val kotlinVersion = "1.3.71"
|
const val kotlinVersion = "1.3.71"
|
||||||
const val appName = "Unciv"
|
const val appName = "Unciv"
|
||||||
const val appCodeNumber = 505
|
const val appCodeNumber = 506
|
||||||
const val appVersion = "3.11.17"
|
const val appVersion = "3.11.17-patch1"
|
||||||
|
|
||||||
const val gdxVersion = "1.9.12"
|
const val gdxVersion = "1.9.12"
|
||||||
const val roboVMVersion = "2.3.1"
|
const val roboVMVersion = "2.3.1"
|
||||||
|
@ -533,12 +533,10 @@ class CityInfo {
|
|||||||
turnAcquired = civInfo.gameInfo.turns
|
turnAcquired = civInfo.gameInfo.turns
|
||||||
|
|
||||||
// now that the tiles have changed, we need to reassign population
|
// now that the tiles have changed, we need to reassign population
|
||||||
workedTiles.filterNot { tiles.contains(it) }
|
for (it in workedTiles.filterNot { tiles.contains(it) }) {
|
||||||
.forEach { workedTiles = workedTiles.withoutItem(it); population.autoAssignPopulation() }
|
workedTiles = workedTiles.withoutItem(it)
|
||||||
|
population.autoAssignPopulation()
|
||||||
// Remove all national wonders
|
}
|
||||||
for(building in cityConstructions.getBuiltBuildings().filter { it.isNationalWonder })
|
|
||||||
cityConstructions.removeBuilding(building.name)
|
|
||||||
|
|
||||||
// Remove/relocate palace for old Civ
|
// Remove/relocate palace for old Civ
|
||||||
val capitalCityIndicator = capitalCityIndicator()
|
val capitalCityIndicator = capitalCityIndicator()
|
||||||
@ -549,6 +547,12 @@ class CityInfo {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Remove all national wonders (must come after the palace relocation because that's a national wonder too!)
|
||||||
|
for (building in cityConstructions.getBuiltBuildings().filter { it.isNationalWonder })
|
||||||
|
cityConstructions.removeBuilding(building.name)
|
||||||
|
|
||||||
|
|
||||||
// Locate palace for newCiv if this is the only city they have
|
// Locate palace for newCiv if this is the only city they have
|
||||||
if (newCivInfo.cities.count() == 1) {
|
if (newCivInfo.cities.count() == 1) {
|
||||||
cityConstructions.addBuilding(capitalCityIndicator)
|
cityConstructions.addBuilding(capitalCityIndicator)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user