mirror of
https://github.com/yairm210/Unciv.git
synced 2025-10-02 08:22:08 -04:00
I'm pretty sure annexed cities in resistance shouldn't be allowed to buy tiles (#9213)
This commit is contained in:
parent
dbc9b0d0bd
commit
92ad0495f2
@ -57,8 +57,9 @@ class CityExpansionManager : IsPartOfGameInfoSerialization {
|
|||||||
|
|
||||||
fun canBuyTile(tile: Tile): Boolean {
|
fun canBuyTile(tile: Tile): Boolean {
|
||||||
return when {
|
return when {
|
||||||
city.isPuppet -> false
|
city.isPuppet || city.isBeingRazed -> false
|
||||||
tile.getOwner() != null -> false
|
tile.getOwner() != null -> false
|
||||||
|
city.isInResistance() -> false
|
||||||
tile !in city.tilesInRange -> false
|
tile !in city.tilesInRange -> false
|
||||||
else -> tile.neighbors.any { it.getCity() == city }
|
else -> tile.neighbors.any { it.getCity() == city }
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user