mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-27 13:55:54 -04: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! */
|
/** ONLY to be called if the improvement was ACTUALLY built, not for simulating builds! */
|
||||||
fun handleImprovementCompletion(builder: MapUnit) {
|
fun handleImprovementCompletion(builder: MapUnit) {
|
||||||
val tile = builder.getTile()
|
val tile = builder.getTile()
|
||||||
|
|
||||||
if (hasUnique(UniqueType.TakesOverAdjacentTiles))
|
if (hasUnique(UniqueType.TakesOverAdjacentTiles))
|
||||||
UnitActions.takeOverTilesAround(builder.civ, builder.currentTile)
|
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()
|
tile.owningCity?.reassignPopulationDeferred()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user