mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-05 21:11:35 +07:00
Removed double lines between handleImprovementCompletion and changeImprovement
This commit is contained in:
parent
417b6ff798
commit
08c8bcf383
@ -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()
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user