mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-22 05:41:11 +07:00
Merge branch 'temp'
This commit is contained in:
@ -3,8 +3,8 @@ package com.unciv.build
|
||||
object BuildConfig {
|
||||
const val kotlinVersion = "1.3.71"
|
||||
const val appName = "Unciv"
|
||||
const val appCodeNumber = 505
|
||||
const val appVersion = "3.11.17"
|
||||
const val appCodeNumber = 506
|
||||
const val appVersion = "3.11.17-patch1"
|
||||
|
||||
const val gdxVersion = "1.9.12"
|
||||
const val roboVMVersion = "2.3.1"
|
||||
|
@ -533,12 +533,10 @@ class CityInfo {
|
||||
turnAcquired = civInfo.gameInfo.turns
|
||||
|
||||
// now that the tiles have changed, we need to reassign population
|
||||
workedTiles.filterNot { tiles.contains(it) }
|
||||
.forEach { workedTiles = workedTiles.withoutItem(it); population.autoAssignPopulation() }
|
||||
|
||||
// Remove all national wonders
|
||||
for(building in cityConstructions.getBuiltBuildings().filter { it.isNationalWonder })
|
||||
cityConstructions.removeBuilding(building.name)
|
||||
for (it in workedTiles.filterNot { tiles.contains(it) }) {
|
||||
workedTiles = workedTiles.withoutItem(it)
|
||||
population.autoAssignPopulation()
|
||||
}
|
||||
|
||||
// Remove/relocate palace for old Civ
|
||||
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
|
||||
if (newCivInfo.cities.count() == 1) {
|
||||
cityConstructions.addBuilding(capitalCityIndicator)
|
||||
|
Reference in New Issue
Block a user