mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-24 18:06:04 +07:00
Fix: player being able to buy tiles outside the 3-tile radius (#1643)
This commit is contained in:
parent
bc83be1441
commit
fe837d78ee
@ -46,7 +46,8 @@ class CityScreenTileTable(val city: CityInfo): Table(){
|
||||
}
|
||||
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 buyTileButton = TextButton("Buy for [$goldCostOfTile] gold".tr(), CameraStageBaseScreen.skin)
|
||||
|
Loading…
Reference in New Issue
Block a user