mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-21 05:09:25 +07:00
Do not allow to buy what can not be built (#2007)
This commit is contained in:
@ -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())
|
||||
|
Reference in New Issue
Block a user