Skip to content

Commit ccd65b0

Browse files
committed
Make the 1.5m snacks can configurable, to be useful for short junkets from a colonized world
1 parent 5fc02e5 commit ccd65b0

File tree

3 files changed

+113
-5
lines changed

3 files changed

+113
-5
lines changed

src/ProgressiveColonizationSystem/GameData/ProgressiveColonizationSystem/Localization/en-us.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
#LOC_PKS_PortableDigger_Parts_Description = Just the thing to dig up those hard-to-find Tier2+ resources. Note that the stuff this drill gets just augments what is provided by the main scrounger at the base; it doesn't completely replace it.
6666
#LOC_PKS_ScannerHub_Parts_Description = An orbital control hub and data collection site for coordinating resource scanning on a body. It needs to be located on a station orbiting the body you're scanning for. It gets more effective at spotting stuff (that is, it's more likely to find something close to your base) if you have more satelites in orbit equipped with resource scanners. The station needs to have qualified kerbals to run the system as well. This part is also tiered - so you need a Tier-3 scanning hub in order to spot Tier-3 goodies on the ground.
6767
#LOC_PKS_Manufacturer = Nermable Nermables, Pty. Ltd.
68-
#LOC_PKS_SmallSnacksCan_Parts_Description = Here's a nifty inline can to carry a load of snacks, perfect for that trip to Minmus or for bringing the whole gang to the Mun!
68+
#LOC_PKS_SmallSnacksCan_Parts_Description = Here's a nifty inline can to carry a load of snacks, perfect for that trip to Minmus or for bringing the whole gang to the Mun! It can be configured for Tier-4 snacks alone or, if it's used on a colony where you've already started agriculture, it can be configured for an ideal mix of snacks (just enough for 45 kerbal-days of tiered snacks and Tier-4 snacks).
6969
#LOC_PKS_BigSnacksCan_Parts_Description = A can for storing some snacks and fertilizer for those early long-duration flight tests.
7070
#LOC_PKS_Lunchbox_Parts_Description = Sometimes you just need a few snacks for those short junkets.
7171

src/ProgressiveColonizationSystem/GameData/ProgressiveColonizationSystem/PKS-B9TankTypes.cfg

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,4 +231,79 @@ B9_TANK_TYPE:NEEDS[ExtraplanetaryLaunchpads]
231231
name = ComplexParts
232232
unitsPerVolume = 1
233233
}
234+
}
235+
236+
// The unitsPerVolume for these is:
237+
// b = base unitsPerVolume for snacks = .1
238+
// e_tier = effectiveness of the snacks at a given tier; see TIERED_RESOURCE_DEFINITION[Snacks]
239+
// (.6, .85, .95, .98, 1)
240+
// So to carry an even load, we want b*e_tier of the non-tier4 stuff and b*(1-e_tier) of the tier-4 stuff.
241+
B9_TANK_TYPE
242+
{
243+
name = PksSnacksMix0
244+
tankMass = 0.0000
245+
tankCost = 0
246+
247+
// The default unitsPerVolume for snacks is .1
248+
RESOURCE
249+
{
250+
name = Snacks-Tier0
251+
unitsPerVolume = .06 // .6 * .1
252+
}
253+
RESOURCE
254+
{
255+
name = Snacks-Tier4
256+
unitsPerVolume = .04 // (1-.6)*.1
257+
}
258+
}
259+
B9_TANK_TYPE
260+
{
261+
name = PksSnacksMix1
262+
tankMass = 0.0000
263+
tankCost = 0
264+
265+
RESOURCE
266+
{
267+
name = Snacks-Tier1
268+
unitsPerVolume = .085
269+
}
270+
RESOURCE
271+
{
272+
name = Snacks-Tier4
273+
unitsPerVolume = .015
274+
}
275+
}
276+
B9_TANK_TYPE
277+
{
278+
name = PksSnacksMix2
279+
tankMass = 0.0000
280+
tankCost = 0
281+
282+
RESOURCE
283+
{
284+
name = Snacks-Tier2
285+
unitsPerVolume = .095
286+
}
287+
RESOURCE
288+
{
289+
name = Snacks-Tier4
290+
unitsPerVolume = .005
291+
}
292+
}
293+
B9_TANK_TYPE
294+
{
295+
name = PksSnacksMix3
296+
tankMass = 0.0000
297+
tankCost = 0
298+
299+
RESOURCE
300+
{
301+
name = Snacks-Tier3
302+
unitsPerVolume = .098
303+
}
304+
RESOURCE
305+
{
306+
name = Snacks-Tier4
307+
unitsPerVolume = .002
308+
}
234309
}

src/ProgressiveColonizationSystem/GameData/ProgressiveColonizationSystem/Parts/Small_Snacks_Can.cfg

Lines changed: 37 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,43 @@ PART
3232
bulkheadProfiles = size1, srf
3333
tags = cck-pks
3434

35-
RESOURCE
35+
MODULE
3636
{
37-
name = Snacks-Tier4
38-
amount = 45
39-
maxAmount = 45
37+
name = ModuleB9PartSwitch
38+
moduleID = cargoSwitch
39+
switcherDescription = #LOC_SSPX_Switcher_Cargo_Name
40+
baseVolume = 450
41+
switchInFlight = True
42+
affectDragCubes = false
43+
SUBTYPE
44+
{
45+
name = Tier4 Snacks
46+
tankType = PksSnacks4
47+
title = Tier4 Snacks
48+
}
49+
SUBTYPE
50+
{
51+
name = Tier0 & Tier4 Snacks
52+
tankType = PksSnacksMix0
53+
title = Tier0/Tier4 Snacks
54+
}
55+
SUBTYPE
56+
{
57+
name = Tier1 & Tier4 Snacks
58+
tankType = PksSnacksMix1
59+
title = Tier1/Tier4 Snacks
60+
}
61+
SUBTYPE
62+
{
63+
name = Tier2 & Tier4 Snacks
64+
tankType = PksSnacksMix2
65+
title = Tier2/Tier4 Snacks
66+
}
67+
SUBTYPE
68+
{
69+
name = Tier3 & Tier4 Snacks
70+
tankType = PksSnacksMix3
71+
title = Tier3/Tier4 Snacks
72+
}
4073
}
4174
}

0 commit comments

Comments
 (0)