mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-28 14:24:43 -04:00
When purchasing a building, the buildings list (on the left) is immediately updated to reflect that
This commit is contained in:
parent
c3a00a0f5e
commit
143d4422e8
@ -146,7 +146,7 @@ class ConstructionsTable(val cityScreen: CityScreen) : Table(CameraStageBaseScre
|
|||||||
cityConstructions.purchaseBuilding(construction.name)
|
cityConstructions.purchaseBuilding(construction.name)
|
||||||
if(lastConstruction!="" && cityConstructions.getConstruction(lastConstruction).isBuildable(cityConstructions))
|
if(lastConstruction!="" && cityConstructions.getConstruction(lastConstruction).isBuildable(cityConstructions))
|
||||||
city.cityConstructions.currentConstruction = lastConstruction
|
city.cityConstructions.currentConstruction = lastConstruction
|
||||||
update()
|
cityScreen.update() // since the list of available buildings needs to be updated too, so we can "see" that the building we bought now exists in the city
|
||||||
}, cityScreen)
|
}, cityScreen)
|
||||||
}
|
}
|
||||||
if (buildingGoldCost > city.civInfo.gold) {
|
if (buildingGoldCost > city.civInfo.gold) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user