mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-27 13:55:54 -04: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 b9fa0efbae0398a6965167e0ce72846ed242395e. * Better check for buildable.
This commit is contained in:
parent
dac339fbf9
commit
6889a60605
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user