예제 #1
0
        public override void OnAdded(object parent)
        {
            if (parent is Mobile)
            {
                Mobile mob = (Mobile)parent;

                BaseRanged ranged = mob.Weapon as BaseRanged;

                if (ranged != null)
                {
                    ranged.InvalidateProperties();
                }

                #region Set Armor
                if (IsSetItem)
                {
                    m_SetEquipped = SetHelper.FullSetPresent(mob, SetID, Pieces);
                }

                if (m_SetEquipped)
                {
                    m_LastEquipped = true;

                    SetHelper.AddSetBonus(mob, SetID);
                }
                #endregion
            }
        }