module Hydrocraft
{
    imports
    {
        Base
    }

/************************ITEMS************************/

item HCJunk
    {
        Weight    		= 0.1,
        Type    		= Normal,
        DisplayName         	= Junk,
        icon 			= HCJunk,
		DisplayCategory          =   CraftRec,
    }

item HCJunkyardsmallempty
    {
        Weight    			= 10,
        Type    			= Normal,
        
        DisplayName         		= Small Empty Junkyard,
        icon 				= HCJunkyardsmallempty,
		DisplayCategory          =   CraftRec,
    }

item HCJunkyardsmallfull
    {
        Weight    			= 15,
        Type    			= Normal,
        
        DisplayName         		= Small Full Junkyard,
        icon 				= HCJunkyardsmallfull,
		DisplayCategory          =   CraftRec,
    }

item HCJunkyardmediumempty
    {
        Weight    			= 15,
        Type    			= Normal,
        
        DisplayName         		= Medium Empty Junkyard,
        icon 				= HCJunkyardmediumempty,
		DisplayCategory          =   CraftRec,
    }

item HCJunkyardmediumfull
    {
        Weight    			= 20,
        Type    			= Normal,
        
        DisplayName         		= Medium Full Junkyard,
        icon 				= HCJunkyardmediumfull,
		DisplayCategory          =   CraftRec,
    }

item HCJunkyardlargeempty
    {
        Weight    			= 15,
	LightStrength	                = 0.8,
        Type    			= Normal,
        
        DisplayName         		= Large Empty Junkyard,
        icon 				= HCJunkyardlargeempty,
		DisplayCategory          =   CraftRec,
    }

item HCJunkyardlargefull
    {
	Type             = Normal,
  Weight           = 30,
  DisplayName      = Large Full Junkyard,
  icon 			  	   = HCJunkyardlargefull,
		DisplayCategory          =   CraftRec,
    }

item HCJunkyardlargefull2
    {
  WeightReduction  = 0,
  Weight           = 10000,
  Type             = Container,
  Capacity         = 500,
  DisplayName      = Large Full Junkyard,
  icon             = HCJunkyardlargefull,
		DisplayCategory          =   CraftRec,
    }

item HCMagnetgiant
    {
        Weight    			= 30,
        Type    			= Normal,
        DisplayName         		= Giant Magnet,
        icon 				= HCMagnetgiant,
		DisplayCategory          =   CraftInd,
    }

item HCSled
	{
	WeightReduction	       		=	45,
	Weight	               		=	5,
	Type	               		=	Container,
	Capacity	       		=	50,
	DisplayName	       		=	Makeshift Sled,
	Icon	               		=	HCSled,
	RequiresEquippedBothHands 	= 	true,
		DisplayCategory          =   Container,
	}

item HCDetector
	{
	Weight				=	1,
	Type				=	Normal,
	DisplayName			=	Metal Detector,
	Icon				=	HCDetector,
		DisplayCategory          =   CraftRec,
	}

item HCDetectorpowered
	{
	Weight 				= 	1.0,
	Type 				= 	Drainable,
	UseWhileEquipped		=	FALSE,
	UseDelta			=	0.125,
	DisplayName 			= 	Metal Detector with Power,
	ReplaceOnDeplete		=	HCDetectordead,
	Icon 				= 	HCDetectorpowered,
		DisplayCategory          =   CraftRec,
	}

item HCDetectordead
    {
        Weight    			= 	1.0,
        Type    			= 	Normal,
        DisplayName         		= 	Metal Detector with Dead Battery,
        icon 				= 	HCDetector,
		DisplayCategory          =   CraftRec,
    }

item HCTrashsmall
	{
	Weight				=	1,
	Type				=	Normal,
	DisplayName			=	Small Bag with Trash,
	Icon				=	HCTrashsmall,
		DisplayCategory          =   CraftRec,
        
	}

item HCTrashmedium
	{
	Weight				=	3,
	Type				=	Normal,
	DisplayName			=	Medium Box With Trash,
	Icon				=	HCTrashmedium,
		DisplayCategory          =   CraftRec,
        
	}

item HCTrashlarge
	{
	Weight				=	9,
	Type				=	Normal,
	DisplayName			=	Large Box With Trash,
	Icon				=	HCTrashlarge,
		DisplayCategory          =   CraftRec,
        
	}

item HCJunkmicro
        {
        Weight    			=       1,
        Type    			=       Normal,
        DisplayName         		=       Broken Microwave,
        icon 				=       HCJunkmicro,
		DisplayCategory          =   CraftRec,

        }

item HCJunktv
	{
	Weight				=	1.5,
	Type				=	Normal,
	DisplayName			=	Broken TV,
	Icon				=	HCJunktv,
		DisplayCategory          =   CraftRec,

	}

item HCJunkfridge
	{
	Weight				=	3,
	Type				=	Normal,
	DisplayName			=	Broken Fridge,
	Icon				=	HCJunkfridge,
		DisplayCategory          =   CraftRec,

	}

item HCJunkwash
	{
	Weight				=	3,
	Type				=	Normal,
	DisplayName			=	Broken Washing Machine,
	Icon				=	HCJunkwash,
		DisplayCategory          =   CraftRec,

	}

item HCJunkdryer
	{
	Weight				=	3,
	Type				=	Normal,
	DisplayName			=	Broken Drying Machine,
	Icon				=	HCJunkdryer,
		DisplayCategory          =   CraftRec,

	}


item HCJunkbicycle
	{
	Weight				=	3,
	Type				=	Normal,
	DisplayName			=	Broken Bicycle,
	Icon				=	HCJunkbicycle,
		DisplayCategory          =   CraftRec,

	}

item HCDynamo
	{
	Weight				=	0.1,
	Type				=	Normal,
	DisplayName			=	Dynamo,
	Icon				=	HCDynamo,
		DisplayCategory          =   CraftRec,
	}

item HCJunktredmill
	{
	Weight				=	3,
	Type				=	Normal,
	DisplayName			=	Broken Tredmill,
	Icon				=	HCJunktredmill,
		DisplayCategory          =   CraftRec,

	}

item HCRadiator2
    {
        Weight    			= 10,
        Type    			= Normal,
        DisplayName         		= Broken Radiator,
        icon 				= HCRadiator2,
		DisplayCategory          =   CraftRec,
        
    }

item HCBedsprings
    {
        Weight    			= 10,
        Type    			= Normal,
        DisplayName         		= Rusty Bed Springs,
        icon 				= HCBedsprings,
		DisplayCategory          =   CraftRec,
        
    }

item HCWaterheater
    {
        Weight    			= 10,
        Type    			= Normal,
        DisplayName         		= Water Heater,
        icon 				= HCWaterheater,
		DisplayCategory          =   CraftRec,
        
    }

/************************WEAPONS************************/

