ITLongwell / mondains-legacy

Automatically exported from code.google.com/p/mondains-legacy
0 stars 0 forks source link

Wooden Shield Properties, regular tool crafting #99

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Make a heartwood shield
2.Missing properties on craft??Had energy 1 durability 20, Bloodwood has
fire 3, energy 1, durability 20.

What is the expected output? What do you see instead?
Seems the shields had the properties on some of the woods before and not
now, I could VERY easily be incorrect on this :( And now it is working
correctly.

What version of the product are you using?
RunUO352ML53

Please provide any additional information below.
I was looking at the script in BaseShield and saw this:
#region Mondain's Legacy ICraftable
        public override int OnCraft( int quality, bool makersMark, Mobile from,
CraftSystem craftSystem, Type typeRes, BaseTool tool, CraftItem craftItem,
int resHue )
        {
            Quality = (ArmorQuality)quality;

            if ( makersMark )
                Crafter = from;

            if ( !craftItem.ForceNonExceptional )
            {
                Type resourceType = typeRes;

                if ( resourceType == null )
                    resourceType = craftItem.Ressources.GetAt( 0 ).ItemType;

                Resource = CraftResources.GetFromType( resourceType );
            }

            PlayerConstructed = true;

            CraftContext context = craftSystem.GetContext( from );

            if ( context != null && context.DoNotColor )
                Hue = 0;            

            if ( Core.AOS && tool is BaseRunicTool )
                ((BaseRunicTool)tool).ApplyAttributesTo( this );

            return quality;
        }
        #endregion

The one work there is Ressources with 2 SS's. In the line :
craftItem.Ressources.GetAt( 0 ).ItemType;

Thanks,

Koluch

Original issue reported on code.google.com by ShazzySh...@gmail.com on 6 Aug 2009 at 1:49

GoogleCodeExporter commented 8 years ago

Original comment by gje...@gmail.com on 12 Jun 2012 at 5:22