@PART[mmgh-agr-*]:NEEDS[USILifeSupport]:FOR[MoldaviteMachines]
{
	MODULE
	{
		name = USI_SwapController
	}
	MODULE
	{
		name = USI_SwappableBay
		bayName = Bay 1
		moduleIndex = 0
	}
	MODULE
	{
		name = USI_Converter
		UseSpecialistBonus = false
	}
	MODULE
	{
		name = USI_ConverterSwapOption
		ConverterName = Agroponics
		StartActionName = Start Agroponics
		StopActionName = Stop Agroponics

		INPUT_RESOURCE
		{
			ResourceName = Mulch
			Ratio =  0.0012
			@Ratio *= #$/refPower$
		}
		INPUT_RESOURCE
		{
			ResourceName = Fertilizer
			Ratio =  0.00012
			@Ratio *= #$/refPower$
		}
		OUTPUT_RESOURCE
		{
			ResourceName = Supplies
			Ratio = 0.00132
			@Ratio *= #$/refPower$
			DumpExcess = False
		}
		INPUT_RESOURCE
		{
			ResourceName = ElectricCharge
			Ratio = 2.64
			@Ratio *= #$/refPower$
		}
	}
	RESOURCE
	{
		name = Supplies
		amount = 0
		maxAmount = 300
		@maxAmount *= #$/refPower$
	}
	RESOURCE
	{
		name = Fertilizer
		amount = 0
		maxAmount = 300
		@maxAmount *= #$/refPower$
	}
	RESOURCE
	{
		name = Mulch
		amount = 0
		maxAmount = 300
		@maxAmount *= #$/refPower$
	}
}

@PART[mmgh-alg-*]:NEEDS[USILifeSupport]
{
	MODULE
	{
		name = USI_SwapController
	}
	MODULE
	{
		name = USI_SwappableBay
		bayName = Bay 1
		moduleIndex = 2
	}
	MODULE
	{
		name = USI_Converter
		UseSpecialistBonus = false
	}
	MODULE 
	{
		name = USILS_HabitationSwapOption
		ConverterName = Habitat
		StartActionName = Start Habitat
		StopActionName = Stop Habitat		

		BaseKerbalMonths = 0
		CrewCapacity = 1
		BaseHabMultiplier = 1.2 // 1.65; not as good as a cupola but it can be refreshing still to admire and thank the algae that's making your H2 and O2

		INPUT_RESOURCE
		{
			ResourceName = ElectricCharge
			Ratio = 0.0825 // unchanged. Might need to nerf
		}
	}
}
@PART[mmgh-pbr-*]:NEEDS[USILifeSupport]
{
	MODULE
	{
		name = USI_SwapController
	}
	MODULE
	{
		name = USI_SwappableBay
		bayName = Bay 1
		moduleIndex = 4
	}
	MODULE
	{
		name = USI_Converter
		UseSpecialistBonus = false
	}
	MODULE
	{
		name = USILS_LifeSupportRecyclerSwapOption
		ConverterName = Life Support
		StartActionName = Start Life Support
		StopActionName = Stop Life Support

		CrewCapacity = #$/CrewCapacity$
		RecyclePercent = 0.6

		INPUT_RESOURCE
		{
			ResourceName = ElectricCharge
			Ratio = 0.5
		}
	}
	
	MODULE
	{
		name = ModuleResourceConverter
		ConverterName = #LOC_mmgh_fertilizer
		StartActionName = #LOC_mmgh_fertilizerStart
		StopActionName = #LOC_mmgh_fertilizerStop
		ToggleActionName = #LOC_mmgh_fertilizerToggle

		INPUT_RESOURCE
		{
			ResourceName = Ore
			Ratio = 3.75 // 2.5; slight increase. Stock miniISRU has garbage stats on purpose
			@Ratio *= #$/refPower$
		}
		INPUT_RESOURCE
		{
			ResourceName = Photoculture
			Ratio = 0.002 // Photoculture will last 23.14 x 6hr days if allowed to run out
			@Ratio *= #$/refPower$
		}
		OUTPUT_RESOURCE
		{
			ResourceName = Fertilizer
			Ratio = 0.02 // 8x output of miniISRU
			@Ratio *= #$/refPower$
			DumpExcess = False
		}
	}	
}
