module SmokersChoice
{
    imports
    {
        Base
    }

    /* Clove cigarettes and slim 120s: regular 20-packs, with menthol and
       light stats respectively plus 5 more unhappiness relief. Copies of
       the menthol and light items in smokerschoice_items.txt; pack
       unhappiness, boredom and hunger are applied in Lua
       (SmokersChoice.Extras), single hunger too (SmokersChoice.EatHunger). */

    item CigarettePackClove
    {
        OnCreate = SmokersChoiceBrands.onCreate,
        DisplayCategory = Junk,
        ItemType = base:drainable,
        Weight = 0.2,
        Icon = SC_CigarettePackClove,
        UseDelta = 0.05,
        UseWhileEquipped = false,
        StaticModel = SC_Cig_Clove_Lit,
        WorldStaticModel = SC_Pack_Clove,
        Tags = base:packed;base:lessfull;base:consumable;base:smokable,
        EatType = Cigarettes,
        OnEat = RecipeCodeOnEat.consumeNicotine,
        StressChange = -5,
        CustomEatSound = ,
        Eattime = 460,
        RequireInHandOrInventory = Base.CandleLit/Base.Matches/Base.Matchbox/Base.LighterDisposable/Base.Lighter/Base.LighterBBQ/Base.Lighter_Battery,
        CustomContextMenu = Smoke,
        FoodSicknessChange = 14,
        InverseCoughProbability = 6,
        InverseCoughProbabilitySmoker = 2,
        KeepOnDeplete = false,
    }

    item CigaretteClove
    {
        OnCreate = SmokersChoiceBrands.onCreate,
        DisplayCategory = Junk,
        ItemType = base:food,
        Weight = 0.01,
        Icon = SC_CigaretteClove,
        CantBeFrozen = true,
        CustomContextMenu = Smoke,
        EatType = Cigarettes,
        HungerChange = 0.0,
        OnEat = RecipeCodeOnEat.consumeNicotine,
        RequireInHandOrInventory = Base.CandleLit/Base.Matches/Base.Matchbox/Base.LighterDisposable/Base.Lighter/Base.LighterBBQ/Base.Lighter_Battery,
        StressChange = -5,
        UnhappyChange = -15,
        BoredomChange = -10,
        StaticModel = SC_Cig_Clove_Lit,
        WorldStaticModel = SC_Cig_Clove,
        CustomEatSound = ,
        Tags = base:useall;base:smokable,
        Eattime = 460,
        FoodSicknessChange = 14,
        InverseCoughProbability = 6,
        InverseCoughProbabilitySmoker = 2,
    }

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

    craftRecipe PackCigarettesClove
    {
        OnCreate = SmokersChoiceBrands.inherit,
        timedAction = PackCigarettes,
        time = 15,
        Tags = InHandCraft;CanBeDoneInDark,
        category = Miscellaneous,
        inputs
        {
            item 20 [SmokersChoice.CigaretteClove] flags[AllowFavorite;InheritFavorite],
        }
        outputs
        {
            item 1 SmokersChoice.CigarettePackClove,
        }
    }

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

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

        }
    }

    item CigarettePackSlim
    {
        OnCreate = SmokersChoiceBrands.onCreate,
        DisplayCategory = Junk,
        ItemType = base:drainable,
        Weight = 0.2,
        Icon = SC_CigarettePackSlim,
        UseDelta = 0.05,
        UseWhileEquipped = false,
        StaticModel = SC_Cig_Slim_Lit,
        WorldStaticModel = SC_PackSlim_Slim,
        Tags = base:packed;base:lessfull;base:consumable;base:smokable,
        EatType = Cigarettes,
        OnEat = RecipeCodeOnEat.consumeNicotine,
        StressChange = -4,
        CustomEatSound = ,
        Eattime = 460,
        RequireInHandOrInventory = Base.CandleLit/Base.Matches/Base.Matchbox/Base.LighterDisposable/Base.Lighter/Base.LighterBBQ/Base.Lighter_Battery,
        CustomContextMenu = Smoke,
        FoodSicknessChange = 14,
        InverseCoughProbability = 8,
        InverseCoughProbabilitySmoker = 4,
        KeepOnDeplete = false,
    }

    item CigaretteSlim
    {
        OnCreate = SmokersChoiceBrands.onCreate,
        DisplayCategory = Junk,
        ItemType = base:food,
        Weight = 0.01,
        Icon = SC_CigaretteSlim,
        CantBeFrozen = true,
        CustomContextMenu = Smoke,
        EatType = Cigarettes,
        HungerChange = 0.0,
        OnEat = RecipeCodeOnEat.consumeNicotine,
        RequireInHandOrInventory = Base.CandleLit/Base.Matches/Base.Matchbox/Base.LighterDisposable/Base.Lighter/Base.LighterBBQ/Base.Lighter_Battery,
        StressChange = -4,
        UnhappyChange = -5,
        StaticModel = SC_Cig_Slim_Lit,
        WorldStaticModel = SC_Cig_Slim,
        CustomEatSound = ,
        Tags = base:useall;base:smokable,
        Eattime = 460,
        FoodSicknessChange = 14,
        InverseCoughProbability = 8,
        InverseCoughProbabilitySmoker = 4,
    }

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

    craftRecipe PackCigarettesSlim
    {
        OnCreate = SmokersChoiceBrands.inherit,
        timedAction = PackCigarettes,
        time = 15,
        Tags = InHandCraft;CanBeDoneInDark,
        category = Miscellaneous,
        inputs
        {
            item 20 [SmokersChoice.CigaretteSlim] flags[AllowFavorite;InheritFavorite],
        }
        outputs
        {
            item 1 SmokersChoice.CigarettePackSlim,
        }
    }

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

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

        }
    }
}
