From 8116a72fdfaa7f90fad2349e029c5ae0bc65eff6 Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Sun, 17 Jun 2018 23:22:09 +0300 Subject: [PATCH] National wonders are now removed from captured cities (hence "National") --- core/src/com/unciv/logic/battle/Battle.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/src/com/unciv/logic/battle/Battle.kt b/core/src/com/unciv/logic/battle/Battle.kt index db57b521..ef4b5d4b 100644 --- a/core/src/com/unciv/logic/battle/Battle.kt +++ b/core/src/com/unciv/logic/battle/Battle.kt @@ -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() }