// Use CarbonDioxide and Water as inputs
// Do not run if TAC LS is found because a copy of this patch exists that already will run if TAC is found, to prevent repeat INPUT_RESOURCE additions

@PART[mmgh-alg-*]:NEEDS[CommunityResourcePack,!TacLifeSupport]:AFTER[MoldaviteMachines]
{
	@MODULE[ModuleResourceConverter]:HAS[#Tag[MMGH-AL]]
	{
		@INPUT_RESOURCE,0
		{
			@ResourceName = Water
			@Ratio = 0.7208
			@Ratio *= #$/refPower$
		}
	}
	@MODULE[ModuleResourceConverter]:HAS[#Tag[MMGH-ALWS]]
	{
		@INPUT_RESOURCE,0
		{
			@ResourceName = Water
			@Ratio = 0.7208
			@Ratio *= #$/refPower$
		}
	}
}

@PART[mmgh-pbr-*]:NEEDS[CommunityResourcePack,!TacLifeSupport]:AFTER[MoldaviteMachines]
{
	@MODULE[ModuleResourceConverter]:HAS[#Tag[MMGH-PCLF]]
	{
		@INPUT_RESOURCE,1
		{
			@ResourceName = CarbonDioxide
			@Ratio = 541.3839 // 24 mol
			@Ratio *= #$/refPower$
		}
		INPUT_RESOURCE
		{
			ResourceName = Water
			Ratio = 0.4685 // 26 mol
			@Ratio *= #$/refPower$
			FlowMode = STAGE_PRIORITY_FLOW
		}
	}
	@MODULE[ModuleResourceConverter]:HAS[#Tag[MMGH-PCCH4]]
	{
		@INPUT_RESOURCE,1
		{
			@ResourceName = CarbonDioxide
			@Ratio = 451.4533 // 20 mol
			@Ratio *= #$/refPower$
		}
		INPUT_RESOURCE
		{
			ResourceName = Water
			Ratio = 0.7208 // 40 mol
			@Ratio *= #$/refPower$
			FlowMode = STAGE_PRIORITY_FLOW
		}
	}
	@MODULE[ModuleResourceConverter]:HAS[#Tag[MMGH-PCETH]]
	{
		@INPUT_RESOURCE,1
		{
			@ResourceName = CarbonDioxide
			Ratio = 541.3839 // 24 mol
			@Ratio *= #$/refPower$
		}
		INPUT_RESOURCE
		{
			ResourceName = Water
			Ratio = 0.6487 // 36 mol
			@Ratio *= #$/refPower$
			FlowMode = STAGE_PRIORITY_FLOW
		}
	}
}