public void CreateItem(Mobile from, Type type, Type typeRes, BaseTool tool, CraftItem realCraftItem) { // Verify if the type is in the list of the craftable item if (CraftItems.SearchFor(type) != null) { realCraftItem.Craft(from, this, typeRes, tool); } }
public virtual CraftItem FindCraft(Type type, bool subClasses) { if (CraftItems != null) { return(subClasses ? CraftItems.SearchForSubclass(type) : CraftItems.SearchFor(type)); } return(null); }
public void CreateItem(Mobile from, Type type, Type typeRes, ITool tool, CraftItem realCraftItem) { CraftItem craftItem = CraftItems.SearchFor(type); if (craftItem != null) { realCraftItem.Craft(from, this, typeRes, tool); } }
public void CreateItem(Mobile from, Type type, Type typeRes, ITool tool, CraftItem realCraftItem) { // Verify if the type is in the list of the craftable item CraftItem craftItem = CraftItems.SearchFor(type); if (craftItem != null) { // The item is in the list, try to create it // Test code: items like sextant parts can be crafted either directly from ingots, or from different parts realCraftItem.Craft(from, this, typeRes, tool); //craftItem.Craft( from, this, typeRes, tool ); } }