module Base {

    craftRecipe OpenBoxOf100Projectiles {
        timedAction = OpenAmmoBox,
        time        = 15,
        category    = Packing,
        recipeGroup = OpenBox,
        canWalk     = true,
        Tags        = InHandCraft;CanBeDoneInDark,
        inputs {
            item 1 [HBAC.9x19_ProjectileBox;HBAC.38_ProjectileBox;HBAC.45_ProjectileBox;HBAC.357_ProjectileBox;HBAC.22_ProjectileBox;HBAC.57x28_ProjectileBox;HBAC.46x30_ProjectileBox] mappers[ammoType] flags[Prop2;AllowFavorite;InheritFavorite],
        }
        outputs {
            item 100 mapper:ammoType,
        }
        itemMapper ammoType {
            HBAC.9x19_Projectile = HBAC.9x19_ProjectileBox,
            HBAC.38_Projectile = HBAC.38_ProjectileBox,
            HBAC.45_Projectile = HBAC.45_ProjectileBox,
            HBAC.357_Projectile = HBAC.357_ProjectileBox,
            HBAC.22_Projectile = HBAC.22_ProjectileBox,
            HBAC.57x28_Projectile = HBAC.57x28_ProjectileBox,
            HBAC.46x30_Projectile = HBAC.46x30_ProjectileBox,
        }
    }

    craftRecipe place100ProjectilesInBox {
        timedAction = PlaceAmmoInBox,
        time        = 15,
        category    = Packing,
        canWalk     = true,
        Tags        = InHandCraft,
        inputs {
            item 100 [HBAC.9x19_Projectile;HBAC.45_Projectile;HBAC.38_Projectile;HBAC.357_Projectile;HBAC.22_Projectile;HBAC.57x28_Projectile;HBAC.46x30_Projectile] mappers[ammoType] flags[AllowFavorite;InheritFavorite;IsExclusive],
        }
        outputs {
            item 1 mapper:ammoType,
        }
        itemMapper ammoType {
            HBAC.9x19_ProjectileBox = HBAC.9x19_Projectile,
            HBAC.38_ProjectileBox = HBAC.38_Projectile,
            HBAC.45_ProjectileBox = HBAC.45_Projectile,
            HBAC.357_ProjectileBox = HBAC.357_Projectile,
            HBAC.22_ProjectileBox = HBAC.22_Projectile,
            HBAC.57x28_ProjectileBox = HBAC.57x28_Projectile,
            HBAC.46x30_ProjectileBox = HBAC.46x30_Projectile,
        }
    }

    craftRecipe OpenBoxOf50Projectiles {
        timedAction = OpenAmmoBox,
        time        = 15,
        category    = Packing,
        recipeGroup = OpenBox,
        canWalk     = true,
        Tags        = InHandCraft;CanBeDoneInDark,
        inputs {
            item 1 [HBAC.44_ProjectileBox;HBAC.556x45_ProjectileBox;HBAC.3030_ProjectileBox;HBAC.308_ProjectileBox;HBAC.762x39_ProjectileBox;HBAC.223_ProjectileBox;HBAC.545x39_ProjectileBox;HBAC.762x54_ProjectileBox;HBAC.9x39_ProjectileBox;HBAC.50_ProjectileBox;HBAC.4570_ProjectileBox;HBAC.12Gauge_Slug_ProjectileBox] mappers[ammoType] flags[Prop2;AllowFavorite;InheritFavorite],
        }
        outputs {
            item 50 mapper:ammoType,
        }
        itemMapper ammoType {
            HBAC.44_Projectile = HBAC.44_ProjectileBox,
            HBAC.556x45_Projectile = HBAC.556x45_ProjectileBox,
            HBAC.3030_Projectile = HBAC.3030_ProjectileBox,
            HBAC.308_Projectile = HBAC.308_ProjectileBox,
            HBAC.762x39_Projectile = HBAC.762x39_ProjectileBox,
            HBAC.223_Projectile = HBAC.223_ProjectileBox,
            HBAC.545x39_Projectile = HBAC.545x39_ProjectileBox,
            HBAC.762x54_Projectile = HBAC.762x54_ProjectileBox,
            HBAC.9x39_Projectile = HBAC.9x39_ProjectileBox,
            HBAC.50_Projectile = HBAC.50_ProjectileBox,
            HBAC.4570_Projectile = HBAC.4570_ProjectileBox,
            HBAC.12Gauge_Slug_Projectile = HBAC.12Gauge_Slug_ProjectileBox,
        }
    }

