mirror of
https://github.com/yairm210/Unciv.git
synced 2025-02-02 04:14:15 +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)
|
val button = TextButton("", CameraStageBaseScreen.skin)
|
||||||
|
|
||||||
if (construction == null || !construction.canBePurchased()
|
if (construction == null || !construction.canBePurchased()
|
||||||
|
|| !construction.isBuildable(cityConstructions)
|
||||||
|| !UncivGame.Current.worldScreen.isPlayersTurn
|
|| !UncivGame.Current.worldScreen.isPlayersTurn
|
||||||
|| city.isPuppet || city.isInResistance()) {
|
|| city.isPuppet || city.isInResistance()) {
|
||||||
button.setText("Buy".tr())
|
button.setText("Buy".tr())
|
||||||
|
Loading…
Reference in New Issue
Block a user