mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-26 21:35:14 -04:00
Buildings requiring a nearby resource can be constructed even when the tile belongs to another city
This commit is contained in:
parent
35ff2a38f5
commit
713ee08bf9
@ -136,7 +136,7 @@ class CityInfo {
|
||||
|
||||
fun getCenterTile(): TileInfo = centerTileInfo
|
||||
fun getTiles(): Sequence<TileInfo> = tiles.asSequence().map { tileMap[it] }
|
||||
fun getWorkableTiles() = getTiles().filter { it in tilesInRange }
|
||||
fun getWorkableTiles() = tilesInRange.asSequence().filter { it.getOwner() == civInfo }
|
||||
|
||||
fun isCapital() = cityConstructions.isBuilt("Palace")
|
||||
fun isConnectedToCapital(connectionTypePredicate: (Set<String>) -> Boolean = {true}): Boolean {
|
||||
|
Loading…
x
Reference in New Issue
Block a user