mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-27 13:55:54 -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 {
|
.filter {
|
||||||
predicate(it) // expected to be the most selective, thus tested first
|
predicate(it) // expected to be the most selective, thus tested first
|
||||||
&& (it.uniqueTo == civInfo.civName || it.uniqueTo==null && civInfo.getEquivalentBuilding(it) == it)
|
&& (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))
|
&& (religionEnabled || !it.hasUnique(UniqueType.HiddenWithoutReligion))
|
||||||
&& !it.hasUnique(UniqueType.HiddenFromCivilopedia)
|
&& !it.hasUnique(UniqueType.HiddenFromCivilopedia)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user