Fix enabled buildings not displaying in games without nukes (#6454)

This commit is contained in:
SomeTroglodyte 2022-03-29 19:57:25 +02:00 committed by GitHub
parent 5ab44dd945
commit 133e3f72f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -119,7 +119,7 @@ class Technology: RulesetObject() {
.filter {
predicate(it) // expected to be the most selective, thus tested first
&& (it.uniqueTo == civInfo.civName || it.uniqueTo==null && civInfo.getEquivalentBuilding(it) == it)
&& (nuclearWeaponsEnabled || it.hasUnique(UniqueType.EnablesNuclearWeapons))
&& (nuclearWeaponsEnabled || !it.hasUnique(UniqueType.EnablesNuclearWeapons))
&& (religionEnabled || !it.hasUnique(UniqueType.HiddenWithoutReligion))
&& !it.hasUnique(UniqueType.HiddenFromCivilopedia)
}