module SmokersChoice
{
    imports
    {
        Base
    }

    /* All copied from vanilla recipes_packing.txt. */

    craftRecipe UnpackCigaretteCartonLight
    {
        OnCreate = SmokersChoiceBrands.inherit,
        timedAction = UnPackBox_Small,
        time = 5,
        Tags = InHandCraft;Packing;CanBeDoneInDark,
        category = Packing,
        inputs
        {
            item 1 [SmokersChoice.CigaretteCartonLight] flags[AllowFavorite;InheritFavorite],
        }
        outputs
        {
            item 10 SmokersChoice.CigarettePackLight,
        }
    }

    craftRecipe PackCigaretteCartonLight
    {
        OnCreate = SmokersChoiceBrands.inherit,
        timedAction = PackingBox_Small,
        time = 5,
        OnTest = RecipeCodeOnTest.genericPacking,
        Tags = InHandCraft;Packing,
        category = Packing,
        inputs
        {
            item 10 [SmokersChoice.CigarettePackLight] flags[IsFull;AllowFavorite;InheritFavorite;ItemCount],
        }
        outputs
        {
            item 1 SmokersChoice.CigaretteCartonLight,
        }
    }

    craftRecipe UnpackCigarettesLight
    {
        OnCreate = SmokersChoiceBrands.inherit,
        timedAction = UnpackCigarettes,
        time = 25,
        Tags = InHandCraft;CanBeDoneInDark,
        category = Miscellaneous,
        inputs
        {
            item 1 [SmokersChoice.CigarettePackLight] mode:destroy flags[IsFull;AllowFavorite;InheritFavorite],
        }
        outputs
        {
            item 20 SmokersChoice.CigaretteLight,
        }
    }

    craftRecipe PackCigarettesLight
    {
        OnCreate = SmokersChoiceBrands.inherit,
        timedAction = PackCigarettes,
        time = 25,
        Tags = InHandCraft;CanBeDoneInDark,
        category = Miscellaneous,
        inputs
        {
            item 20 [SmokersChoice.CigaretteLight] flags[AllowFavorite;InheritFavorite],
        }
        outputs
        {
            item 1 SmokersChoice.CigarettePackLight,
        }
    }

    craftRecipe TakeACigaretteLight
    {
        OnCreate = SmokersChoiceBrands.inherit,
        timedAction = TakeCigarette,
        time = 15,
        Tags = InHandCraft;CanBeDoneInDark,
        category = Miscellaneous,
        inputs
        {
            item 1 [SmokersChoice.CigarettePackLight] flags[AllowFavorite;InheritFavorite],
        }
        outputs
        {
            item 1 SmokersChoice.CigaretteLight,
        }
    }

    craftRecipe AddACigaretteLight
    {
        timedAction = AddCigarette,
        time = 25,
        OnCreate = SmokersChoiceBrands.addToPack,
        OnTest = RecipeCodeOnTest.canAddToPack,
        Tags = InHandCraft;CanBeDoneInDark,
        category = Miscellaneous,
        inputs
        {
            item 1 [SmokersChoice.CigaretteLight] flags[AllowFavorite;InheritFavorite],
            item 1 [SmokersChoice.CigarettePackLight] mode:keep flags[AllowFavorite;InheritFavorite],
        }
        outputs
        {

        }
    }

    craftRecipe UnpackCigaretteCartonMenthol
    {
        OnCreate = SmokersChoiceBrands.inherit,
        timedAction = UnPackBox_Small,
        time = 5,
        Tags = InHandCraft;Packing;CanBeDoneInDark,
        category = Packing,
        inputs
        {
            item 1 [SmokersChoice.CigaretteCartonMenthol] flags[AllowFavorite;InheritFavorite],
        }
        outputs
        {
            item 10 SmokersChoice.CigarettePackMenthol,
        }
    }

    craftRecipe PackCigaretteCartonMenthol
    {
        OnCreate = SmokersChoiceBrands.inherit,
        timedAction = PackingBox_Small,
        time = 5,
        OnTest = RecipeCodeOnTest.genericPacking,
        Tags = InHandCraft;Packing,
        category = Packing,
        inputs
        {
            item 10 [SmokersChoice.CigarettePackMenthol] flags[IsFull;AllowFavorite;InheritFavorite;ItemCount],
        }
        outputs
        {
            item 1 SmokersChoice.CigaretteCartonMenthol,
        }
    }

