mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-27 05:46:43 -04:00
Resolved #3472 - can purchase 'free' tiles in cities even with negative gold
This commit is contained in:
parent
6d4324354f
commit
7ff5fe4650
@ -46,7 +46,8 @@ class CityScreenTileTable(private val cityScreen: CityScreen): Table() {
|
|||||||
"Would you like to purchase [Tile] for [$goldCostOfTile] gold?".tr()
|
"Would you like to purchase [Tile] for [$goldCostOfTile] gold?".tr()
|
||||||
YesNoPopup(purchasePrompt, { city.expansion.buyTile(selectedTile);UncivGame.Current.setScreen(CityScreen(city)) }, cityScreen).open()
|
YesNoPopup(purchasePrompt, { city.expansion.buyTile(selectedTile);UncivGame.Current.setScreen(CityScreen(city)) }, cityScreen).open()
|
||||||
}
|
}
|
||||||
if (goldCostOfTile > city.civInfo.gold && !city.civInfo.gameInfo.gameParameters.godMode
|
val canPurchase = goldCostOfTile == 0 || city.civInfo.gold >= goldCostOfTile
|
||||||
|
if (!canPurchase && !city.civInfo.gameInfo.gameParameters.godMode
|
||||||
|| city.isPuppet
|
|| city.isPuppet
|
||||||
|| !cityScreen.canChangeState)
|
|| !cityScreen.canChangeState)
|
||||||
buyTileButton.disable()
|
buyTileButton.disable()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user