From 69cdd0c187d8b9a2cc0a367da160cfcd1e1120e6 Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Sat, 7 Dec 2019 19:56:10 +0200 Subject: [PATCH] Can no longer construct Apollo Program, and therefore spaceship parts, if Scientific Victory is disabled --- core/src/com/unciv/models/gamebasics/Building.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/src/com/unciv/models/gamebasics/Building.kt b/core/src/com/unciv/models/gamebasics/Building.kt index f7ade4c31c..5a771a658d 100644 --- a/core/src/com/unciv/models/gamebasics/Building.kt +++ b/core/src/com/unciv/models/gamebasics/Building.kt @@ -304,6 +304,11 @@ class Building : NamedStats(), IConstruction{ 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.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 "" }