Skip to content

Commit

Permalink
Added ComSat (Early) Contracts
Browse files Browse the repository at this point in the history
The jump from the Communications Test Satellite to the Repeatable Communcations Satellite contract was pretty large.
* This is an intermediate level contract that will be more difficult (and rewarding) than the Test Satellites, but not at the level of the later ones.
* The later Communications Satellite now requires three of these contracts to be completed
pap1723 committed Dec 15, 2018
1 parent e3e988b commit 57f0a02
Showing 3 changed files with 124 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -61,7 +61,7 @@ CONTRACT_TYPE
{
name = CompleteContract
type = CompleteContract
contractType = ComTestSat
contractType = EarlyComSat
minCount = 3
title = Complete @contractType Contract at least 3 times
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
CONTRACT_TYPE
{
name = EarlyComSat
title = Communications Satellite (Early)
group = EarlySatellites


description = Now that we have tested out the Communications Satellite Technology, there are many uses we have for these Satellites. Launch a new communications Satellite into the specified orbit.\n\n<b><color=white>NOTE: You can not select this contract and the Communications Satellite (Advanced) contract. If you select the other contract while this is active, this will automatically fail.</color></b>

synopsis = Launch a Communications Satellite

completedMessage = Success! The communications satellite was launched into the proper orbit. The intial shakeout tests have gone well.

sortKey = 499

cancellable = true
declinable = true
autoAccept = false
minExpiry = 0
maxExpiry = 0
maxCompletions = 0
maxSimultaneous = 1
deadline = 180 // 6 Months

targetBody = HomeWorld()


// ************ REWARDS ************
prestige = Trivial // 1.0x
advanceFunds = 5000 + @EarlyComSat/HasComSatPayload/minQuantity
rewardScience = 0
rewardReputation = 5
rewardFunds = 10000.0 + (((@EarlyComSat/Orbit/minPeA)+(@EarlyComSat/Orbit/minApA))/2)*0.005 + @EarlyComSat/HasComSatPayload/minQuantity
failureReputation = 2
failureFunds = 5000 + @EarlyComSat/HasComSatPayload/minQuantity

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

REQUIREMENT
{
name = CompleteContract
type = CompleteContract
contractType = ComTestSat
minCount = 3
title = Complete @contractType Contract at least 3 times
}
REQUIREMENT
{
name = CompleteContract
type = CompleteContract
contractType = RepeatComSats
title = Have not Completed a @contractType Contract
invertRequirement = true
}

// ************ PARAMETERS ************

PARAMETER
{
name = EarlyComSat
type = VesselParameterGroup
title = Communications Satellite (Early)

PARAMETER
{
name = NewVessel
type = NewVessel
title = Launch a New Vessel
hideChildren = true
}
PARAMETER
{
name = Crewmembers
type = HasCrew
minCrew = 0
maxCrew = 0
title = Uncrewed
hideChildren = true
}
PARAMETER
{
name = HasSolarPower
title = Can Generate Solar Power
type = PartValidation
hideChildren = true
partModule = ModuleDeployableSolarPanel
minCount = 1
}
PARAMETER
{
name = HasComSatPayload
type = HasResource
resource = ComSatPayload
minQuantity = Round(Random(300,1000),1)
title = Have a ComSatPayload of at least @minQuantity units on the craft
}
PARAMETER
{
name = Orbit
type = Orbit
minInclination = Round(Random(30, 50))
minPeA = Round(Random(700000, 1000000))
minApA = Round(Random(3000000, 10000000))
maxApA = Round(Random(10000000, 30000000))
disableOnStateChange = true
title = Achieve Orbit within the parameters

PARAMETER
{
name = Duration
type = Duration

duration = 2m

preWaitText = Check for Stable Orbit
waitingText = Checking for Stable Orbit
completionText = Stable Orbit: Confirmed
}
}
}
}
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ CONTRACT_TYPE
group = EarlySatellites


description = We want to continue improving our knowledge of how communications work in space. Launch a new communications test satellite into the proper orbit. Be sure to include solar panels to generate power.\n\n<b><color=white>NOTE: You can not select this contract and the Communications Satellite contract. If you select the other contract while this is active, this will automatically fail.</color></b>
description = We want to continue improving our knowledge of how communications work in space. Launch a new communications test satellite into the proper orbit. Be sure to include solar panels to generate power.\n\n<b><color=white>NOTE: You can not select this contract and the Communications Satellite (Early) contract. If you select the other contract while this is active, this will automatically fail.</color></b>

synopsis = Launch a Communications Satellite

@@ -47,7 +47,7 @@ CONTRACT_TYPE
{
name = CompleteContract
type = CompleteContract
contractType = RepeatComSats
contractType = EarlyComSat
title = Have not Completed a @contractType Contract
invertRequirement = true
}

0 comments on commit 57f0a02

Please sign in to comment.