    craftRecipe UnpackCigarettesMenthol
    {
        OnCreate = SmokersChoiceBrands.inherit,
        timedAction = UnpackCigarettes,
        time = 25,
        Tags = InHandCraft;CanBeDoneInDark,
        category = Miscellaneous,
        inputs
        {
            item 1 [SmokersChoice.CigarettePackMenthol] mode:destroy flags[IsFull;AllowFavorite;InheritFavorite],
        }
        outputs
        {
            item 20 SmokersChoice.CigaretteMenthol,
        }
    }

    craftRecipe PackCigarettesMenthol
    {
        OnCreate = SmokersChoiceBrands.inherit,
        timedAction = PackCigarettes,
        time = 25,
        Tags = InHandCraft;CanBeDoneInDark,
        category = Miscellaneous,
        inputs
        {
            item 20 [SmokersChoice.CigaretteMenthol] flags[AllowFavorite;InheritFavorite],
        }
        outputs
        {
            item 1 SmokersChoice.CigarettePackMenthol,
        }
    }

    craftRecipe TakeACigaretteMenthol
    {
        OnCreate = SmokersChoiceBrands.inherit,
        timedAction = TakeCigarette,
        time = 15,
        Tags = InHandCraft;CanBeDoneInDark,
        category = Miscellaneous,
        inputs
        {
            item 1 [SmokersChoice.CigarettePackMenthol] flags[AllowFavorite;InheritFavorite],
        }
        outputs
        {
            item 1 SmokersChoice.CigaretteMenthol,
        }
    }

    craftRecipe AddACigaretteMenthol
    {
        timedAction = AddCigarette,
        time = 25,
        OnCreate = SmokersChoiceBrands.addToPack,
        OnTest = RecipeCodeOnTest.canAddToPack,
        Tags = InHandCraft;CanBeDoneInDark,
        category = Miscellaneous,
        inputs
        {
            item 1 [SmokersChoice.CigaretteMenthol] flags[AllowFavorite;InheritFavorite],
            item 1 [SmokersChoice.CigarettePackMenthol] mode:keep flags[AllowFavorite;InheritFavorite],
        }
        outputs
        {

        }
    }

    craftRecipe UnpackCigaretteCartonCheap
    {
        OnCreate = SmokersChoiceBrands.inherit,
        timedAction = UnPackBox_Small,
        time = 5,
        Tags = InHandCraft;Packing;CanBeDoneInDark,
        category = Packing,
        inputs
        {
            item 1 [SmokersChoice.CigaretteCartonCheap] flags[AllowFavorite;InheritFavorite],
        }
        outputs
        {
            item 10 SmokersChoice.CigarettePackCheap,
        }
    }

    craftRecipe PackCigaretteCartonCheap
    {
        OnCreate = SmokersChoiceBrands.inherit,
        timedAction = PackingBox_Small,
        time = 5,
        OnTest = RecipeCodeOnTest.genericPacking,
        Tags = InHandCraft;Packing,
        category = Packing,
        inputs
        {
            item 10 [SmokersChoice.CigarettePackCheap] flags[IsFull;AllowFavorite;InheritFavorite;ItemCount],
        }
        outputs
        {
            item 1 SmokersChoice.CigaretteCartonCheap,
        }
    }

    craftRecipe UnpackCigarettesCheap
    {
        OnCreate = SmokersChoiceBrands.inherit,
        timedAction = UnpackCigarettes,
        time = 25,
        Tags = InHandCraft;CanBeDoneInDark,
        category = Miscellaneous,
        inputs
        {
            item 1 [SmokersChoice.CigarettePackCheap] mode:destroy flags[IsFull;AllowFavorite;InheritFavorite],
        }
        outputs
        {
            item 20 SmokersChoice.CigaretteCheap,
        }
    }

    craftRecipe PackCigarettesCheap
    {
        OnCreate = SmokersChoiceBrands.inherit,
        timedAction = PackCigarettes,
        time = 25,
        Tags = InHandCraft;CanBeDoneInDark,
        category = Miscellaneous,
        inputs
        {
            item 20 [SmokersChoice.CigaretteCheap] flags[AllowFavorite;InheritFavorite],
        }
        outputs
        {
            item 1 SmokersChoice.CigarettePackCheap,
        }
    }

