module Packing
{
	imports
	{
		Base,
	}
	
	item 10pkLighter
	{
		Weight			= 0.5,
		Type			= Normal,
		DisplayName		= 10 x Lighter,
		DisplayCategory = LightSource,
		Icon			= PLighter,
		WorldStaticModel= StackOfZippo,
	}
	
	item 5pkLighter
	{
		Weight			= 0.35,
		Type			= Normal,
		DisplayName		= 5 x Lighter,
		DisplayCategory = LightSource,
		Icon			= PLighter,
		WorldStaticModel= StackOfZippo,
	}

	recipe Pack 10
	{
		destroy Lighter=10,
		
		Result:10pkLighter,
		OnCreate:Recipe.OnCreate.SaveUses,
		OnTest:Recipe.OnTest.IsFavorite,
		Time:75.0,
		Category:Storage,
	}
	
	recipe Unpack 10
	{
		destroy 10pkLighter,
		
		Result:Lighter,
		OnCreate:Recipe.OnCreate.LoadUses,
		RemoveResultItem:true,
		Time:50.0,
		Category:Storage,
	}
	
	recipe Pack 5
	{
		destroy Lighter=5,
		
		Result:5pkLighter,
		OnCreate:Recipe.OnCreate.SaveUses,
		OnTest:Recipe.OnTest.IsFavorite,
		Time:50.0,
		Category:Storage,
	}
	
	recipe Unpack 5
	{
		destroy 5pkLighter,
		
		Result:Lighter,
		OnCreate:Recipe.OnCreate.LoadUses,
		RemoveResultItem:true,
		Time:25.0,
		Category:Storage,
	}

	recipe Put Together
	{
		5pkLighter=2,
		
		Result:10pkLighter=1,
		OnCreate:Recipe.OnCreate.MergeUses,
		Time:30.0,
	}

	recipe Split in Two
	{
		10pkLighter=1,
		
		Result:5pkLighter,
		OnCreate:Recipe.OnCreate.SplitUsesInTwo,
		RemoveResultItem:true,
		Time:30.0,
	}

	model StackOfZippo
	{
		mesh = WorldItems/stack_of_zippo,
		texture = zippo,
		scale = 1.0,
	}
}