module SmokersChoice
{
    imports
    {
        Base
    }

    /* Refilling a Zippo from the small can. The big can uses vanilla's
       RefillLighter (its OnCreate swapped in smokerschoice_refill_override.txt).
       The recipe takes one use of fluid and SmokersChoice_Refill.lua moves
       the rest: poured like the blowtorch refill, or vanilla's math with the
       ZippoRefillPour sandbox option off. */

    craftRecipe RefillZippoSmall
    {
        timedAction = Making,
        time = 30,
        OnCreate = SmokersChoiceRefill.refillLighter,
        Tags = InHandCraft,
        inputs
        {
            item 1 tags[base:refillablelighter] mode:keep flags[NotFull;ItemCount],
            item 1 [SmokersChoice.LighterFluidSmall] flags[NotEmpty],
        }
        outputs
        {
        }
    }
}
