/*
    One real recipe, taught by American Gunsmithing.

    It exists for two reasons: it gives the magazine something worth knowing
    (a maintenance kit built from scavenged parts), and a recipe is what the
    game tracks as "learned" - which is how the magazine gets its tick,
    its Reread option and its multiplayer-safe knowledge check.
*/
module Base
{
    craftRecipe HFMCraftMaintenanceKit
    {
        timedAction = Making,
        time = 300,
        NeedToBeLearn = true,
        AutoLearnAny = Maintenance:4,      /* or learn it from American Gunsmithing */
        Tags = AnySurfaceCraft,
        category = Repair,
        inputs
        {
            item 1 tags[base:sharpknife;base:scissors] mode:keep flags[Prop1;IsNotDull;MayDegradeLight],
            item 1 [Base.ScrapMetal],          /* rods */
            item 1 [Base.Brush;Base.Toothbrush],   /* bore brush - a toothbrush does fine */
            item 2 [Base.RippedSheets],        /* patches */
        }
        outputs
        {
            item 1 HagsFirearmMaintenance.FirearmMaintenanceKit,
        }
    }

    /*
        Gunsmithing Tools, assembled from ordinary tools.

        Everything is consumed: you are fitting these into a roll, and the
        finished kit never wears out, so it should cost something real.
        No skill gate - the magazine promises you can repair firearms
        regardless of skill, and gating the tools behind a level would quietly
        break that promise. Maintenance 4 learns it without the magazine, the
        same level that grants the maintenance kit recipe, so the two always
        arrive together.
    */
    craftRecipe HFMCraftGunsmithingTools
    {
        timedAction = Making,
        time = 400,
        NeedToBeLearn = true,
        AutoLearnAny = Maintenance:4,      /* same as the kit: both come together */
        Tags = AnySurfaceCraft,
        category = Repair,
        inputs
        {
            item 1 [Base.Hammer;Base.BallPeenHammer],   /* brass hammer stand-in */
            item 1 [Base.Screwdriver],                  /* hollow-ground drivers */
            item 1 [Base.SmallPunchSet],                /* pin punches */
            item 1 [Base.Pliers],
            item 1 tags[base:smallfiles],               /* needle files */
        }
        outputs
        {
            item 1 HagsFirearmMaintenance.GunsmithingTools,
        }
    }
}
