public int OnCraft(int quality, bool makersMark, Mobile from, CraftSystem craftSystem, Type typeRes, BaseTool tool, CraftItem craftItem, int resHue) { Quality = (JuiceQuality)quality; if (makersMark) { Crafter = from; } Item[] items = from.Backpack.FindItemsByType(typeof(FarmLabelMaker)); if (items.Length != 0) { foreach (FarmLabelMaker lm in items) { if (lm.FarmName != null) { this.Name = lm.FarmName; break; } } } Type resourceType = typeRes; if (resourceType == null) { resourceType = craftItem.Resources.GetAt(0).ItemType; } Variety = JuicingResources.GetFromType(resourceType); CraftContext context = craftSystem.GetContext(from); Hue = 0; return(quality); }
public int OnCraft(int quality, bool makersMark, Mobile from, CraftSystem craftSystem, Type typeRes, BaseTool tool, CraftItem craftItem, int resHue) { Held = 75; Quality = (JuiceQuality)quality; if (Quality == JuiceQuality.Exceptional) { Crafter = from; } Item[] items = from.Backpack.FindItemsByType(typeof(FarmLabelMaker)); if (items.Length != 0) { foreach (FarmLabelMaker lm in items) { if (lm.FarmName != null) { this.Name = lm.FarmName; break; } } } Type resourceType = typeRes; if (resourceType == null) { resourceType = craftItem.Resources.GetAt(0).ItemType; } Variety = JuicingResources.GetFromType(resourceType); CraftContext context = craftSystem.GetContext(from); Hue = 0; BottleDuration = 1.0; AllowBottling = false; m_Start = DateTime.UtcNow; return(quality); }