module Base
{
    craftRecipe VFE_SawOffStock
    {
        timedAction = SawOffShotgun,
        time = 200,
        OnCreate = VFERecipeCodeOnCreate.sawnoffStock,
        Tooltip = Tooltip_Recipe_NeedSawMetal,
        Tags = InHandCraft,
        category = Weaponry,
        inputs
        {
            item 1 tags[base:metalsaw;base:smallsaw] mode:keep flags[Prop1;MayDegrade],
            item 1 [Base.ShotgunSawnoff;Base.DoubleBarrelShotgunSawnoff] flags[Prop2;InheritCondition;InheritAmmunition] mappers[stockType],
        }
        outputs
        {
            item 1 mapper:stockType,
            item 1 Base.UnusableWood,
        }
        itemMapper stockType
        {
            Base.ShotgunSawnoffNoStock = Base.ShotgunSawnoff,
            Base.DoubleBarrelShotgunSawnoffNoStock = Base.DoubleBarrelShotgunSawnoff,
        }
    }

    craftRecipe VFE_GatherGunpowder22
    {
        timedAction = Making,
        time = 30,
        category = Packing,
        Tags = AnySurfaceCraft,
        inputs
        {
            item 1 tags[base:pliers;base:visegrips] mode:keep,
            item 5 [Base.22Bullets] mode:destroy,
        }
        outputs
        {
            item 1 Base.GunPowder flags[HasOneUse],
        }
    }

    craftRecipe VFE_Couple556Magazines
    {
        timedAction = Making,
        time = 50,
        category = Weaponry,
        OnCreate = VFERecipeCodeOnCreate.magazineCouple,
        Tags = InHandCraft,
        inputs
        {
            item 2 [Base.556Clip],
            item 1 [Base.DuctTape] flags[Prop1],
        }
        outputs
        {
            item 1 Base.Coupled556,
        }
    }

    craftRecipe VFE_Separate556Magazines
    {
        timedAction = Making,
        time = 50,
        category = Weaponry,
        Tags = InHandCraft,
        inputs
        {
            item 1 [Base.Coupled556] mode:destroy,
        }
        outputs
        {
            item 2 Base.556Clip,
        }
    }

    craftRecipe VFE_Couple762Magazines
    {
        timedAction = Making,
        time = 50,
        category = Weaponry,
        OnCreate = VFERecipeCodeOnCreate.magazineCouple,
        Tags = InHandCraft,
        inputs
        {
            item 2 [Base.762Clip],
            item 1 [Base.DuctTape] flags[Prop1],
        }
        outputs
        {
            item 1 Base.Coupled762,
        }
    }

    craftRecipe VFE_Separate762Magazines
    {
        timedAction = Making,
        time = 50,
        category = Weaponry,
        Tags = InHandCraft,
        inputs
        {
            item 1 [Base.Coupled762] mode:destroy,
        }
        outputs
        {
            item 2 Base.762Clip,
        }
    }



    craftRecipe VFE_AttachM9BayonetToSpear
    {
        timedAction = CraftKnifeSpear,
        time = 100,
        category = Weaponry,
        Tags = InHandCraft;Survivalist,
        inputs
        {
            item 1 [Base.SpearCrafted] flags[Prop2;InheritCondition],
            item 1 [Base.M16Bayonet] flags[Prop1],
            item 2 [Base.DuctTape],
        }
        outputs
        {
            item 1 Base.SpearBayonet,
        }
    }

    craftRecipe VFE_ReclaimM9BayonetFromSpear
    {
        timedAction = Making,
        time = 60,
        category = Weaponry,
        Tags = InHandCraft;Survivalist,
        inputs
        {
            item 1 [Base.SpearBayonet],
        }
        outputs
        {
            item 1 Base.M16Bayonet,
        }
    }

    craftRecipe VFE_Insert308IntoLinks
    {
        timedAction = Making,
        time = 50,
        category = Packing,
        Tags = InHandCraft,
        inputs
        {
            item 5 [Base.308Bullets],
            item 5 [Base.M60_Link],
        }
        outputs
        {
            item 5 Base.308BulletsLinked,
        }
    }

    craftRecipe VFE_Remove308FromLinks
    {
        timedAction = Making,
        time = 100,
        category = Packing,
        Tags = InHandCraft,
        inputs
        {
            item 5 [Base.308BulletsLinked],
        }
        outputs
        {
            item 5 Base.M60_Link,
            item 5 Base.308Bullets,
        }
    }

    craftRecipe VFE_MakeM13Links
    {
        timedAction = Making,
        time = 1200,
        category = Metalworking,
        NeedToBeLearn = true,
        SkillRequired = MetalWelding:1,
        Tags = AnySurfaceCraft,
        inputs
        {
            item 1 [Base.M60_Link_Die] mode:keep,
            item 1 tags[base:metalsaw;base:smallsaw] mode:keep,
            item 1 tags[base:hammer] mode:keep,
            item 1 [Base.SmallSheetMetal],
        }
        outputs
        {
            item 20 Base.M60_Link,
        }
    }

    craftRecipe VFE_MakeM60BeltPouch
    {
        timedAction = Making,
        time = 300,
        category = Tailoring,
        NeedToBeLearn = true,
        SkillRequired = Tailoring:2,
        Tags = AnySurfaceCraft,
        inputs
        {
            item 1 tags[base:sewingneedle;base:awl] mode:keep flags[Prop1],
            item 5 [Base.Thread],
            item 4 [Base.DenimStrips],
        }
        outputs
        {
            item 1 Base.M60Belt,
        }
    }

    craftRecipe VFE_MakeM60BrassCatcher
    {
        timedAction = Making,
        time = 300,
        category = Tailoring,
        NeedToBeLearn = true,
        SkillRequired = Tailoring:2,
        Tags = AnySurfaceCraft,
        inputs
        {
            item 1 tags[base:sewingneedle;base:awl] mode:keep flags[Prop1],
            item 1 tags[base:metalsaw;base:smallsaw] mode:keep,
            item 5 [Base.Thread],
            item 4 [Base.DenimStrips],
            item 1 [Base.MetalBar],
        }
        outputs
        {
            item 1 Base.M60BrassCatcher,
        }
    }

    craftRecipe VFE_MakeM13LinkDie
    {
        timedAction = Welding,
        time = 1200,
        category = Metalworking,
        NeedToBeLearn = true,
        SkillRequired = MetalWelding:5,
        xpAward = MetalWelding:25,
        Tags = InHandCraft;Welding,
        inputs
        {
            item 1 tags[base:weldingmask] mode:keep,
            item 1 tags[base:metalsaw;base:smallsaw] mode:keep,
            item 4 [Base.SmallSheetMetal],
            item 2 [Base.MetalBar],
            item 2 [Base.BlowTorch],
            item 4 [Base.WeldingRods],
        }
        outputs
        {
            item 1 Base.M60_Link_Die,
        }
    }

}
