module Base
{
	xuiSkin default
	{
		entity ES_WaterPipe
		{
			LuaWindowClass	= ISEntityWindow,
			DisplayName	= Water Pipe,
			Icon		= build_pipe,
		}
	}

    entity WaterPipe
    {
        component UiConfig
        {
            xuiSkin         = default,
            entityStyle     = ES_WaterPipe,
            uiEnabled       = false,
        }

        component SpriteConfig
        {
            isThumpable     = false,
		    OnIsValid       = BuildRecipeCode.waterPipe.OnIsValid,
            OnCreate        = BuildRecipeCode.waterPipe.OnCreate,
			health          = 100,
			
            face W
            {
                layer
                {
                    row = waterpipes_01_0,
                }
            }
            face N
            {
                layer
                {
                    row = waterpipes_01_1,
                }
            }
        }
		
		component CraftRecipe
        {
            timedAction   = BuildPipe,
            time          = 200,
            needToBeLearn = false,
            category      = Plumbing,
            SkillRequired = MetalWelding:2,
            xpAward       = MetalWelding:5,
            ToolTip       = Tooltip_WP_craft_pipeDesc,
            inputs
            {
                item 1 tags[PipeWrench] mode:keep flags[MayDegradeLight],
                item 1 [Base.MetalPipe],
                item 5 [Base.Screws],
            }
        }
    }
}