module Base
{
	craftRecipe RemoveBatteryGPNVG18
	{
        timedAction = Making,
		Time = 30,
		AllowBatchCraft = False,
		Tags = InHandCraft;CanBeDoneInDark,
        category = Electrical,
		OnTest = FNVG_CanRemoveBattery,
		OnCreate = FNVG_OnRemoveBattery,

		inputs
		{
			item 1 [FNVG.GPNVG_18;FNVG.GPNVG_18_UP;FNVG.GPNVG_18_PART] mode:keep,
		}
		outputs
		{
			item 1 Base.Battery,
		}
	}

	craftRecipe InsertBatteryGPNVG18
	{
        timedAction = Making,
		Time = 30,
		AllowBatchCraft = False,
		Tags = InHandCraft;CanBeDoneInDark,
        category = Electrical,
		OnTest = FNVG_CanInsertBattery,
		OnCreate = FNVG_OnInsertBattery,

		inputs
		{
			item 1 [Base.Battery] mode:destroy,
			item 1 [FNVG.GPNVG_18;FNVG.GPNVG_18_UP;FNVG.GPNVG_18_PART] mode:keep,
		}
	}

	craftRecipe AttachRhinoMountGPNVG18
	{
        timedAction = Making,
		Time = 30,
		AllowBatchCraft = False,
		Tags = InHandCraft;CanBeDoneInDark,
        category = Electrical,
		OnCreate = FNVG_OnMountAttach,

		inputs
		{
			item 1 [FNVG.GPNVG_18_PART] mode:destroy,
			item 1 [FNVG.RhinoMount;FNVG.RhinoMount_UP] mode:destroy,
		}
		outputs
		{
			item 1 FNVG.GPNVG_18,
		}
	}

	craftRecipe DetachRhinoMountGPNVG18
	{
       	timedAction = Making,
		Time = 30,
		AllowBatchCraft = False,
		Tags = InHandCraft;CanBeDoneInDark,
        category = Electrical,
		OnCreate = FNVG_OnMountDetach,

		inputs
		{
			item 1 [FNVG.GPNVG_18;FNVG.GPNVG_18_UP] mode:destroy,
		}
		outputs
		{
			item 1 FNVG.GPNVG_18_PART,
		}
	}
}