public static void MutateLoot(int maxInt, MagicWand wand)
        {
            double dr = Utility.RandomDouble() * 100.0;

            if (dr < 2 && maxInt >= 80)
            {
                wand.SpellEffect = SpellEffect.ManaDrain;
            }
            else if (dr < 8 && maxInt >= 80)
            {
                wand.SpellEffect = SpellEffect.Lightning;
            }
            else if (dr < 13 && maxInt >= 60)
            {
                wand.SpellEffect = SpellEffect.Fireball;
            }
            else if (dr < 18 && maxInt >= 60)
            {
                wand.SpellEffect = SpellEffect.GHeal;
            }
            else if (dr < 28 && maxInt >= 40)
            {
                wand.SpellEffect = SpellEffect.Harm;
            }
            else if (dr < 38 && maxInt >= 40)
            {
                wand.SpellEffect = SpellEffect.MagicArrow;
            }
            else if (dr < 48 && maxInt >= 20)
            {
                wand.SpellEffect = SpellEffect.Feeblemind;
            }
            else if (dr < 58 && maxInt >= 20)
            {
                wand.SpellEffect = SpellEffect.Clumsy;
            }
            else if (dr < 68 && maxInt >= 20)
            {
                wand.SpellEffect = SpellEffect.MiniHeal;
            }
            else
            {
                wand.SpellEffect = SpellEffect.ItemID;
            }

            if (wand.SpellEffect != SpellEffect.None)
            {
                wand.SpellCharges = SpellCastEffect.GetChargesFor(wand.SpellEffect);
            }
        }
        public static void MutateLoot(int maxInt, BaseWeapon weapon)
        {
            double dr = Utility.RandomDouble() * 100.0;

            if (dr < 2 && maxInt >= 80)
            {
                weapon.SpellEffect = SpellEffect.Lightning;
            }
            else if (dr < 8 && maxInt >= 80)
            {
                weapon.SpellEffect = SpellEffect.ManaDrain;
            }
            else if (dr < 13 && maxInt >= 60)
            {
                weapon.SpellEffect = SpellEffect.Curse;
            }
            else if (dr < 18 && maxInt >= 60)
            {
                weapon.SpellEffect = SpellEffect.Fireball;
            }
            else if (dr < 28 && maxInt >= 40)
            {
                weapon.SpellEffect = SpellEffect.Paralyze;
            }
            else if (dr < 38 && maxInt >= 40)
            {
                weapon.SpellEffect = SpellEffect.Harm;
            }
            else if (dr < 48 && maxInt >= 20)
            {
                weapon.SpellEffect = SpellEffect.Weaken;
            }
            else if (dr < 58 && maxInt >= 20)
            {
                weapon.SpellEffect = SpellEffect.MagicArrow;
            }
            else if (dr < 68)
            {
                weapon.SpellEffect = SpellEffect.Feeblemind;
            }
            else //if ( dr < 78 )
            {
                weapon.SpellEffect = SpellEffect.Clumsy;
            }

            if (weapon.SpellEffect != SpellEffect.None)
            {
                weapon.SpellCharges = SpellCastEffect.GetChargesFor(weapon.SpellEffect);
            }
        }
        public static void MutateLoot(int maxInt, BaseClothing clothes)
        {
            double dr = Utility.RandomDouble() * 100.0;

            if (dr < 2 && maxInt >= 90)
            {
                clothes.SpellEffect = SpellEffect.Reflect;
            }
            else if (dr < 3 && maxInt >= 90)
            {
                clothes.SpellEffect = SpellEffect.Invis;
            }
            else if (dr < 8 && maxInt >= 80)
            {
                clothes.SpellEffect = SpellEffect.Curse;
            }
            else if (dr < 13 && maxInt >= 80)
            {
                clothes.SpellEffect = SpellEffect.Bless;
            }
            else if (dr < 28 && maxInt >= 60)
            {
                clothes.SpellEffect = SpellEffect.Weaken;
            }
            else if (dr < 38 && maxInt >= 60)
            {
                clothes.SpellEffect = SpellEffect.Clumsy;
            }
            else if (dr < 48 && maxInt >= 60)
            {
                clothes.SpellEffect = SpellEffect.Feeblemind;
            }
            else if (dr < 58 && maxInt >= 20)
            {
                clothes.SpellEffect = SpellEffect.Strength;
            }
            else if (dr < 68 && maxInt >= 20)
            {
                clothes.SpellEffect = SpellEffect.Cunning;
            }
            else if (dr < 78 && maxInt >= 20)
            {
                clothes.SpellEffect = SpellEffect.Agility;
            }
            else if (dr < 88)
            {
                clothes.SpellEffect = SpellEffect.Protection;
            }
            else
            {
                clothes.SpellEffect = SpellEffect.NightSight;
            }

            if (clothes is GoldRing && dr < 2 && maxInt >= 99)
            {
                if (Utility.RandomBool())
                {
                    clothes.SpellEffect = SpellEffect.Teleportation;
                }
                else
                {
                    clothes.SpellEffect = SpellEffect.Invis;
                }
            }

            if (clothes.SpellEffect != SpellEffect.None)
            {
                clothes.SpellCharges = SpellCastEffect.GetChargesFor(clothes.SpellEffect);
            }
        }