mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-21 05:09:25 +07:00
Fix: player being able to buy tiles outside the 3-tile radius (#1643)
This commit is contained in:
@ -46,7 +46,8 @@ class CityScreenTileTable(val city: CityInfo): Table(){
|
|||||||
}
|
}
|
||||||
innerTable.add(statsTable).row()
|
innerTable.add(statsTable).row()
|
||||||
|
|
||||||
if(selectedTile.getOwner()==null && selectedTile.neighbors.any {it.getCity()==city}){
|
if(selectedTile.getOwner()==null && selectedTile.neighbors.any {it.getCity()==city}
|
||||||
|
&& selectedTile in city.tilesInRange){
|
||||||
val goldCostOfTile = city.expansion.getGoldCostOfTile(selectedTile)
|
val goldCostOfTile = city.expansion.getGoldCostOfTile(selectedTile)
|
||||||
|
|
||||||
val buyTileButton = TextButton("Buy for [$goldCostOfTile] gold".tr(), CameraStageBaseScreen.skin)
|
val buyTileButton = TextButton("Buy for [$goldCostOfTile] gold".tr(), CameraStageBaseScreen.skin)
|
||||||
|
Reference in New Issue
Block a user