mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-03 13:30:51 +07:00
Resolved #12649 - buy button active for puppets when civ can purchase items in puppets
This commit is contained in:
parent
ded0037194
commit
4bac39c910
@ -76,7 +76,8 @@ class BuyButtonFactory(val cityScreen: CityScreen) {
|
|||||||
button.disable()
|
button.disable()
|
||||||
buyButtonOnClick(construction, stat)
|
buyButtonOnClick(construction, stat)
|
||||||
}
|
}
|
||||||
button.isEnabled = cityScreen.canCityBeChanged() &&
|
// allow puppets, since isConstructionPurchaseAllowed handles that and exceptions to that rule
|
||||||
|
button.isEnabled = cityScreen.canChangeState &&
|
||||||
city.cityConstructions.isConstructionPurchaseAllowed(construction, stat, constructionBuyCost)
|
city.cityConstructions.isConstructionPurchaseAllowed(construction, stat, constructionBuyCost)
|
||||||
preferredBuyStat = stat // Not very intelligent, but the least common currency "wins"
|
preferredBuyStat = stat // Not very intelligent, but the least common currency "wins"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user