示例#1
0
        /// <summary>
        /// Copies the Item
        /// </summary>
        /// <returns>A copy of the item</returns>
        public override Item Copy()
        {
            Mag item = new Mag();

            copyAttributes(item);
            return(item);
        }
示例#2
0
        /// <summary>
        /// Copies all attributes of the Item into the passed in Item
        /// </summary>
        /// <param name="item">The Item to copy to</param>
        protected override void copyAttributes(Item item)
        {
            if (!(item is Mag))
            {
                throw new Exception("Item passed into copyAttributes does not match type!");
            }

            base.copyAttributes(item);
            Mag mag = item as Mag;

            mag.DEF                = DEF;
            mag.POW                = POW;
            mag.DEX                = DEX;
            mag.MIND               = MIND;
            mag.FirstPhotonBlast   = FirstPhotonBlast;
            mag.SecondPhotonBlast  = SecondPhotonBlast;
            mag.ThirdPhotonBlast   = ThirdPhotonBlast;
            mag.TriggerPercentage  = TriggerPercentage;
            mag.PhotonBlastTrigger = PhotonBlastTrigger;
            mag.HPTrigger          = HPTrigger;
            mag.BossTrigger        = BossTrigger;
        }