When purchasing a building, the buildings list (on the left) is immediately updated to reflect that

This commit is contained in:
Yair Morgenstern 2019-04-24 21:03:33 +03:00
parent c3a00a0f5e
commit 143d4422e8

View file

@ -146,7 +146,7 @@ class ConstructionsTable(val cityScreen: CityScreen) : Table(CameraStageBaseScre
cityConstructions.purchaseBuilding(construction.name)
if(lastConstruction!="" && cityConstructions.getConstruction(lastConstruction).isBuildable(cityConstructions))
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)
}
if (buildingGoldCost > city.civInfo.gold) {