mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-20 17:32:57 +07:00
Update civ resources when selling a building and destroying a unit
This commit is contained in:
parent
e0f72af06d
commit
6d3ef94941
@ -303,6 +303,9 @@ class CityInfo {
|
||||
cityConstructions.removeBuilding(buildingName)
|
||||
civInfo.gold += getGoldForSellingBuilding(buildingName)
|
||||
hasSoldBuildingThisTurn=true
|
||||
|
||||
cityStats.update()
|
||||
civInfo.updateDetailedCivResources() // this building could be a resource-requiring one
|
||||
}
|
||||
|
||||
|
||||
|
@ -316,6 +316,7 @@ class CivilizationInfo {
|
||||
newList.remove(mapUnit)
|
||||
units=newList
|
||||
updateStatsForNextTurn() // unit upkeep
|
||||
updateDetailedCivResources()
|
||||
}
|
||||
|
||||
fun getIdleUnits() = getCivUnits().filter { it.isIdle() }
|
||||
|
Loading…
Reference in New Issue
Block a user