mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-30 15:30:43 -04:00
Fixed Manhattan Project being inversely affected by nuclear weapons disabling
This commit is contained in:
parent
4b6bab523f
commit
45f85d9c38
@ -74,8 +74,8 @@ class Technology {
|
|||||||
val replacedBuildings = enabledBuildings.mapNotNull { it.replaces }
|
val replacedBuildings = enabledBuildings.mapNotNull { it.replaces }
|
||||||
enabledBuildings = enabledBuildings.filter { it.name !in replacedBuildings }
|
enabledBuildings = enabledBuildings.filter { it.name !in replacedBuildings }
|
||||||
|
|
||||||
if (civInfo.gameInfo.gameParameters.nuclearWeaponsEnabled)
|
if (!civInfo.gameInfo.gameParameters.nuclearWeaponsEnabled)
|
||||||
enabledBuildings=enabledBuildings.filterNot { it.name=="Manhattan Project" }
|
enabledBuildings = enabledBuildings.filterNot { it.name == "Manhattan Project" }
|
||||||
|
|
||||||
return enabledBuildings
|
return enabledBuildings
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user