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

		inputs
		{
			item 1 [FNVG.AN_PVS14;FNVG.AN_PVS14_UP;FNVG.AN_PVS14_PART] mode:keep,
		}
		outputs
		{
			item 1 Base.Battery,
		}
	}

	craftRecipe InsertBatteryPVS14
	{
        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.AN_PVS14;FNVG.AN_PVS14_UP;FNVG.AN_PVS14_PART] mode:keep,
		}
	}

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

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

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

		inputs
		{
			item 1 [FNVG.AN_PVS14;FNVG.AN_PVS14_UP] mode:destroy,
		}
		outputs
		{
			item 1 FNVG.AN_PVS14_PART,
		}
	}
}