// USI Life Support habitat and recycler functions

//PPD-24 Itinerant Service Container
@PART[utilityCabin]:NEEDS[USILifeSupport]
{
	MODULE
	{
		name = ModuleLifeSupport
	}
	
	RESOURCE
	{
		name = ReplacementParts
		amount = 1025 //100 * crew capacity + 100 * Kerbal-Months
		maxAmount = 1025
	}
	
	MODULE
	{
		name = ModuleHabitation
		KerbalMonths = 8.25 //mass * 5
	}
}

//Mk3-9 Orbital Command Pod
@PART[mk3-9pod]:NEEDS[USILifeSupport]
{
	MODULE
	{
		name = ModuleLifeSupport
	}
	
	RESOURCE
	{
		name = ReplacementParts
		amount = 200 //100 * crew capacity + 100 * Kerbal-Months
		maxAmount = 200
	}
	
	MODULE
	{
		name = ModuleLifeSupportRecycler
		CrewCapacity = 3
		RecyclePercent = .7 //mass / crew capacity; maximum .75
		ConverterName = Life Support
		tag = Life Support
		StartActionName = Start Life Support
		StopActionName = Stop Life Support

		INPUT_RESOURCE
		{
			ResourceName = ElectricCharge
			Ratio = .6
		}
		INPUT_RESOURCE
		{
			ResourceName = ReplacementParts
			Ratio = 0.000006
		}	
	}
}

