mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-26 05:14:32 -04:00
Fix enabled buildings not displaying in games without nukes (#6454)
This commit is contained in:
parent
5ab44dd945
commit
133e3f72f9
@ -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)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user