Removed double lines between handleImprovementCompletion and changeImprovement

This commit is contained in:
Yair Morgenstern 2023-08-08 20:25:12 +03:00
parent 417b6ff798
commit 08c8bcf383

View File

@ -76,20 +76,9 @@ class TileImprovement : RulesetStatsObject() {
/** ONLY to be called if the improvement was ACTUALLY built, not for simulating builds! */
fun handleImprovementCompletion(builder: MapUnit) {
val tile = builder.getTile()
if (hasUnique(UniqueType.TakesOverAdjacentTiles))
UnitActions.takeOverTilesAround(builder.civ, builder.currentTile)
if (tile.resource != null) {
val city = builder.getTile().getCity()
if (city != null) {
city.updateCitizens = true
city.cityStats.update()
city.civ.cache.updateCivResources()
}
}
tile.owningCity?.reassignPopulationDeferred()
}