	item HCChain
	{
		MaxRange					=	2,
		WeaponSprite					=	Poolcue,
		MinAngle					=	0.2,
		Type						=	Weapon,
		MinimumSwingTime				=	4.0,
		KnockBackOnNoDeath				=	TRUE,
		SwingAmountBeforeImpact				=	0.002,
		Categories					=	Blunt,
		ConditionLowerChanceOneIn			=	15,
		Weight						=	3.5,
		SplatNumber					=	1,
		PushBackMod					=	0.3,
		MinDamage					=	1,
		MaxDamage					=	2.5,
		SubCategory					=	Swinging,
		ConditionMax					=	15,
		MaxHitCount					=	2,
		DoorDamage					=	25,
		IdleAnim					=	Idle_Weapon2,
		SwingAnim					=	Bat,
		CriticalChance					=	20,
		WeaponWeight					=	3.5,
		DisplayName					=	Chain,
		MinRange					=	0.61,
		SwingTime					=	4.0,
		HitAngleMod					=	-30,
		SplatSize					=	5,
		KnockdownMod					=	2,
		SplatBloodOnNoDeath				=	TRUE,
		Icon						=	HCChain,
		RunAnim						=	Run_Weapon2,
        	BreakSound  					=   	BreakMetalItem,
		DisplayCategory          =   CraftRec,
	}

/************************RECIPES************************/

recipe Make Small Junkyard
    {
       	keep Shovel/Shovel2,
       	keep [Recipe.GetItemTypes.Hammer],
       	Nails=3,
       	Plank=3,
       	Result:HCJunkyardsmallempty,
       	Time:500,
       	Category:Engineer,
    	OnGiveXP:Recipe.OnGiveXP.None,
    }

recipe Fill Small Junkyard
    {
       	HCJunkyardsmallempty,
       	HCTrashsmall,
       	CanBeDoneFromFloor:true,
       	Result:HCJunkyardsmallfull,
       	Time:1000,
       	Category:Engineer,
    	OnGiveXP:Recipe.OnGiveXP.None,
    }

recipe Search Junk
    {
       	keep HCJunkyardsmallfull,
       	HCTrashsmall,
	keep [Recipe.GetItemTypes.LeatherGloves], 
       	Result:Garbagebag,
       	CanBeDoneFromFloor:true,
       	Time:100,
       	Category:Engineer,
       	OnCreate:hcjunksearchsmall,
    	OnGiveXP:Recipe.OnGiveXP.None,
    }

recipe Upgrade To Medium Junkyard
    {
       	HCJunkyardsmallfull,
       	keep Shovel/Shovel2,
       	HCSteelrod=3,
       	HCChickenwire=8,
       	keep [Recipe.GetItemTypes.Hammer],
       	CanBeDoneFromFloor:true,
       	Result:HCJunkyardmediumempty,
       	Time:750,
       	Category:Engineer,
    	OnGiveXP:Recipe.OnGiveXP.None,
    }

recipe Fill Medium Junkyard
    {
       	HCJunkyardmediumempty,
       	HCTrashsmall=3,
       	HCTrashmedium,
       	CanBeDoneFromFloor:true,
       	Result:HCJunkyardmediumfull,
       	Time:2000,
       	Category:Engineer,
    	OnGiveXP:Recipe.OnGiveXP.None,
    }

recipe Search Junk
    {
       	keep HCJunkyardmediumfull,
       	HCTrashsmall,
	keep [Recipe.GetItemTypes.LeatherGloves], 
       	Result:Garbagebag,
       	CanBeDoneFromFloor:true,
       	Time:100,
       	Category:Engineer,
       	OnCreate:hcjunksearchsmall,
    	OnGiveXP:Recipe.OnGiveXP.None,
    }

recipe Search Junk
    {
       	keep HCJunkyardmediumfull,
       	HCTrashmedium,
	keep [Recipe.GetItemTypes.LeatherGloves], 
       	Result:HCCardboardbox,
       	CanBeDoneFromFloor:true,
       	Time:200,
       	Category:Engineer,
       	OnCreate:hcjunksearchmedium,
    	OnGiveXP:Recipe.OnGiveXP.None,
    }


recipe Scrap car parts
 {
  keep HCJunkyardmediumfull/HCJunkyardlargefull2,
  keep [Recipe.GetItemTypes.LeatherGloves], 
  keep Sledgehammer2/Sledgehammer,
   ,
  Result:ScrapMetal,
  CanBeDoneFromFloor:true,
  Time:300,
  Category:Engineer,
  OnCreate:hcjunkScrapParts,
  OnGiveXP:HCMechanicsWelding_OnGiveXP,
}


recipe Upgrade To Large Junkyard
    {
       	HCJunkyardmediumfull,
       	keep Shovel/Shovel2,
       	HCSteelbeam=6,
       	HCSteelrod=12,
       	keep Screwdriver,
       	HCBolt=20,
	HCNut=20,
       	HCChain,
       	HCMagnetgiant,
       	HCCablecopper=4,
       	keep [Recipe.GetItemTypes.Hammer],
    	keep [Recipe.GetItemTypes.LeatherGloves]/HCOvenmitts,
    	keep [Recipe.GetItemTypes.WeldingMask],
    	HCWeldingset,
    	keep [Recipe.GetItemTypes.LeatherGloves],
       	CanBeDoneFromFloor:true,
       	Result:HCJunkyardlargeempty,
       	Time:1000,
       	Category:Engineer,
    	OnGiveXP:Recipe.OnGiveXP.None,
    }

recipe Fill Large Junkyard
    {
       	HCJunkyardlargeempty,
       	HCTrashsmall=6,
       	HCTrashmedium=3,
       	HCTrashlarge,
       	CanBeDoneFromFloor:true,
      	Result:HCJunkyardlargefull,
       	Time:3000,
       	Category:Engineer,
    	OnGiveXP:Recipe.OnGiveXP.None,
    }


recipe Anchor Large Junkyard
    {
  HCJunkyardlargefull,
  CanBeDoneFromFloor:true,
  Result:HCJunkyardlargefull2,
  Time:100,
  Category:Anchor,
    }




recipe Search Junk
    {
       	keep HCJunkyardlargefull2,
       	HCTrashsmall,
	keep [Recipe.GetItemTypes.LeatherGloves], 
       	Result:Garbagebag,
       	CanBeDoneFromFloor:true,
       	Time:100,
       	Category:Engineer,
       	OnCreate:hcjunksearchsmall,
    	OnGiveXP:Recipe.OnGiveXP.None,
    }

recipe Search Junk
    {
       	keep HCJunkyardlargefull2,
       	HCTrashmedium,
	keep [Recipe.GetItemTypes.LeatherGloves], 
       	Result:HCCardboardbox,
       	CanBeDoneFromFloor:true,
       	Time:200,
       	Category:Engineer,
       	OnCreate:hcjunksearchmedium,
    	OnGiveXP:Recipe.OnGiveXP.None,
    }

recipe Search Junk
    {
       	keep HCJunkyardlargefull2,
	HCTrashlarge,
	keep [Recipe.GetItemTypes.LeatherGloves], 
       	Result:HCCardboardbox,
       	CanBeDoneFromFloor:true,
       	Time:300,
       	Category:Engineer,
       	OnCreate:hcjunksearchlarge,
    	OnGiveXP:Recipe.OnGiveXP.None,
    }

recipe Search Junk with Giant Magnet
    {
        keep HCJunkyardlargefull2,
	HCTrashlarge,
       	HCBatteryhuge,
       	Result:HCCardboardbox,
       	NeedToBeLearn:true,
       	CanBeDoneFromFloor:true,
       	Time:500,
       	Category:Engineer,
       	OnCreate:hcjunksearchmagnet,
    	OnGiveXP:Recipe.OnGiveXP.None,
    }

recipe Make Sled
	{
        Screws=2,
	HCSteelpipe=2,
        SheetMetal,
        Rope,
        keep Screwdriver,              
	Result:HCSled,              
	Time:500.0,
	Category:Engineer,
    	OnGiveXP:HCWelding_OnGiveXP,
	}

recipe Insert Battery
    {
    	HCDetector,
    	HCBatterymedium,
    	Result:HCDetectorpowered,
    	Time:15,
    	Category:Electrical,
    }

recipe Remove Battery
    {
    	HCDetectordead,
    	Result:HCDetector,
    	Time:15,
    	Category:Electrical,
    	OnCreate:recipe_hcbatterymediumdead,
    }

recipe Search For Metal
	{
	HCDetectorpowered,
	keep [Recipe.GetItemTypes.LeatherGloves],              
	Result:HCDetector,              
	Time:500.0,
  Category:Engineer,
	RemoveResultItem:true,
  OnCreate:hcmetalsearch,
  OnGiveXP:HCPlantScavenging_OnGiveXP,
	}

}