-
Notifications
You must be signed in to change notification settings - Fork 96
/
Trivial.cfg
89 lines (82 loc) · 2.31 KB
/
Trivial.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
CONTRACT_TYPE
{
name = SCAN_Trivial
title = Conduct @/scanReadString1 SCANsat survey of @/targetBodyValid1.
genericTitle = Conduct @/scanReadString1 SCANsat survey of @/targetBodyValid1.
group = ScanSatOfficial
topic = Science
subject = Kerbal
agent = SCAN: Scientific Committee on Advanced Navigation
notes = Scanning can take place while the vessel is not loaded.
synopsis = Perform a simple scan of @/targetBodyValid1
completedMessage = Excellent work, this simple survey will give our experts much to study.
minExpiry = 1
maxExpiry = 7
deadline = Random(300, 500) * @/targetBodyValid1.Multiplier()
cancellable = true
declinable = true
autoAccept = false
targetBody = @/targetBodyValid1
// Contract rewards
rewardScience = 0
rewardReputation = 1
rewardFunds = Random(40000, 60000.0)
failureReputation = 1
failureFunds = Random(1000, 10000.0)
advanceFunds = Random(2000, 10000.0)
prestige = Trivial
DATA_EXPAND
{
type = CelestialBody
targetBody1 = @ScanSatOfficial:homeBodies
}
DATA_EXPAND
{
type = string
scanString1 = [ "AltimetryLoRes", "Biome", "AltimetryHiRes", "FuzzyResources", "Ore" ]
}
DATA
{
type = string
uniquenessCheck = CONTRACT_ALL
scanReadString1 = @/scanString1 == "AltimetryLoRes" ? "a Low Resolution" : @/scanString1 == "Biome" ? "a Biome" : @/scanString1 == "AltimetryHiRes" ? "a High Resolution" : @/scanString1 == "FuzzyResources" ? "an M700 Resources" : "an Ore"
}
DATA
{
type = CelestialBody
requiredValue = true
title = Target is part of home system.
uniquenessCheck = CONTRACT_ALL
targetBodyValid1 = @/targetBody1
}
PARAMETER
{
name = SCANsatCoverage
type = SCANsatCoverage
targetBody = @/targetBodyValid1
coverage = 75
scanType = @/scanString1
}
REQUIREMENT
{
name = SCANsatCoverage
type = SCANsatCoverage
targetBody = @/targetBodyValid1
minCoverage = 0.0
maxCoverage = 70
scanType = @/scanString1
title = Must have scanned less than 70% of the target body.
}
REQUIREMENT
{
name = Orbit
type = Orbit
targetBody = HomeWorld()
}
REQUIREMENT
{
name = PartUnlocked
type = PartUnlocked
part = @/scanString1 == "AltimetryLoRes" ? SCANsat_Scanner : @/scanString1 == "Biome" ? SCANsat_Scanner24 : @/scanString1 == "AltimetryHiRes" ? SCANsat_Scanner2 : @/scanString1 == "FuzzyResources" ? SurveyScanner : OrbitalScanner
}
}