    craftRecipe TakeACigaretteCheap
    {
        OnCreate = SmokersChoiceBrands.inherit,
        timedAction = TakeCigarette,
        time = 15,
        Tags = InHandCraft;CanBeDoneInDark,
        category = Miscellaneous,
        inputs
        {
            item 1 [SmokersChoice.CigarettePackCheap] flags[AllowFavorite;InheritFavorite],
        }
        outputs
        {
            item 1 SmokersChoice.CigaretteCheap,
        }
    }

    craftRecipe AddACigaretteCheap
    {
        timedAction = AddCigarette,
        time = 25,
        OnCreate = SmokersChoiceBrands.addToPack,
        OnTest = RecipeCodeOnTest.canAddToPack,
        Tags = InHandCraft;CanBeDoneInDark,
        category = Miscellaneous,
        inputs
        {
            item 1 [SmokersChoice.CigaretteCheap] flags[AllowFavorite;InheritFavorite],
            item 1 [SmokersChoice.CigarettePackCheap] mode:keep flags[AllowFavorite;InheritFavorite],
        }
        outputs
        {

        }
    }

    craftRecipe UnpackCigarilloPack
    {
        OnCreate = SmokersChoiceBrands.inherit,
        timedAction = UnpackCigarettes,
        time = 15,
        Tags = InHandCraft;CanBeDoneInDark,
        category = Miscellaneous,
        inputs
        {
            item 1 [SmokersChoice.CigarilloPack] mode:destroy flags[IsFull;AllowFavorite;InheritFavorite],
        }
        outputs
        {
            item 2 Base.Cigarillo,
        }
    }

    craftRecipe PackCigarilloPack
    {
        OnCreate = SmokersChoiceBrands.inherit,
        timedAction = PackCigarettes,
        time = 15,
        Tags = InHandCraft;CanBeDoneInDark,
        category = Miscellaneous,
        inputs
        {
            item 2 [Base.Cigarillo] flags[AllowFavorite;InheritFavorite],
        }
        outputs
        {
            item 1 SmokersChoice.CigarilloPack,
        }
    }

    craftRecipe TakeACigarillo
    {
        OnCreate = SmokersChoiceBrands.inherit,
        timedAction = TakeCigarette,
        time = 15,
        Tags = InHandCraft;CanBeDoneInDark,
        category = Miscellaneous,
        inputs
        {
            item 1 [SmokersChoice.CigarilloPack] flags[AllowFavorite;InheritFavorite],
        }
        outputs
        {
            item 1 Base.Cigarillo,
        }
    }

    craftRecipe AddACigarillo
    {
        timedAction = AddCigarette,
        time = 25,
        OnCreate = SmokersChoiceBrands.addToPack,
        OnTest = RecipeCodeOnTest.canAddToPack,
        Tags = InHandCraft;CanBeDoneInDark,
        category = Miscellaneous,
        inputs
        {
            item 1 [Base.Cigarillo] flags[AllowFavorite;InheritFavorite],
            item 1 [SmokersChoice.CigarilloPack] mode:keep flags[AllowFavorite;InheritFavorite],
        }
        outputs
        {

        }
    }

    craftRecipe UnpackCigarilloCarton
    {
        OnCreate = SmokersChoiceBrands.inherit,
        timedAction = UnPackBox_Small,
        time = 5,
        Tags = InHandCraft;Packing;CanBeDoneInDark,
        category = Packing,
        inputs
        {
            item 1 [SmokersChoice.CigarilloCarton] flags[AllowFavorite;InheritFavorite],
        }
        outputs
        {
            item 10 SmokersChoice.CigarilloPack,
        }
    }

    craftRecipe PackCigarilloCarton
    {
        OnCreate = SmokersChoiceBrands.inherit,
        timedAction = PackingBox_Small,
        time = 5,
        OnTest = RecipeCodeOnTest.genericPacking,
        Tags = InHandCraft;Packing,
        category = Packing,
        inputs
        {
            item 10 [SmokersChoice.CigarilloPack] flags[IsFull;AllowFavorite;InheritFavorite;ItemCount],
        }
        outputs
        {
            item 1 SmokersChoice.CigarilloCarton,
        }
    }

