mirror of
https://github.com/yairm210/Unciv.git
synced 2025-02-03 04:45:34 +07:00
Fixed crash caused by #4142
This commit is contained in:
parent
243647dea6
commit
6e7e05248d
@ -291,8 +291,12 @@ open class TileInfo {
|
|||||||
&& observingCiv.tech.isResearched(it.params[2])
|
&& observingCiv.tech.isResearched(it.params[2])
|
||||||
}
|
}
|
||||||
for (unique in cityWideUniques + improvementUniques) {
|
for (unique in cityWideUniques + improvementUniques) {
|
||||||
if (matchesUniqueFilter(unique.params[1]))
|
if (matchesUniqueFilter(unique.params[1])
|
||||||
stats.add(unique.stats)
|
// Freshwater and non-freshwater cannot be moved to matchesUniqueFilter since that creates an enless feedback.
|
||||||
|
// If you're attempting that, check that it works!
|
||||||
|
|| unique.params[1] == "Fresh water" && isAdjacentToFreshwater
|
||||||
|
|| unique.params[1] == "non-fresh water" && !isAdjacentToFreshwater)
|
||||||
|
stats.add(unique.stats)
|
||||||
}
|
}
|
||||||
|
|
||||||
for (unique in city.civInfo.getMatchingUniques("[] from every []")) {
|
for (unique in city.civInfo.getMatchingUniques("[] from every []")) {
|
||||||
@ -399,8 +403,6 @@ open class TileInfo {
|
|||||||
"Land" -> isLand
|
"Land" -> isLand
|
||||||
"Coastal" -> isCoastalTile()
|
"Coastal" -> isCoastalTile()
|
||||||
"River" -> isAdjacentToRiver()
|
"River" -> isAdjacentToRiver()
|
||||||
"Fresh water" -> isAdjacentToFreshwater
|
|
||||||
"non-fresh water" -> !isAdjacentToFreshwater
|
|
||||||
improvement -> true
|
improvement -> true
|
||||||
naturalWonder -> true
|
naturalWonder -> true
|
||||||
"Foreign Land" -> civInfo != null && !isFriendlyTerritory(civInfo)
|
"Foreign Land" -> civInfo != null && !isFriendlyTerritory(civInfo)
|
||||||
|
Loading…
Reference in New Issue
Block a user