module Base
{
	craftRecipe OpenRandombox_Normal
	{
		timedAction = Making,
		time       = 50,
		OnCreate   = Recipe.OnCreate.OpenRandombox_Normal,
		Tags       = InHandCraft;CanBeDoneInDark,
		category   = Miscellaneous,

		inputs
		{
			item 1 [Base.Randombox_Normal] mode:destroy flags[AllowFavorite;InheritFavorite;ItemCount],
		}
		outputs
		{
			item 1 Base.Randombox_Opened,
		}
	}

	craftRecipe OpenRandombox_Rare
	{
		timedAction = Making,
		time       = 50,
		OnCreate   = Recipe.OnCreate.OpenRandombox_Rare,
		Tags       = InHandCraft;CanBeDoneInDark,
		category   = Miscellaneous,

		inputs
		{
			item 1 [Base.Randombox_Rare] mode:destroy flags[AllowFavorite;InheritFavorite;ItemCount],
		}
		outputs
		{
			item 1 Base.Randombox_Opened,
		}
	}

	craftRecipe OpenRandombox_Legendary
	{
		timedAction = Making,
		time       = 50,
		OnCreate   = Recipe.OnCreate.OpenRandombox_Legendary,
		Tags       = InHandCraft;CanBeDoneInDark,
		category   = Miscellaneous,

		inputs
		{
			item 1 [Base.Randombox_Legendary] mode:destroy flags[AllowFavorite;InheritFavorite;ItemCount],
		}
		outputs
		{
			item 1 Base.Randombox_Opened,
		}
	}
	
	craftRecipe ExchangeOpenedBox
	{
		timedAction = Making,
		Time = 50,
		category = Crafting,
		Tags       = InHandCraft;CanBeDoneInDark,
		category   = Miscellaneous,
		
		inputs
		{
			item 10 [Base.Randombox_Opened] mode:destroy flags[AllowFavorite;InheritFavorite;ItemCount],
		}

		outputs
		{
			item 1 Base.Randombox_Normal,
		}
	}
}
