Server.Engines.Craft.DefTinkering.CanCraft C# (CSharp) 메소드

CanCraft() 공개 메소드

public CanCraft ( Mobile from, BaseTool tool, Type itemType ) : int
from Mobile
tool Server.Items.BaseTool
itemType System.Type
리턴 int
		public override int CanCraft( Mobile from, BaseTool tool, Type itemType )
		{
			if( tool == null || tool.Deleted || tool.UsesRemaining < 0 )
				return 1044038; // You have worn out your tool!
			else if ( !BaseTool.CheckAccessible( tool, from ) )
				return 1044263; // The tool must be on your person to use.

			return 0;
		}