Example #1
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadEncodedInt();

            m_Organ = reader.ReadItem <PlagueBeastOrgan>();
        }
Example #2
0
        public override bool OnDragLift(Mobile from)
        {
            if (IsAccessibleTo(from))
            {
                if (m_Organ != null && m_Organ.OnLifted(from, this))
                {
                    from.SendLocalizedMessage(IsGland ? 1071895 : 1071914, null, 0x3B2); // * You rip the organ out of the plague beast's flesh *

                    if (m_Organ.Components.Contains(this))
                    {
                        m_Organ.Components.Remove(this);
                    }

                    m_Organ = null;
                    from.PlaySound(0x1CA);
                }

                return(true);
            }

            return(false);
        }