mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-20 09:17:47 +07:00
National wonders are now removed from captured cities (hence "National")
This commit is contained in:
parent
92495f63ee
commit
8116a72fdf
@ -127,6 +127,11 @@ class Battle(val gameInfo:GameInfo=UnCivGame.Current.gameInfo) {
|
||||
enemyCiv.cities.first().cityConstructions.builtBuildings.add("Palace") // relocate palace
|
||||
}
|
||||
}
|
||||
|
||||
// Remove all national wonders when conquering a city
|
||||
for(building in city.cityConstructions.getBuiltBuildings().filter { it.requiredBuildingInAllCities!=null })
|
||||
city.cityConstructions.builtBuildings.remove(building.name)
|
||||
|
||||
(attacker as MapUnitCombatant).unit.moveToTile(city.getCenterTile())
|
||||
city.civInfo.gameInfo.updateTilesToCities()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user