module AutoTurret 
{
    imports
    {
        Base
    }
    item TacticalTurretBook
	{
		Weight		=	0.5,
		Type		=	Literature,
		DisplayName	=	TacticalTurretBook,
		Icon		=	TurretBookLV1,
		TeachedRecipes  =   	Craft_MainBaseGroundLaser;Place_TurretLaser,
        ReplaceOnUse    =   	BeginnerTurretBook,
		DisplayCategory	=   SkillBook,
		StaticModel = Book,
		WorldStaticModel = BookBrown_Ground,
	}
    item MainBaseGroundLaser{
        DisplayCategory = VehicleMaintenance,
        Weight	=	5,
        Type	=	Normal,
        DisplayName	=	MainBaseGroundLaser,
        Icon	=	MainBaseGround,
        Tooltip = Tooltip_TurretLaser,
    }

    craftRecipe Craft_MainBaseGroundLaser
    {
        timedAction = CrushLimestone,
        Tags = AnySurfaceCraft,
        time            = 140,
        category = AutoTurret,
        SkillRequired = MetalWelding=5;Electricity=2,
        
        needTobeLearn = true,
        inputs
        {
            item 5 [Base.EngineParts],
            item 5 [Base.SmallSheetMetal],
            item 3 [Base.SheetMetal],
            item 5 [Base.BlowTorch],
            item 1 tags[WeldingMask] mode:keep,
        }
        outputs
        {
           item 1 AutoTurret.MainBaseGroundLaser,
        }
    }

    craftRecipe Place_TurretLaser
    {
        timedAction = CrushLimestone,
        time            = 140,
        category = AutoTurret,
        SkillRequired = MetalWelding=5;Electricity=3,
        OnCreate = Recipe.OnCreate.Place_TurretLaser,
        Tags = InHandCraft,
        needTobeLearn = true,
        inputs
        {
            item 1 [AutoTurret.MainBaseGroundLaser],
        }
        outputs
        {
           
        }
    }
}
	