mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-23 22:30:18 +07:00
Only connected tiles are acquirable.
This commit is contained in:
@ -241,7 +241,8 @@ class CityScreen(internal val city: CityInfo) : CameraStageBaseScreen() {
|
||||
tileTable.add(buyTileButton)
|
||||
}
|
||||
if(tile.getOwner()!=null && tile.getOwner()!!.isPlayerCivilization()
|
||||
&& tile.arialDistanceTo(city.getCenterTile()) <= 3){
|
||||
&& tile.arialDistanceTo(city.getCenterTile()) <= 3
|
||||
&& tile.neighbors.any{it.getCity()==city}){
|
||||
val transferTileButton = TextButton("Acquire".tr(),skin)
|
||||
transferTileButton.onClick { city.expansion.AcquireOwnership(tile); game.screen = CityScreen(city); dispose() }
|
||||
tileTable.add(transferTileButton)
|
||||
|
Reference in New Issue
Block a user