mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-15 10:18:26 +07:00
Fixed : great people could not build improvement. (#3553)
* Fixed : great people could not build improvement.
* Better check for buildable.
* Revert "Better check for buildable."
This reverts commit b9fa0efbae
.
* Better check for buildable.
This commit is contained in:
@ -316,6 +316,7 @@ open class TileInfo {
|
||||
isCityCenter() -> false
|
||||
"Cannot be built on bonus resource" in improvement.uniques && resource != null
|
||||
&& getTileResource().resourceType == ResourceType.Bonus -> false
|
||||
improvement.uniques.contains("Great Improvement") && isLand -> true
|
||||
improvement.terrainsCanBeBuiltOn.contains(topTerrain.name) -> true
|
||||
improvement.uniqueObjects.filter { it.placeholderText == "Must be next to []" }.any {
|
||||
val filter = it.params[0]
|
||||
|
@ -48,6 +48,7 @@ class ImprovementPickerScreen(val tileInfo: TileInfo, val onAccept: ()->Unit) :
|
||||
regularImprovements.defaults().pad(5f)
|
||||
|
||||
for (improvement in tileInfo.tileMap.gameInfo.ruleSet.tileImprovements.values) {
|
||||
if (improvement.hasUnique("Unbuildable")) continue
|
||||
if (!tileInfo.canBuildImprovement(improvement, currentPlayerCiv)) continue
|
||||
if (improvement.name == tileInfo.improvement) continue
|
||||
|
||||
|
Reference in New Issue
Block a user