コード例 #1
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadEncodedInt();

            m_Organ = reader.ReadItem <PlagueBeastOrgan>();
        }
コード例 #2
0
        public override void Deserialize( GenericReader reader )
        {
            base.Deserialize( reader );

            int version = reader.ReadEncodedInt();

            m_Organ = reader.ReadItem<PlagueBeastOrgan>();
        }
コード例 #3
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);
        }
コード例 #4
0
        public override bool OnDragLift(Mobile from)
        {
            if (this.IsAccessibleTo(from))
            {
                if (this.m_Organ != null && this.m_Organ.OnLifted(from, this))
                {
                    from.SendLocalizedMessage(this.IsGland ? 1071895 : 1071914, null, 0x3B2); // * You rip the organ out of the plague beast's flesh *

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

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

                return true;
            }

            return false;
        }