Fix: player being able to buy tiles outside the 3-tile radius (#1643)
This commit is contained in:
parent
bc83be1441
commit
fe837d78ee
1 changed files with 2 additions and 1 deletions
|
@ -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 a new issue