module Base
{
	xuiSkin default
	{
		entity ES_SES_Sunstar_Motel_Stairs
		{
			LuaWindowClass	= ISEntityWindow,
			DisplayName	= Sunstar Motel Stairs (N/S/W/E),
			Icon		= Build_StairsSunstarMotel,
		}
	}

    entity SES_Sunstar_Motel_Stairs
    {
        component UiConfig
		{
			xuiSkin         = default,
			entityStyle     = ES_SES_Sunstar_Motel_Stairs,
			uiEnabled       = false,
		}

        component SpriteConfig
        {
			OnCreate = SES_BuildRecipeCode.stairs.OnCreate,
			OnIsValid = SES_BuildRecipeCode.stairs.OnIsValid,

            face S
            {
                layer
                {
                    row = SES_location_hospitality_sunstarmotel_01_2 SES_location_hospitality_sunstarmotel_01_1 SES_location_hospitality_sunstarmotel_01_0,
                }
            }
            face W
            {
                layer
                {
                    row = SES_location_hospitality_sunstarmotel_01_10,
                    row = SES_location_hospitality_sunstarmotel_01_9,
                    row = SES_location_hospitality_sunstarmotel_01_8,
                }
            }
            face N
            {
                layer
                {
                    row = SES_location_hospitality_sunstarmotel_01_4 SES_location_hospitality_sunstarmotel_01_5 SES_location_hospitality_sunstarmotel_01_6,
                }
            }
            face E
            {
                layer
                {
                    row = SES_location_hospitality_sunstarmotel_01_12,
					row = SES_location_hospitality_sunstarmotel_01_13,
					row = SES_location_hospitality_sunstarmotel_01_14,
                }
            }
        }
        
        component CraftRecipe
        {
            timedAction   = BuildWallHammer,
            time          = 200,
            SkillRequired = Woodwork:7,
            xpAward       = Woodwork:60,
            category      = Carpentry,
            ToolTip       = Tooltip_craft_stairsDesc,
            inputs
            {
                item 1 tags[Hammer] mode:keep flags[Prop1;MayDegradeVeryLight],
                item 13 [Base.Plank],
                item 8 [Base.Nails],
            }
        }
    }
}