    /* Nicotine patches: same pattern as the heat sticks
       (smokerschoice_vape.txt), 10 to a box, no brands. */
    craftRecipe UnpackNicotinePatches
    {
        timedAction = UnpackCigarettes,
        time = 25,
        Tags = InHandCraft;CanBeDoneInDark,
        category = Miscellaneous,
        inputs
        {
            item 1 [SmokersChoice.NicotinePatches] mode:destroy flags[IsFull;AllowFavorite;InheritFavorite],
        }
        outputs
        {
            item 5 SmokersChoice.NicotinePatch,
        }
    }

    craftRecipe PackNicotinePatches
    {
        timedAction = PackCigarettes,
        time = 25,
        Tags = InHandCraft;CanBeDoneInDark,
        category = Miscellaneous,
        inputs
        {
            item 5 [SmokersChoice.NicotinePatch] flags[IsFull;AllowFavorite;InheritFavorite],
        }
        outputs
        {
            item 1 SmokersChoice.NicotinePatches,
        }
    }

    craftRecipe TakeANicotinePatch
    {
        timedAction = TakeCigarette,
        time = 15,
        Tags = InHandCraft;CanBeDoneInDark,
        category = Miscellaneous,
        inputs
        {
            item 1 [SmokersChoice.NicotinePatches] flags[AllowFavorite;InheritFavorite],
        }
        outputs
        {
            item 1 SmokersChoice.NicotinePatch,
        }
    }

    craftRecipe AddANicotinePatch
    {
        timedAction = AddCigarette,
        time = 25,
        OnCreate = RecipeCodeOnCreate.addToPack,
        OnTest = SmokersChoice.canAddToPack,
        Tags = InHandCraft;CanBeDoneInDark,
        category = Miscellaneous,
        inputs
        {
            item 1 [SmokersChoice.NicotinePatch] flags[IsFull;AllowFavorite;InheritFavorite],
            item 1 [SmokersChoice.NicotinePatches] mode:keep flags[AllowFavorite;InheritFavorite],
        }
        outputs
        {
        }
    }

    /* Nicotine gum: same pattern as the heat sticks, 5 to a box, with
       brands. */
    craftRecipe UnpackNicotineGum
    {
        OnCreate = SmokersChoiceBrands.inherit,
        timedAction = UnpackCigarettes,
        time = 25,
        Tags = InHandCraft;CanBeDoneInDark,
        category = Miscellaneous,
        inputs
        {
            item 1 [SmokersChoice.NicotineGum] mode:destroy flags[IsFull;AllowFavorite;InheritFavorite],
        }
        outputs
        {
            item 5 SmokersChoice.NicotineGumPiece,
        }
    }

    craftRecipe PackNicotineGum
    {
        OnCreate = SmokersChoiceBrands.inherit,
        timedAction = PackCigarettes,
        time = 25,
        Tags = InHandCraft;CanBeDoneInDark,
        category = Miscellaneous,
        inputs
        {
            item 5 [SmokersChoice.NicotineGumPiece] flags[IsFull;AllowFavorite;InheritFavorite],
        }
        outputs
        {
            item 1 SmokersChoice.NicotineGum,
        }
    }

    craftRecipe TakeANicotineGum
    {
        OnCreate = SmokersChoiceBrands.inherit,
        timedAction = TakeCigarette,
        time = 15,
        Tags = InHandCraft;CanBeDoneInDark,
        category = Miscellaneous,
        inputs
        {
            item 1 [SmokersChoice.NicotineGum] flags[AllowFavorite;InheritFavorite],
        }
        outputs
        {
            item 1 SmokersChoice.NicotineGumPiece,
        }
    }

    craftRecipe AddANicotineGum
    {
        timedAction = AddCigarette,
        time = 25,
        OnCreate = SmokersChoiceBrands.addToPack,
        OnTest = SmokersChoice.canAddToPack,
        Tags = InHandCraft;CanBeDoneInDark,
        category = Miscellaneous,
        inputs
        {
            item 1 [SmokersChoice.NicotineGumPiece] flags[IsFull;AllowFavorite;InheritFavorite],
            item 1 [SmokersChoice.NicotineGum] mode:keep flags[AllowFavorite;InheritFavorite],
        }
        outputs
        {
        }
    }
}
