/
Sickbay.cfg
115 lines (103 loc) · 3.06 KB
/
Sickbay.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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
// Note on adding RDU/TV to parts :
// To add the RDU or TV to a part, first add the following key to the part :
// %AddConfigurableSickbay = true
// Then for RDU or TV (can have both) :
// %AddSickbayRDU = true
// %AddSickbayTV = true
// Make sure that the patch is earlier than "AFTER[zzzKerbalismDefault]"
// ============================================================================
// Add RDU to Hitchhiker
// ============================================================================
@PART[crewCabin]:NEEDS[FeatureRadiation]:FOR[KerbalismDefault]
{
%AddConfigurableSickbay = true
%AddSickbayRDU = true
}
// ============================================================================
// Add TV to crewed parts
// ============================================================================
@PART[*]:HAS[#CrewCapacity[>3],!MODULE[ModuleCommand],!MODULE[Laboratory],!MODULE[StationScienceModule],!MODULE[LaunchClamp]]:NEEDS[FeatureComfort]:FOR[zzzKerbalismDefault]
{
%AddConfigurableSickbay = true
%AddSickbayTV = true
}
// ============================================================================
// Sickbay automatic patching system
// ============================================================================
@PART[*]:HAS[#AddConfigurableSickbay]:AFTER[zzzKerbalismDefault]
{
MODULE
{
name = Configure
title = Sickbay Modules
slots = 1
SETUP
{
name = None
desc = Empty slot for mass and cost savings.
}
}
}
@PART[*]:HAS[#AddConfigurableSickbay,#AddSickbayRDU]:NEEDS[FeatureRadiation]:AFTER[zzzKerbalismDefault]
{
@MODULE[Configure]:HAS[#title[Sickbay?Modules]]
{
SETUP
{
name = Radiation Detoxication Unit
tech = advScienceTech
cost = 275300
mass = 0.5
desc = The Radiation Detoxication Unit (RDU) uses <b>EC</b> and <b>Oxygen</b> to reduce the effects of radiation poisoning.
MODULE
{
type = Sickbay
id_field = resource
id_value = _SickbayRDU
}
}
}
MODULE
{
name = Sickbay
resource = _SickbayRDU
title = RDU
desc = The Radiation Detoxication Unit (RDU) uses EC and Oxygen to reduce the effects of radiation poisoning.
slots = 1
}
}
@PART[*]:HAS[#AddConfigurableSickbay,#AddSickbayTV]:NEEDS[FeatureComfort]:AFTER[zzzKerbalismDefault]
{
@MODULE[Configure]:HAS[#title[Sickbay?Modules]]
{
SETUP
{
name = Tranquilizing Vortex (TV)
tech = advExploration
cost = 33500
mass = 0.05
desc = A tranquilizing vortex (TV) uses low quality distraction to put the crew into a state of apathy. It also relieves some of the stress, effects on dumbness are said to be hearsay.
MODULE
{
type = Sickbay
id_field = resource
id_value = _SickbayTV
}
}
}
MODULE
{
name = Sickbay
resource = _SickbayTV
title = TV
desc = A tranquilizing vortex (TV) uses low quality distraction to put the crew into a state of apathy. It also relieves some of the stress, effects on dumbness are said to be hearsay.
slots = 1
cureEverybody = True
}
}
@PART[*]:HAS[#AddConfigurableSickbay]:AFTER[zzzKerbalismDefault]
{
!AddConfigurableSickbay = delete
!AddSickbayRDU = delete
!AddSickbayTV = delete
}