mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-22 02:07:43 +07:00
Do not allow to buy what can not be built (#2007)
This commit is contained in:
parent
3b4bce780a
commit
55a8211be0
@ -277,6 +277,7 @@ class ConstructionsTable(val cityScreen: CityScreen) : Table(CameraStageBaseScre
|
||||
val button = TextButton("", CameraStageBaseScreen.skin)
|
||||
|
||||
if (construction == null || !construction.canBePurchased()
|
||||
|| !construction.isBuildable(cityConstructions)
|
||||
|| !UncivGame.Current.worldScreen.isPlayersTurn
|
||||
|| city.isPuppet || city.isInResistance()) {
|
||||
button.setText("Buy".tr())
|
||||
|
Loading…
Reference in New Issue
Block a user