public static void ApplyAttribute(Mobile from, BookOfSpellCrafts book, int craftId, BaseHat hat, AosArmorAttribute attribute, int minimum, int maximum) { CheckItem(from, hat, (hat.ClothingAttributes[attribute] == 0)); UseMagicJewels(from, book, hat, SpellCraftConfig.MagicJewelRequirements[craftId]); int scalar = ComputeSkillScalar(from); SpellCraft.ApplyAttribute(hat.ClothingAttributes, SpellCraftConfig.MinimumIntensity * scalar, SpellCraftConfig.MaximumIntensity * scalar, attribute, minimum, maximum); MarkHat(from, hat); }
public SpellCraftException( SpellCraft.MsgNums msgId ) : base("") { m_MessageId = (int)msgId; }