Skip to content

Commit

Permalink
Add a required contract for the Crewed Orbit program that involves co…
Browse files Browse the repository at this point in the history
…llecting all Basic Capsule science
  • Loading branch information
NathanKell committed Aug 8, 2023
1 parent e6c6e51 commit 01c7b34
Show file tree
Hide file tree
Showing 6 changed files with 211 additions and 3 deletions.
106 changes: 106 additions & 0 deletions GameData/RP-1/Contracts/Earth Crewed/CrewedScienceBasic.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
CONTRACT_TYPE
{
name = CollectCrewedScienceBasic
title = Collect Basic Crew Science
group = CrewedOrbit

description = <b>Program: Crewed Orbit<br>Type: <color=green>Required</color></b><br><br>Human beings are capable of conducting a unique class of science experiments, one robotic spacecraft simply can't match. We'd like you to fly orbital missions in order to learn about about human beings in space, what they can do and how they percieve things around them. All these experiments were conducted historically during the Mercury and Vostok programs.

synopsis = Collect all basic crew science

completedMessage = This is loads of data! Scientists are extremely happy with the results of your efforts.

sortKey = 603

cancellable = true
declinable = false
autoAccept = false
minExpiry = 0
maxExpiry = 0
maxCompletions = 1
maxSimultaneous = 1
deadline = 0

targetBody = HomeWorld()


// ************ REWARDS ************
prestige = Trivial // 1.0x
advanceFunds = 0
rewardScience = 0
rewardFunds = 0
failureFunds = 0
rewardReputation = 150
failureReputation = 0 // was @rewardReputation

// ************ REQUIREMENTS ************

REQUIREMENT
{
name = ProgramActive
type = ProgramActive
program = CrewedOrbit
}

REQUIREMENT
{
name = CompleteContract
type = CompleteContract
contractType = first_OrbitCrewed
}

REQUIREMENT
{
name = AcceptContract
type = AcceptContract
contractType = OrbitalFlight1
invertRequirement = true
}

// Skip Orb2, it's only in Adv Crewed
REQUIREMENT
{
name = AcceptContract
type = AcceptContract
contractType = OrbitalFlight3
invertRequirement = true
}
PARAMETER
{
name = RP1CollectScience
type = RP1CollectScience
targetBody = HomeWorld()
situation = InSpaceLow
experiment = RP0LiquidsMicrogravity
fractionComplete = 1
}
PARAMETER
{
name = RP1CollectScience
type = RP1CollectScience
targetBody = HomeWorld()
situation = InSpaceLow
experiment = RP0VisualTracking
fractionComplete = 1
}
PARAMETER
{
name = RP1CollectScience
type = RP1CollectScience
targetBody = HomeWorld()
situation = InSpaceLow
experiment = RP0FlightControl
fractionComplete = 1
}
PARAMETER
{
name = RP1CollectScience
type = RP1CollectScience
targetBody = HomeWorld()
situation = InSpaceLow
experiment = RP0EarthPhotography
fractionComplete = 1
}
}
24 changes: 24 additions & 0 deletions GameData/RP-1/Contracts/Earth Crewed/OrbitalFlight1.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,30 @@ CONTRACT_TYPE
contractType = OrbitalFlight3
invertRequirement = true
}

REQUIREMENT
{
name = AcceptContract
type = AcceptContract
contractType = OrbitalFlight2
invertRequirement = true
}

REQUIREMENT
{
name = AcceptContract
type = AcceptContract
contractType = OrbitalFlight3
invertRequirement = true
}

REQUIREMENT
{
name = AcceptContract
type = AcceptContract
contractType = CrewedScienceBasic
invertRequirement = true
}

DATA
{
Expand Down
8 changes: 8 additions & 0 deletions GameData/RP-1/Contracts/Earth Crewed/OrbitalFlight2.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,14 @@ CONTRACT_TYPE
invertRequirement = true
}
REQUIREMENT
{
name = AcceptContract
type = AcceptContract
contractType = CrewedScienceBasic
invertRequirement = true
}
DATA
{
type = Duration
Expand Down
24 changes: 24 additions & 0 deletions GameData/RP-1/Contracts/Earth Crewed/OrbitalFlight3.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,30 @@ CONTRACT_TYPE
type = CompleteContract
contractType = OrbitalFlight1
}

