Server.Items.TreasureMap.HasDiggingTool C# (CSharp) Méthode

HasDiggingTool() public static méthode

public static HasDiggingTool ( Server.Mobile m ) : bool
m Server.Mobile
Résultat bool
		public static bool HasDiggingTool( Mobile m )
		{
			if ( m.Backpack == null )
				return false;

			List<BaseHarvestTool> items = m.Backpack.FindItemsByType<BaseHarvestTool>();

			foreach ( BaseHarvestTool tool in items )
			{
				if ( tool.HarvestSystem == Engines.Harvest.Mining.System )
					return true;
			}

			return false;
		}