module Base
{
    entity WoodFenceGate
    {
        component UiConfig
        {
            xuiSkin = default,
            entityStyle = ES_Wood_FenceGate,
            uiEnabled = false,
        }
        component SpriteConfig
        {
            skillBaseHealth = 300,
            dontNeedFrame = true,
            BreakSound = BreakDoor,
            face W
            {
                layer
                {
                    row = fixtures_doors_fences_01_4,
                }
            }
            face N
            {
                layer
                {
                    row = fixtures_doors_fences_01_5,
                }
            }
            face W_OPEN
            {
                layer
                {
                    row = fixtures_doors_fences_01_6,
                }
            }
            face N_OPEN
            {
                layer
                {
                    row = fixtures_doors_fences_01_7,
                }
            }
        }
        component CraftRecipe
        {
            timedAction = BuildWallHammer,
            time = 200,
            category = Fences,
            Tags = Carpentry,
            SkillRequired = Woodwork:3,
            xpAward = Woodwork:30,
            Tooltip = Tooltip_craft_woodFenceGateDesc,
            inputs
            {
                item 1 tags[base:hammer] mode:keep flags[Prop1;MayDegradeVeryLight],
                item 4 [Base.Plank],
                item 4 [Base.Nails],
                item 2 [Base.Hinge],
                item 1 [Base.Doorknob],
            }
        }
    }
}
