-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add optional orbit contract to Crewed Lunar (#2280)
- Loading branch information
Showing
11 changed files
with
251 additions
and
283 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
184 changes: 184 additions & 0 deletions
184
GameData/RP-1/Contracts/Lunar Crewed/CrewedLunarOrbitRepeat.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,184 @@ | ||
CONTRACT_TYPE | ||
{ | ||
name = CrewedLunarOrbitRepeat | ||
title = Crewed Lunar Orbit | ||
group = CrewedLunar | ||
|
||
tag = CrewedLunarOrbitOptional | ||
|
||
description = <b>Program: Crewed Lunar Exploration<br>Type: <color=blue>Optional</color></b><br><br>Launch a crewed spacecraft into lunar orbit for a routine mission of the specified duration and return safely to Earth.&br;&br;<b>Number of Contracts Completed: @index / 2</b> | ||
|
||
synopsis = Fly a Crewed Lunar Orbital mission | ||
|
||
completedMessage = Crew alive and well after the mission--congratulations! | ||
|
||
sortKey = 709 | ||
|
||
cancellable = true | ||
declinable = true | ||
autoAccept = false | ||
minExpiry = 0 | ||
maxExpiry = 0 | ||
maxCompletions = 2 | ||
maxSimultaneous = 1 | ||
deadline = 0 | ||
|
||
targetBody = Moon | ||
|
||
|
||
// ************ REWARDS ************ | ||
prestige = Trivial // 1.0x | ||
advanceFunds = 0 | ||
rewardScience = 0 | ||
rewardFunds = 0 | ||
failureFunds = 0 | ||
rewardReputation = 500 | ||
failureReputation = 0 | ||
|
||
// ************ REQUIREMENTS ************ | ||
|
||
REQUIREMENT | ||
{ | ||
name = ProgramActive | ||
type = ProgramActive | ||
program = CrewedLunar | ||
} | ||
|
||
REQUIREMENT | ||
{ | ||
name = CompleteContract | ||
type = CompleteContract | ||
contractType = FirstCrewedLunarOrbit | ||
title = Complete 'First Crewed Lunar Orbit' contract | ||
} | ||
|
||
REQUIREMENT | ||
{ | ||
name = AcceptContract | ||
type = AcceptContract | ||
tag = CrewedLunarOrbitOptional | ||
invertRequirement = true | ||
title = Don't have another active optional Crewed Lunar Exploration contract. | ||
} | ||
REQUIREMENT | ||
{ | ||
name = AcceptContract | ||
type = AcceptContract | ||
tag = CrewedLunarOrbitRequired | ||
invertRequirement = true | ||
title = Don't have active required Crewed Lunar Exploration contract. | ||
} | ||
|
||
// ************ DATA BLOCKS ************ | ||
|
||
DATA | ||
{ | ||
type = List<Duration> | ||
durations = [ 36h, 72h ] | ||
} | ||
|
||
DATA | ||
{ | ||
type = Duration | ||
Duration = @durations.ElementAt(@index) | ||
title = Duration of Mission | ||
} | ||
|
||
DATA | ||
{ | ||
type = int | ||
startPeA = 30000 | ||
title = First Periselene | ||
} | ||
|
||
DATA | ||
{ | ||
type = int | ||
startApA = 75000 + Round(Random(0, 225000), 25000) | ||
title = First Aposelene | ||
} | ||
|
||
DATA | ||
{ | ||
type = int | ||
index = $HSFOrbitalMoonGenRepeatable_Count + 0 | ||
} | ||
|
||
BEHAVIOUR | ||
{ | ||
name = IncrementTheCount | ||
type = Expression | ||
|
||
CONTRACT_COMPLETED_SUCCESS | ||
{ | ||
HSFOrbitalMoonGenRepeatable_Count = $HSFOrbitalMoonGenRepeatable_Count + 1 | ||
} | ||
} | ||
|
||
// ************ PARAMETERS ************ | ||
|
||
PARAMETER | ||
{ | ||
name = VesselGroup | ||
type = VesselParameterGroup | ||
title = Crewed Orbit of @targetBody | ||
|
||
PARAMETER | ||
{ | ||
name = NewVessel | ||
type = NewVessel | ||
title = Launch a New Vessel | ||
hideChildren = true | ||
} | ||
|
||
PARAMETER | ||
{ | ||
name = HasCrew | ||
type = HasCrew | ||
minCrew = 1 | ||
crewOnly = true | ||
title = Have at least 1 crewmember on board | ||
hideChildren = true | ||
} | ||
|
||
PARAMETER | ||
{ | ||
name = OrbitWrapper | ||
title = Stay in specified orbit for the duration | ||
type = All | ||
disableOnStateChange = true | ||
completeInSequence = true | ||
|
||
PARAMETER | ||
{ | ||
name = MoonOrbit | ||
type = Orbit | ||
situation = ORBITING | ||
minPeA = @/startPeA | ||
maxApA = @/startApA | ||
targetBody = Moon | ||
title = Reach Orbit of the Moon within the provided parameters | ||
} | ||
|
||
PARAMETER | ||
{ | ||
name = Duration | ||
type = Duration | ||
duration = @/Duration | ||
preWaitText = Reach specified orbit | ||
waitingText = Orbiting... | ||
completionText = Orbits are complete, you may return to Earth when ready | ||
} | ||
} | ||
|
||
PARAMETER | ||
{ | ||
name = ReturnHome | ||
type = RP1ReturnHome | ||
title = Return Home Safely | ||
hideChildren = true | ||
completeInSequence = true | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.