mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-05 15:59:50 +07:00
Fixed Manhattan Project being inversely affected by nuclear weapons disabling
This commit is contained in:
@ -74,7 +74,7 @@ class Technology {
|
||||
val replacedBuildings = enabledBuildings.mapNotNull { it.replaces }
|
||||
enabledBuildings = enabledBuildings.filter { it.name !in replacedBuildings }
|
||||
|
||||
if (civInfo.gameInfo.gameParameters.nuclearWeaponsEnabled)
|
||||
if (!civInfo.gameInfo.gameParameters.nuclearWeaponsEnabled)
|
||||
enabledBuildings = enabledBuildings.filterNot { it.name == "Manhattan Project" }
|
||||
|
||||
return enabledBuildings
|
||||
|
Reference in New Issue
Block a user