Ejemplo n.º 1
0
        public override int OnCraft(int quality, bool makersMark, Mobile from, Engines.Craft.CraftSystem craftSystem, Type typeRes, ITool tool, Engines.Craft.CraftItem craftItem, int resHue)
        {
            if (makersMark)
            {
                Crafter = from;
            }

            Quality = (BookQuality)(quality - 1);

            if (Quality == BookQuality.Exceptional)
            {
                MaxCharges = Utility.RandomList(80, 90, 100);
            }
            else
            {
                MaxCharges = 80;
            }

            return(quality);
        }
Ejemplo n.º 2
0
        public override int OnCraft(int quality, bool makersMark, Mobile from, Engines.Craft.CraftSystem craftSystem, Type typeRes, BaseTool tool, Engines.Craft.CraftItem craftItem, int resHue)
        {
            int result = base.OnCraft(quality, makersMark, from, craftSystem, typeRes, tool, craftItem, resHue);

            if (DefaultResource == CraftResource.RegularLeather)
            {
                Hue = 0;
            }

            return(result);
        }