module AutoTurret 
{
    imports
    {
        Base
    }
    item MediumTurretBook
	{
		Weight		=	0.5,
		Type		=	Literature,
		DisplayName	=	MediumTurretBook,
		Icon		=	TurretBookLV1,
		TeachedRecipes  =   	Craft_30mmMainBaseGround;Craft_30mmFireMainBaseGround;Craft_50mmMainBaseGround;Place_30mmTurret;Place_30mmFireTurret;Place_50mmTurret,
        ReplaceOnUse    =   	MediumTurretBook,
		DisplayCategory	=   SkillBook,
		StaticModel = Book,
		WorldStaticModel = BookBrown_Ground,
	}
    item 30mmMainBaseGround{
        DisplayCategory = VehicleMaintenance,
        Weight	=	5,
        Type	=	Normal,
        DisplayName	=	30mmMainBaseGround,
        Icon	=	30mmMainBaseGround,
    }
    item 30mmFireMainBaseGround{
        DisplayCategory = VehicleMaintenance,
        Weight	=	5,
        Type	=	Normal,
        DisplayName	=	30mmFireMainBaseGround,
        Icon	=	30mmFireMainBaseGround,
    }
    item 50mmMainBaseGround{
        DisplayCategory = VehicleMaintenance,
        Weight	=	5,
        Type	=	Normal,
        DisplayName	=	50mmMainBaseGround,
        Icon	=	50mmMainBaseGround,
    }

    recipe Craft_30mmMainBaseGround{
        EngineParts = 3,
        SmallSheetMetal=2,
        SheetMetal=2,
        BlowTorch=5,
        keep [Recipe.GetItemTypes.WeldingMask],
        SkillRequired:MetalWelding=5;Electricity=3,
        Result:AutoTurret.30mmMainBaseGround,
        CanBeDoneFromFloor:true,
        NeedToBeLearn:true,
        Category:AutoTurret,
        Time:30.0,
    }
    recipe Craft_30mmFireMainBaseGround{
        EngineParts = 3,
        SmallSheetMetal=2,
        SheetMetal=2,
        BlowTorch=5,
        keep [Recipe.GetItemTypes.WeldingMask],
        SkillRequired:MetalWelding=5;Electricity=3,
        Result:AutoTurret.30mmFireMainBaseGround,
        CanBeDoneFromFloor:true,
        NeedToBeLearn:true,
        Category:AutoTurret,
        Time:30.0,
    }
    recipe Craft_50mmMainBaseGround{
        EngineParts = 3,
        SmallSheetMetal=2,
        SheetMetal=2,
        BlowTorch=5,
        keep [Recipe.GetItemTypes.WeldingMask],
        SkillRequired:MetalWelding=5;Electricity=3,
        Result:AutoTurret.50mmMainBaseGround,
        Category:AutoTurret,
        NeedToBeLearn:true,
        CanBeDoneFromFloor:true,
        Time:30.0,
    }

    recipe Place_30mmTurret
    {
        30mmMainBaseGround,
        Result 		: 30mmMainBaseGround,
        Time 		: 1,
        RemoveResultItem 		: TRUE,
        Category:AutoTurret,
        NeedToBeLearn:true,
        OnCreate 		: Recipe.OnCreate.Place_30mmTurret,
    }
    recipe Place_30mmFireTurret
    {
        30mmFireMainBaseGround,
        Result 		: 30mmFireMainBaseGround,
        Time 		: 1,
        RemoveResultItem 		: TRUE,
        Category:AutoTurret,
        NeedToBeLearn:true,
        OnCreate 		: Recipe.OnCreate.Place_30mmFireTurret,
    }
    recipe Place_50mmTurret
    {
        50mmMainBaseGround,
        Result 		: 50mmMainBaseGround,
        Time 		: 1,
        RemoveResultItem 		: TRUE,
        Category:AutoTurret,
        NeedToBeLearn:true,
        OnCreate 		: Recipe.OnCreate.Place_50mmTurret,
    }
}
	