mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-21 21:30:20 +07:00
Spaceship parts not shown to user until Apollo Program is built
This commit is contained in:
@ -303,6 +303,11 @@ class Building : NamedStats(), IConstruction{
|
|||||||
return "No national wonders for city-states"
|
return "No national wonders for city-states"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ("Spaceship part" in uniques) {
|
||||||
|
if (!civInfo.hasUnique("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 (requiredBuilding != null && !construction.containsBuildingOrEquivalent(requiredBuilding!!))
|
if (requiredBuilding != null && !construction.containsBuildingOrEquivalent(requiredBuilding!!))
|
||||||
return "Requires a [$requiredBuilding] in this city"
|
return "Requires a [$requiredBuilding] in this city"
|
||||||
if (cannotBeBuiltWith != null && construction.isBuilt(cannotBeBuiltWith!!))
|
if (cannotBeBuiltWith != null && construction.isBuilt(cannotBeBuiltWith!!))
|
||||||
@ -322,10 +327,6 @@ class Building : NamedStats(), IConstruction{
|
|||||||
if (!containsResourceWithImprovement) return "Nearby $requiredNearbyImprovedResources required"
|
if (!containsResourceWithImprovement) return "Nearby $requiredNearbyImprovedResources required"
|
||||||
}
|
}
|
||||||
|
|
||||||
if ("Spaceship part" in uniques) {
|
|
||||||
if (!civInfo.hasUnique("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)
|
if (!civInfo.gameInfo.gameParameters.victoryTypes.contains(VictoryType.Scientific)
|
||||||
&& "Enables construction of Spaceship parts" in uniques)
|
&& "Enables construction of Spaceship parts" in uniques)
|
||||||
|
Reference in New Issue
Block a user