module Base {

    craftRecipe SortMineralSulfur {
        timedAction   = Making,
        time          = 200,
        Tags          = AnySurfaceCraft,
        category      = AmmoCrafting,
        SkillRequired = Blacksmith:6,
        xpAward       = Blacksmith:10,
        Icon          = Item_Rock,
        inputs {
            item 5 [Base.Stone2] mode:destroy flags[ItemCount;AllowDestroyedItem],
            item 1 tags[base:mortarpestle] mode:keep flags[MayDegradeLight],
        }
        outputs {
            item 1 HBAC.Sulfur,
        }
    }

    craftRecipe PrepareOrganicMix {
        timedAction   = Making,
        time          = 200,
        Tags          = AnySurfaceCraft,
        category      = AmmoCrafting,
        SkillRequired = Blacksmith:6,
        xpAward       = Blacksmith:10,
        Icon          = Item_TZ_IndieStoneNPK,
        inputs {
            item 10 [Base.Dung_Chicken;Base.Dung_Turkey;Base.Dung_Cow;Base.Dung_Deer;Base.Dung_Mouse;Base.Dung_Pig;Base.Dung_Rabbit;Base.Dung_Raccoon;Base.Dung_Rat;Base.Dung_Sheep] mode:destroy flags[ItemCount;AllowDestroyedItem;IsExclusive],
            item 1 [Base.Salt] mode:destroy flags[ItemCount],
            item 1 tags[base:mortarpestle] mode:keep,
        }
        outputs {
            item 1 HBAC.PropellantBase,
        }
    }

    craftRecipe MakeFreshGunpowder {
        timedAction   = Making,
        time          = 200,
        Tags          = AnySurfaceCraft,
        category      = AmmoCrafting,
        SkillRequired = Blacksmith:6,
        xpAward       = Blacksmith:10,
        Icon          = Item_GunpowderJar,
        inputs {
            item 1 [HBAC.PropellantBase],
            item 1 [HBAC.Sulfur],
            item 1 [Base.Charcoal],
            item 1 tags[base:mortarpestle] mode:keep,
        }
        outputs {
            item 10 Base.GunPowder,
        }
    }

    craftRecipe CutPlasticPieces {
        timedAction   = Making,
        time          = 200,
        Tags          = AnySurfaceCraft,
        category      = AmmoCrafting,
        Icon          = Item_Plasticbag,
        inputs {
            item 1 [Base.Plasticbag;Base.PlasticCup;Base.PlasticFork;Base.PlasticKnife;Base.PlasticSpoon;Base.Toothbrush] mode:destroy flags[ItemCount;IsEmpty;AllowDestroyedItem],
            item 1 tags[base:sharpknife;base:scissors] mode:keep flags[MayDegradeLight;IsNotDull],
        }
        outputs {
            item 2 HBAC.RecycledPlastic,
        }
    }

    craftRecipe CrushSaltLick {
        timedAction   = Making,
        time          = 200,
        Tags          = AnySurfaceCraft,
        category      = AmmoCrafting,
        Icon          = Item_Salt,
        inputs {
            item 1 [Base.Mov_SaltLick] mode:destroy flags[ItemCount],
            item 1 tags[base:hammer] mode:keep flags[MayDegradeLight],
        }
        outputs {
            item 5 Base.Salt,
        }
    }

    craftRecipe PreparePrimers {
        timedAction   = Making,
        time          = 200,
        Tags          = AmmoReloadingBench,
        category      = AmmoCrafting,
        SkillRequired = Reloading:3,
        xpAward       = Reloading:10,
        Icon          = Item_Primer,
        inputs {
            item 100 [HBAC.PrimerCup_Pistol;HBAC.PrimerCup_Rifle;HBAC.PrimerCup_Shotshell] mappers[primerType] flags[IsExclusive],
            item 1 [Base.GunPowder],
            item 1 [Base.RippedSheets],
        }
        outputs {
            item 100 mapper:primerType,
        }
        itemMapper primerType {
            HBAC.Primer_Pistol = HBAC.PrimerCup_Pistol,
            HBAC.Primer_Rifle = HBAC.PrimerCup_Rifle,
            HBAC.Primer_Shotshell = HBAC.PrimerCup_Shotshell,
        }
    }
}
