mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-08 14:57:58 +07:00
More short notation, similar to next line
This commit is contained in:
@ -247,7 +247,7 @@ open class TileInfo {
|
|||||||
return when {
|
return when {
|
||||||
isCityCenter() -> false
|
isCityCenter() -> false
|
||||||
improvement.name == this.improvement -> false
|
improvement.name == this.improvement -> false
|
||||||
improvement.uniqueTo != null && improvement.uniqueTo != civInfo.civName -> false
|
improvement.uniqueTo?.let { it == civInfo.civName } == false -> false
|
||||||
improvement.techRequired?.let { civInfo.tech.isResearched(it) } == false -> false
|
improvement.techRequired?.let { civInfo.tech.isResearched(it) } == false -> false
|
||||||
improvement.terrainsCanBeBuiltOn.contains(topTerrain.name) -> true
|
improvement.terrainsCanBeBuiltOn.contains(topTerrain.name) -> true
|
||||||
improvement.name == "Road" && roadStatus == RoadStatus.None -> true
|
improvement.name == "Road" && roadStatus == RoadStatus.None -> true
|
||||||
|
Reference in New Issue
Block a user