module Hydrocraft
{
    imports
    {
        Base

    }

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

item HCPoppyflower
    {
	Weight			        = 0.1,
    Type    		        = Normal,
    DisplayName    	        = Poppy Flower,
    Icon   		 	        = HCPoppyflower,
	DisplayCategory			= CraftChem,
    }

item HCPoppycapsule
    {
	Weight			        = 0.1,
    Type    		        = Normal,
    DisplayName     	    = Poppy Capsule,
    Icon   		 	        = HCPoppycapsule,
	DisplayCategory			= CraftChem,
    }

item HCPoppycapsuleripped
	{
	Weight	                = 0.1,
    Type    		        = Normal,
	DisplayName	            = Ripped Poppy Capsule,
	Icon	                = HCPoppycapsuleripped,
	DisplayCategory			= CraftChem,
	}

item HCRawopium
	{
	Weight	                = 0.1,
    Type    		        = Normal,
	DisplayName	            = Kneaded Raw Opium,
	Icon	                = HCRawopium,
	DisplayCategory			= CraftChem,
	}

item HCOpiumpowder
    {
    PainReduction 		   = 10,
    FatigueChange          = 10,
	Weight				   = 0.1,
	Type				   = Food,
	DisplayName			   = Opium Powder,
    StressChange		   = -20,
	UnhappyChange		   = -25,
    Poison                 = true,
    PoisonDetectionLevel   = 1,
    PoisonPower            = 6,
    UseForPoison           = 1,
	Icon                   = HCOpiumpowder,
	Alcoholic			   = TRUE,
	CustomContextMenu 	   = Sniff,
    CustomEatSound         = HC_Sniff,
	DisplayCategory			= Drugs,
    }

item HCJaropium
	{
    Weight                 = 0.5,
    Type                   = Normal,
    DisplayName	           = Jar With Fermented Opium,
    Icon	               = HCJaropium,
	DisplayCategory			= CraftChem,
	}

item HCPureopium
    {
    Weight    		       = 0.1,
    Type    		       = Normal,
    DisplayName     	   = Pure Opium,
    Icon   		 	       = HCPureopium,
	DisplayCategory			= CraftChem,
    }

item HCPipeopiumpure
    {
    PainReduction 		       = 10,
    FatigueChange              = 10,
	Weight				       = 0.1,
	RequireInHandOrInventory   = Lighter/Matches,
	Type				       = Food,
	DisplayName			       = Clay Pipe with Pure Opium,
	StressChange			   = -20,
	UnhappyChange			   = -25,
	ReplaceOnUse			   = HCClaypipesmoking,
	Icon				       = HCClaypipesmoking,
	Alcoholic			       = TRUE,
	CustomContextMenu 		   = Smoke,
	CustomEatSound             = HC_LightUp, 
	DisplayCategory			= Drugs,
    }

item HCCorncobpipeopiumpure
    {
    PainReduction 		       = 10,
    FatigueChange              = 10,
	Weight				       = 0.1,
	RequireInHandOrInventory   = Lighter/Matches,
	Type				       = Food,
	DisplayName			       = Corn Cob Pipe with Pure Opium,
	StressChange			   = -20,
	UnhappyChange			   = -25,
	ReplaceOnUse			   = HCCorncobpipe,
	Icon				       = HCCorncobpipe,
	Alcoholic			       = TRUE,
	CustomContextMenu 		   = Smoke,
	CustomEatSound             = HC_LightUp, 
	DisplayCategory			= Drugs,
    }

item HCSyringeheroin
    {
    PainReduction 			   = 30,
    HungerChange               = -10,  
    Weight                     = 0.3,
    Type                       = Food,
    ThirstChange               = -5,
    UnhappyChange			   = -25,
    FatigueChange              = 25,
    StressChange               = 20,
    Poison                     = true,
    PoisonDetectionLevel       = 1,
    PoisonPower                = 6,
    UseForPoison               = 1,
    DisplayName			       = Syringe with Heroin,                                                    
    ReplaceOnUse	           = HCSyringeempty,    
    Icon				       = HCSyringeheroin,
	OtherHandUse			   = TRUE,
	RequireInHandOrInventory   = Belt,
	Alcoholic			       = TRUE,
	CustomContextMenu 		   = Inject,
	DisplayCategory			= Drugs,
    }

item HCSyringemorphin
    {  
    PainReduction 			    = 50,
    HungerChange            	= -20,  
    Weight                  	= 0.05,
    Type                    	= Food,
    UnhappyChange			    = -15,
    FatigueChange           	= -10,
    StressChange            	= -20,
    Poison                  	= true,
    PoisonDetectionLevel    	= 1,
    PoisonPower             	= 3,
    UseForPoison            	= 1,
    DisplayName			        = Syringe with Morphine,                                                    
    ReplaceOnUse	        	= HCSyringeempty,    
    Icon				        = HCSyringemorphin,
	Alcoholic			        = TRUE,
	CustomContextMenu 		    = Inject,
	DisplayCategory			= Drugs,
    }

item HCBeakermorphinhydrochloridsolution
	{
	Weight			        = 1,
	Type			        = Food,
	DisplayName		        = Beaker with Morphine Hydrochlorid Solution,
	Icon			        = HCBeakermorphinhydrochloridsolution,
	IsCookable		        = TRUE,
	MinutesToCook		    = 30,
	ReplaceOnUse		    = HCGlassbeaker,
	ReplaceOnCooked		    = Hydrocraft.HCBeakermorphinhydrochlorid,
    Poison                  = true,
    PoisonDetectionLevel    = 1,
    PoisonPower             = 8,
    UseForPoison            = 1,
	DisplayCategory			= Drugs,
	}

item HCBeakermorphinhydrochlorid
	{
	Weight			=	0.7,
	Type			=	Normal,
	DisplayName		=	Beaker with Morphine Hydrochlorid,
	Icon			=	HCBeakermorphinhydrochlorid,
	DisplayCategory			= CraftChem,
	}

item HCBeakermorphinhydrochloridsolution02
	{
	Weight			=	1,
	Type			=	Normal,
	DisplayName		=	Beaker with Morphine Hydrochlorid Solution,
	Icon			=	HCBeakermorphinhydrochloridsolution,
	DisplayCategory			= CraftChem,
	}

item HCTesttubemorphinrubber
	{
	Weight             = 0.5,
	Type               = Drainable,
	UseDelta           = 0.25,
	DisplayName        = Testtube with Morphine,
	Icon               = HCTesttubemorphinrubber,
	ReplaceOnDeplete   = HCGlasstesttuberubberbung
	DisplayCategory			= CraftChem,
	}


item HCTesttubemorphincork
	{
	Weight			   =	0.5,
	Type 			   =   Drainable,
	UseDelta 		   =   0.25,
	DisplayName		   =	Testtube with Morphine,
	Icon			   =	HCTesttubemorphincork,
	ReplaceOnDeplete   =   HCGlasstesttubecork,
	DisplayCategory			= CraftChem,
	}

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

recipe Dry Poppy Flower
    {
    HCPoppyflower,
    OnTest:HCNearHerbatable,
    CanBeDoneFromFloor:true,
    Result:HCPoppycapsule,
    Time:50,
    NeedToBeLearn:true,
    Category:Chemistry,
    OnGiveXP:HCDoctor_OnGiveXP,
    }


recipe Rip Poppy Capsules
    {
    keep Scalpel/HCBoxcutter/HCScalpelimprovised/HCRazorblade,
    HCPoppycapsule,
    OnTest:HCNearHerbatable,
    CanBeDoneFromFloor:true,
    Result:HCPoppycapsuleripped,
    Time:50,
    NeedToBeLearn:true,
    Category:Chemistry,
    OnGiveXP:HCDoctor_OnGiveXP,
    }

recipe Knead Raw Opium
    {
    HCPoppycapsuleripped,
    keep RollingPin,
    keep HCLatexgloves/HCRubberglove,
    OnTest:HCNearHerbatable,
    CanBeDoneFromFloor:true,
    Result:HCRawopium,
    Time:500,
    NeedToBeLearn:true,
    Category:Chemistry,
    OnGiveXP:HCDoctor_OnGiveXP,
    }

recipe Cook Raw Opium
    {
    HCRawopium,
    [Recipe.GetItemTypes.StartFire],
    Charcoal,
    OnTest:HCNearKiln,
    CanBeDoneFromFloor:true,
    Result:HCOpiumpowder,
    Time:1000,
    NeedToBeLearn:true,
    Category:Chemistry,
    OnGiveXP:HCDoctor_OnGiveXP,
    }

recipe Ferment Opium Powder
    {
    SkillRequired:Doctor=3,
    HCOpiumpowder,
    HCPetriaspergillus,
    HCJar,
    Water,
    OnTest:HCNearHerbatable,
    CanBeDoneFromFloor:true,
    Result:HCJaropium,
    Time:50,
    NeedToBeLearn:true,
    OnCreate:recipe_hcgetpetridish,
    OnGiveXP:MakeEphedrin_OnGiveXP,
    Category:Chemistry,
    OnGiveXP:HCDoctor_OnGiveXP,
    }

recipe Put Opium in Pipe
    {
    HCPureopium,
    HCClaypipesmoking,
    Result:HCPipeopiumpure,
    Time:15,
    Category:Chemistry,
    OnGiveXP:HCDoctor_OnGiveXP,
    }

recipe Put Opium in Pipe
    {
    HCPureopium,
    HCCorncobpipe,
    Result:HCCorncobpipeopiumpure,
    Time:15,
    Category:Chemistry,
    OnGiveXP:HCDoctor_OnGiveXP,
    }

recipe Make Morphine Hydrochloride Solution
    {
    SkillRequired:Doctor=5,
    HCBeakercalciumchloridesolution,
    destroy HCRawopium,
    keep HCLab2,
    CanBeDoneFromFloor:true,
    Result:HCBeakermorphinhydrochloridsolution,
    Time:150,
    NeedToBeLearn:true,
    Category:Chemistry,
    OnGiveXP:HCDoctor_OnGiveXP,
    }

recipe Add Water To Morphine Hydrochloride
    {
    SkillRequired:Doctor=5,
    HCBeakermorphinhydrochlorid,
    Water,
    keep HCLab2,
    CanBeDoneFromFloor:true,
    Result:HCBeakermorphinhydrochloridsolution02,
    Time:150,
    NeedToBeLearn:true,
    Category:Chemistry,
    OnGiveXP:HCDoctor_OnGiveXP,
    }

recipe Add Ammonia To Morphine Hydrochloride Solution
    {
    SkillRequired:Doctor=5,
    HCBeakermorphinhydrochloridsolution02,
    HCAmmonia,
    HCGlasstesttuberubberbung=2,
    keep HCLab2,
    CanBeDoneFromFloor:true,
    Result:HCTesttubemorphinrubber=2,
    Time:150,    
    OnCreate:recipe_hcgetbeaker,
    NeedToBeLearn:true,
    Category:Chemistry,
    OnGiveXP:HCDoctor_OnGiveXP,
    }

recipe Add Ammonia To Morphine Hydrochloride Solution
    {
    SkillRequired:Doctor=5,
    HCBeakermorphinhydrochloridsolution02,
    HCAmmonia/HCGlassbottleammonia,
    HCGlasstesttubecork=2,
    keep HCMedicallab2,
    CanBeDoneFromFloor:true,
    Result:HCTesttubemorphincork=2,
    Time:150,    
    OnCreate:recipe_hcgetbeaker,
    NeedToBeLearn:true,
    Category:Health,
    OnGiveXP:HCDoctor_OnGiveXP,
    }


recipe Draw Up Syringe With Morphine
    {
    SkillRequired:Doctor=1,
    HCTesttubemorphincork/HCTesttubemorphinrubber,
    keep HCMedicallab2,
    CanBeDoneFromFloor:true,
    Result:HCSyringemorphin,
    Time:150,    
    NeedToBeLearn:true,
    Category:Health,
    OnGiveXP:HCDoctor_OnGiveXP,
    }





}