Fixed Manhattan Project being inversely affected by nuclear weapons disabling

This commit is contained in:
Yair Morgenstern
2020-05-18 23:42:40 +03:00
parent 4b6bab523f
commit 45f85d9c38

View File

@ -74,8 +74,8 @@ class Technology {
val replacedBuildings = enabledBuildings.mapNotNull { it.replaces }
enabledBuildings = enabledBuildings.filter { it.name !in replacedBuildings }
if (civInfo.gameInfo.gameParameters.nuclearWeaponsEnabled)
enabledBuildings=enabledBuildings.filterNot { it.name=="Manhattan Project" }
if (!civInfo.gameInfo.gameParameters.nuclearWeaponsEnabled)
enabledBuildings = enabledBuildings.filterNot { it.name == "Manhattan Project" }
return enabledBuildings
}