More short notation, similar to next line

This commit is contained in:
JackRainy 2020-02-15 14:23:56 +02:00
parent 55ce9622e7
commit f97cc59fac
No known key found for this signature in database
GPG Key ID: 855B30F50E6256E7

View File

@ -247,7 +247,7 @@ open class TileInfo {
return when {
isCityCenter() -> 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.terrainsCanBeBuiltOn.contains(topTerrain.name) -> true
improvement.name == "Road" && roadStatus == RoadStatus.None -> true