    craftRecipe place50ProjectilesInBox {
        timedAction = PlaceAmmoInBox,
        time        = 15,
        category    = Packing,
        canWalk     = true,
        Tags        = InHandCraft,
        inputs {
            item 50 [HBAC.44_Projectile;HBAC.556x45_Projectile;HBAC.3030_Projectile;HBAC.308_Projectile;HBAC.762x39_Projectile;HBAC.223_Projectile;HBAC.545x39_Projectile;HBAC.762x54_Projectile;HBAC.9x39_Projectile;HBAC.50_Projectile;HBAC.4570_Projectile;HBAC.12Gauge_Slug_Projectile] mappers[ammoType] flags[AllowFavorite;InheritFavorite;IsExclusive],
        }
        outputs {
            item 1 mapper:ammoType,
        }
        itemMapper ammoType {
            HBAC.44_ProjectileBox = HBAC.44_Projectile,
            HBAC.556x45_ProjectileBox = HBAC.556x45_Projectile,
            HBAC.3030_ProjectileBox = HBAC.3030_Projectile,
            HBAC.308_ProjectileBox = HBAC.308_Projectile,
            HBAC.762x39_ProjectileBox = HBAC.762x39_Projectile,
            HBAC.223_ProjectileBox = HBAC.223_Projectile,
            HBAC.545x39_ProjectileBox = HBAC.545x39_Projectile,
            HBAC.762x54_ProjectileBox = HBAC.762x54_Projectile,
            HBAC.9x39_ProjectileBox = HBAC.9x39_Projectile,
            HBAC.50_ProjectileBox = HBAC.50_Projectile,
            HBAC.4570_ProjectileBox = HBAC.4570_Projectile,
            HBAC.12Gauge_Slug_ProjectileBox = HBAC.12Gauge_Slug_Projectile,
        }
    }

    craftRecipe OpenBoxOfShotgunPellets {
        timedAction = OpenAmmoBox,
        time        = 15,
        category    = Packing,
        recipeGroup = OpenBox,
        canWalk     = true,
        Tags        = InHandCraft;CanBeDoneInDark,
        inputs {
            item 1 [HBAC.12Gauge_PelletsBox] mappers[ammoType] flags[Prop2;AllowFavorite;InheritFavorite],
        }
        outputs {
            item 200 mapper:ammoType,
        }
        itemMapper ammoType {
            HBAC.12Gauge_Pellet = HBAC.12Gauge_PelletsBox,
        }
    }

    craftRecipe placeShotgunPelletsInBox {
        timedAction = PlaceAmmoInBox,
        time        = 15,
        category    = Packing,
        canWalk     = true,
        Tags        = InHandCraft,
        inputs {
            item 200 [HBAC.12Gauge_Pellet] mappers[ammoType] flags[AllowFavorite;InheritFavorite;IsExclusive],
        }
        outputs {
            item 1 mapper:ammoType,
        }
        itemMapper ammoType {
            HBAC.12Gauge_PelletsBox = HBAC.12Gauge_Pellet,   
        }
    }

    craftRecipe OpenBoxOfPrimers {
        timedAction = OpenAmmoBox,
        time        = 15,
        category    = Packing,
        recipeGroup = OpenBox,
        canWalk     = true,
        Tags        = InHandCraft;CanBeDoneInDark,
        inputs {
            item 1 [HBAC.Primer_Box_Rifle;HBAC.Primer_Box_Pistol;HBAC.Primer_Box_Shotshell] mappers[primerType] flags[Prop2;AllowFavorite;InheritFavorite],
        }
        outputs {
            item 100 mapper:primerType,
        }
        itemMapper primerType {
            HBAC.Primer_Rifle = HBAC.Primer_Box_Rifle,
            HBAC.Primer_Pistol = HBAC.Primer_Box_Pistol,
            HBAC.Primer_Shotshell = HBAC.Primer_Box_Shotshell,
        }
    }

    craftRecipe placePrimersInBox {
        timedAction = PlaceAmmoInBox,
        time        = 15,
        category    = Packing,
        canWalk     = true,
        Tags        = InHandCraft,
        inputs {
            item 100 [HBAC.Primer_Rifle;HBAC.Primer_Pistol;HBAC.Primer_Shotshell] mappers[primerType] flags[AllowFavorite;InheritFavorite;IsExclusive],
        }
        outputs {
            item 1 mapper:primerType,
        }
        itemMapper primerType {
            HBAC.Primer_Box_Rifle = HBAC.Primer_Rifle,
            HBAC.Primer_Box_Pistol = HBAC.Primer_Pistol,
            HBAC.Primer_Box_Shotshell = HBAC.Primer_Shotshell,
        }
    }
}