Example #1
0
        public void Set(string attribute, float value)
        {
            if (attributes.ContainsKey(attribute) == true)
            {
                attributes[attribute].floatValue = value;
            }
            else
            {
                ItemAttribute attrib = new ItemAttribute();

                attrib.attributeID = ItemDB.GetAttributeIDForName(attribute);
                attrib.floatValue  = value;

                attributes.Add(attribute, attrib);
            }
        }