Can no longer construct Apollo Program, and therefore spaceship parts, if Scientific Victory is disabled

This commit is contained in:
Yair Morgenstern 2019-12-07 19:56:10 +02:00
parent 8846ad8f4a
commit 69cdd0c187

View File

@ -304,6 +304,11 @@ class Building : NamedStats(), IConstruction{
if (!civInfo.containsBuildingUnique("Enables construction of Spaceship parts")) return "Apollo project not built!" if (!civInfo.containsBuildingUnique("Enables construction of Spaceship parts")) return "Apollo project not built!"
if (civInfo.victoryManager.unconstructedSpaceshipParts()[name] == 0) return "Don't need to build any more of these!" if (civInfo.victoryManager.unconstructedSpaceshipParts()[name] == 0) return "Don't need to build any more of these!"
} }
if(!civInfo.gameInfo.gameParameters.victoryTypes.contains(VictoryType.Scientific)
&& "Enables construction of Spaceship parts" in uniques)
return "Can't construct spaceship parts if scientific victory is not enabled!"
return "" return ""
} }