mirror of
https://github.com/yairm210/Unciv.git
synced 2024-12-22 17:24:24 +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()
|
||||
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)
|
||||
preferredBuyStat = stat // Not very intelligent, but the least common currency "wins"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user