mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-27 13:55:54 -04:00
Can no longer construct Apollo Program, and therefore spaceship parts, if Scientific Victory is disabled
This commit is contained in:
parent
8846ad8f4a
commit
69cdd0c187
@ -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 ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user