mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-27 13:55:54 -04:00
Fix : can acquire tiles that already belong to the city.
This commit is contained in:
parent
eba64d38ee
commit
26a4a37389
@ -240,7 +240,8 @@ class CityScreen(internal val city: CityInfo) : CameraStageBaseScreen() {
|
|||||||
if(goldCostOfTile>city.civInfo.gold) buyTileButton.disable()
|
if(goldCostOfTile>city.civInfo.gold) buyTileButton.disable()
|
||||||
tileTable.add(buyTileButton)
|
tileTable.add(buyTileButton)
|
||||||
}
|
}
|
||||||
if(tile.getOwner()!=null && tile.getOwner()!!.isPlayerCivilization()
|
if(tile.getOwner()!=null && tile.getCity()!=city
|
||||||
|
&& tile.getOwner()!!.isPlayerCivilization()
|
||||||
&& tile.arialDistanceTo(city.getCenterTile()) <= 3
|
&& tile.arialDistanceTo(city.getCenterTile()) <= 3
|
||||||
&& tile.neighbors.any{it.getCity()==city}){
|
&& tile.neighbors.any{it.getCity()==city}){
|
||||||
val acquireTileButton = TextButton("Acquire".tr(),skin)
|
val acquireTileButton = TextButton("Acquire".tr(),skin)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user