REQUIREMENT
{
name = AcceptContract
type = AcceptContract
contractType = CrewedScienceBasic
invertRequirement = true
}

REQUIREMENT
{
name = AcceptContract
type = AcceptContract
contractType = OrbitalFlight1
invertRequirement = true
}

REQUIREMENT
{
name = AcceptContract
type = AcceptContract
contractType = OrbitalFlight2
invertRequirement = true
}

DATA
{
Expand Down
1 change: 1 addition & 0 deletions GameData/RP-1/Programs/Programs.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,7 @@ RP0_PROGRAM
complete_contract = first_OrbitRecover
complete_contract = OrbitalTestFlight
complete_contract = first_OrbitCrewed
complete_contract = CollectCrewedScienceBasic
complete_contract = first_EVA
complete_contract = Rendezvous
complete_contract = first_Docking
Expand Down
51 changes: 48 additions & 3 deletions Source/GameData.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,18 @@
<Content Include="..\GameData\RP-1\Contracts\TestSubjectRemove.cfg">
<Link>Contracts\TestSubjectRemove.cfg</Link>
</Content>
<Content Include="..\GameData\RP-1\Contracts\Asteroid Exploration\Ceres Landing.cfg">
<Link>Contracts\Asteroid Exploration\Ceres Landing.cfg</Link>
</Content>
<Content Include="..\GameData\RP-1\Contracts\Asteroid Exploration\Ceres Orbit.cfg">
<Link>Contracts\Asteroid Exploration\Ceres Orbit.cfg</Link>
</Content>
<Content Include="..\GameData\RP-1\Contracts\Asteroid Exploration\Ceres Orbit_Rep.cfg">
<Link>Contracts\Asteroid Exploration\Ceres Orbit_Rep.cfg</Link>
</Content>
<Content Include="..\GameData\RP-1\Contracts\Asteroid Exploration\Vesta Landing.cfg">
<Link>Contracts\Asteroid Exploration\Vesta Landing.cfg</Link>
</Content>
<Content Include="..\GameData\RP-1\Contracts\Asteroid Exploration\Vesta Orbit.cfg">
<Link>Contracts\Asteroid Exploration\Vesta Orbit.cfg</Link>
</Content>
Expand Down Expand Up @@ -120,6 +126,9 @@
<Content Include="..\GameData\RP-1\Contracts\Early Satellites (Heavy)\FirstBioSat-Heavy.cfg">
<Link>Contracts\Early Satellites (Heavy)\FirstBioSat-Heavy.cfg</Link>
</Content>
<Content Include="..\GameData\RP-1\Contracts\Early Satellites (Heavy)\FirstPolarSat-Heavy.cfg">
<Link>Contracts\Early Satellites (Heavy)\FirstPolarSat-Heavy.cfg</Link>
</Content>
<Content Include="..\GameData\RP-1\Contracts\Early Satellites (Heavy)\FirstSatellite-Heavy.cfg">
<Link>Contracts\Early Satellites (Heavy)\FirstSatellite-Heavy.cfg</Link>
</Content>
Expand Down Expand Up @@ -150,6 +159,9 @@
<Content Include="..\GameData\RP-1\Contracts\Early Satellites (Light)\FirstSunSyncSat.cfg">
<Link>Contracts\Early Satellites (Light)\FirstSunSyncSat.cfg</Link>
</Content>
<Content Include="..\GameData\RP-1\Contracts\Earth Crewed\CrewedScienceBasic.cfg">
<Link>Contracts\Earth Crewed\CrewedScienceBasic.cfg</Link>
</Content>
<Content Include="..\GameData\RP-1\Contracts\Earth Crewed\Docking.cfg">
<Link>Contracts\Earth Crewed\Docking.cfg</Link>
</Content>
Expand Down Expand Up @@ -237,6 +249,18 @@
<Content Include="..\GameData\RP-1\Contracts\Human Records\CrewedSpeedRecord.cfg">
<Link>Contracts\Human Records\CrewedSpeedRecord.cfg</Link>
</Content>
<Content Include="..\GameData\RP-1\Contracts\Jovian Moon Landings\Callisto Landing.cfg">
<Link>Contracts\Jovian Moon Landings\Callisto Landing.cfg</Link>
</Content>
<Content Include="..\GameData\RP-1\Contracts\Jovian Moon Landings\Europa Landing.cfg">
<Link>Contracts\Jovian Moon Landings\Europa Landing.cfg</Link>
</Content>
<Content Include="..\GameData\RP-1\Contracts\Jovian Moon Landings\Ganymede Landing.cfg">
<Link>Contracts\Jovian Moon Landings\Ganymede Landing.cfg</Link>
</Content>
<Content Include="..\GameData\RP-1\Contracts\Jovian Moon Landings\Io Landing.cfg">
<Link>Contracts\Jovian Moon Landings\Io Landing.cfg</Link>
</Content>
<Content Include="..\GameData\RP-1\Contracts\Jupiter Observation\Callisto Flyby.cfg">
<Link>Contracts\Jupiter Observation\Callisto Flyby.cfg</Link>
</Content>
Expand Down Expand Up @@ -456,6 +480,27 @@
<Content Include="..\GameData\RP-1\Contracts\Saturn Observation\Titan Rover.cfg">
<Link>Contracts\Saturn Observation\Titan Rover.cfg</Link>
</Content>
<Content Include="..\GameData\RP-1\Contracts\Saturnine Moon Landings\Dione Landing.cfg">
<Link>Contracts\Saturnine Moon Landings\Dione Landing.cfg</Link>
</Content>
<Content Include="..\GameData\RP-1\Contracts\Saturnine Moon Landings\Enceladus Landing.cfg">
<Link>Contracts\Saturnine Moon Landings\Enceladus Landing.cfg</Link>
</Content>
<Content Include="..\GameData\RP-1\Contracts\Saturnine Moon Landings\Iapetus Landing.cfg">
<Link>Contracts\Saturnine Moon Landings\Iapetus Landing.cfg</Link>
</Content>
<Content Include="..\GameData\RP-1\Contracts\Saturnine Moon Landings\Mimas Landing.cfg">
<Link>Contracts\Saturnine Moon Landings\Mimas Landing.cfg</Link>
</Content>
<Content Include="..\GameData\RP-1\Contracts\Saturnine Moon Landings\Rhea Landing.cfg">
<Link>Contracts\Saturnine Moon Landings\Rhea Landing.cfg</Link>
</Content>
<Content Include="..\GameData\RP-1\Contracts\Saturnine Moon Landings\Tethys Landing.cfg">
<Link>Contracts\Saturnine Moon Landings\Tethys Landing.cfg</Link>
</Content>
<Content Include="..\GameData\RP-1\Contracts\Saturnine Moon Landings\Titan Landing.cfg">
<Link>Contracts\Saturnine Moon Landings\Titan Landing.cfg</Link>
</Content>
<Content Include="..\GameData\RP-1\Contracts\Small Bodies Flyby\Ceres Flyby.cfg">
<Link>Contracts\Small Bodies Flyby\Ceres Flyby.cfg</Link>
</Content>
Expand Down Expand Up @@ -630,6 +675,9 @@
<Content Include="..\GameData\RP-1\Localization\en-us.cfg">
<Link>Localization\en-us.cfg</Link>
</Content>
<Content Include="..\GameData\RP-1\Localization\LocPatches.cfg">
<Link>Localization\LocPatches.cfg</Link>
</Content>
<Content Include="..\GameData\RP-1\Localization\ru.cfg">
<Link>Localization\ru.cfg</Link>
</Content>
Expand Down Expand Up @@ -882,9 +930,6 @@
<Content Include="..\GameData\RP-1\Strategies\Departments.cfg">
<Link>Strategies\Departments.cfg</Link>
</Content>
<Content Include="..\GameData\RP-1\Strategies\LocPatches.cfg">
<Link>Strategies\LocPatches.cfg</Link>
</Content>
<Content Include="..\GameData\RP-1\Strategies\Milestones.cfg">
<Link>Strategies\Milestones.cfg</Link>
</Content>
Expand Down

0 comments on commit 01c7b34

Please sign in to comment.