public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);
            int version = reader.ReadInt( );

            m_Parent = ( DamageableItem2 )reader.ReadItem( );
            //	Frozen = ( bool )reader.ReadBool( );
            //	Paralyzed = ( bool )reader.ReadBool( );
            //	CantWalk = ( bool )reader.ReadBool( );
            DamageMin = ( int )reader.ReadInt( );
            DamageMax = ( int )reader.ReadInt( );
            BodyValue = ( int )reader.ReadInt( );
        }
        public IDamageableItem2(DamageableItem2 parent)
            : base(AIType.AI_Melee, FightMode.Aggressor, 10, 1, 0.2, 0.4)
        {
            if (parent != null && !parent.Deleted)
            {
                m_Parent = parent;
            }

            //Nullify the name, so it doeesn't pop up when we come into range
            Name = null;

            Body      = 803;        //Mustache is barely visible!
            BodyValue = 803;        //Mustache is barely visible!
            //Body = 1; //Ogre for testing
            //BodyValue = 1; //Ogre for testing
            Hue          = 0;
            BaseSoundID  = 0;            //QUIET!!!
            Fame         = 0;
            Karma        = 0;
            ControlSlots = 0;
            Tamable      = false;

            //Frozen = true;
            //Paralyzed = true;
            //CantWalk = true;

            DamageMin = 10;
            DamageMax = 25;

            SetInt(96, 120);
            SetDex(91, 115);
            SetStr(25, 30);

            SetDamageType(ResistanceType.Physical, 30);
            SetDamageType(ResistanceType.Fire, 70);

            SetResistance(ResistanceType.Physical, 15, 20);
            SetResistance(ResistanceType.Fire, 100);
            SetResistance(ResistanceType.Poison, 5, 10);
            SetResistance(ResistanceType.Energy, 5, 10);

            SetSkill(SkillName.EvalInt, 75.1, 100.0);
            SetSkill(SkillName.Magery, 75.1, 100.0);
            SetSkill(SkillName.MagicResist, 75.0, 97.5);
            SetSkill(SkillName.Tactics, 65.0, 87.5);
            SetSkill(SkillName.Wrestling, 20.2, 60.0);

            SetHits(m_Parent.HitsMax);
            Hits = m_Parent.Hits;
        }
예제 #3
0
        public override void Deserialize( GenericReader reader )
        {
            base.Deserialize( reader );
            int version = reader.ReadInt( );

            m_Parent = ( DamageableItem2 )reader.ReadItem( );
            //	Frozen = ( bool )reader.ReadBool( );
            //	Paralyzed = ( bool )reader.ReadBool( );
            //	CantWalk = ( bool )reader.ReadBool( );
            DamageMin = ( int )reader.ReadInt( );
            DamageMax = ( int )reader.ReadInt( );
            BodyValue = ( int )reader.ReadInt( );
        }
예제 #4
0
        public IDamageableItem2( DamageableItem2 parent )
            : base(AIType.AI_Melee, FightMode.Aggressor, 10, 1, 0.2, 0.4)
        {
            if( parent != null && !parent.Deleted )
                m_Parent = parent;

            //Nullify the name, so it doeesn't pop up when we come into range
            Name = null;

            Body = 803; //Mustache is barely visible!
            BodyValue = 803; //Mustache is barely visible!
            //Body = 1; //Ogre for testing
            //BodyValue = 1; //Ogre for testing
            Hue = 0;
            BaseSoundID = 0; //QUIET!!!
            Fame = 0;
            Karma = 0;
            ControlSlots = 0;
            Tamable = false;

            //Frozen = true;
            //Paralyzed = true;
            //CantWalk = true;

            DamageMin = 10;
            DamageMax = 25;

            SetInt( 96, 120 );
            SetDex( 91, 115 );
            SetStr( 25, 30);

            SetDamageType( ResistanceType.Physical, 30 );
            SetDamageType( ResistanceType.Fire, 70 );

            SetResistance( ResistanceType.Physical, 15, 20 );
            SetResistance( ResistanceType.Fire, 100 );
            SetResistance( ResistanceType.Poison, 5, 10 );
            SetResistance( ResistanceType.Energy, 5, 10 );

            SetSkill( SkillName.EvalInt, 75.1, 100.0 );
            SetSkill( SkillName.Magery, 75.1, 100.0 );
            SetSkill( SkillName.MagicResist, 75.0, 97.5 );
            SetSkill( SkillName.Tactics, 65.0, 87.5 );
            SetSkill( SkillName.Wrestling, 20.2, 60.0 );

            SetHits( m_Parent.HitsMax );
            Hits = m_Parent.Hits;
        }