Esempio n. 1
0
 public Half(WhichHalf halfs)
     : base(7955)
 {
     Weight = 5.0;
     Name = "a disfigured idol";
     Hue = 2010;
     m_Half = halfs;
     switch (halfs)
     {
         case WhichHalf.Left: Name = "a disfigured idol"; break;
         case WhichHalf.Right: Name = "a damaged idol"; break;
     }
 }
Esempio n. 2
0
        public Half(WhichHalf halfs)
            : base(7955)
        {
            Weight = 5.0;
            Name   = "a disfigured idol";
            Hue    = 2010;
            m_Half = halfs;
            switch (halfs)
            {
            case WhichHalf.Left: Name = "a disfigured idol"; break;

            case WhichHalf.Right: Name = "a damaged idol"; break;
            }
        }
Esempio n. 3
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt();

            switch (version)
            {
                case 0:
                    {
                        m_Half = (WhichHalf)reader.ReadInt(); ;

                        break;
                    }
            }
        }
Esempio n. 4
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt();

            switch (version)
            {
            case 0:
            {
                m_Half = (WhichHalf)reader.ReadInt();;

                break;
            }
            }
        }
		public DespBoss() : base( AIType.AI_Mage )
		{
			Name = "Idol Keeper";
			Title = "of Despise";
			Hue = 2010;
			Body = 18;
			BaseSoundID = 367;
			m_Active = true;
			m_Half = WhichHalf.Left;
			m_Rare = MagicalRareType.Three;

			SetStr( 200, 250 );
			SetDex( 180, 200 );
			SetInt( 250, 300 );

			SetHits( 5500 );

			SetDamage( 18, 22 );

			SetDamageType( ResistanceType.Physical, 100 );

			SetResistance( ResistanceType.Physical, 35, 40 );
			SetResistance( ResistanceType.Fire, 15, 25 );
			SetResistance( ResistanceType.Cold, 40, 50 );
			SetResistance( ResistanceType.Poison, 15, 25 );
			SetResistance( ResistanceType.Energy, 15, 25 );

			SetSkill( SkillName.EvalInt, 110.0 );
			SetSkill( SkillName.Magery, 110.0 );
			SetSkill( SkillName.Meditation, 110.0 );
			SetSkill( SkillName.MagicResist, 220.0 );
			SetSkill( SkillName.Tactics, 60.0 );
			SetSkill( SkillName.Wrestling, 75.0 );
			SetSkill( SkillName.DetectHidden, 200.0 );

			Fame = 10000;
			Karma = -10000;

			VirtualArmor = 1;

			m_Timer = new PartnerTimer( this );
			m_Timer.Start();
		}
Esempio n. 6
0
        public DespBoss() : base(AIType.AI_Mage)
        {
            Name        = "Idol Keeper";
            Title       = "of Despise";
            Hue         = 2010;
            Body        = 18;
            BaseSoundID = 367;
            m_Active    = true;
            m_Half      = WhichHalf.Left;
            m_Rare      = MagicalRareType.Three;

            SetStr(200, 250);
            SetDex(180, 200);
            SetInt(250, 300);

            SetHits(5500);

            SetDamage(18, 22);

            SetDamageType(ResistanceType.Physical, 100);

            SetResistance(ResistanceType.Physical, 35, 40);
            SetResistance(ResistanceType.Fire, 15, 25);
            SetResistance(ResistanceType.Cold, 40, 50);
            SetResistance(ResistanceType.Poison, 15, 25);
            SetResistance(ResistanceType.Energy, 15, 25);

            SetSkill(SkillName.EvalInt, 110.0);
            SetSkill(SkillName.Magery, 110.0);
            SetSkill(SkillName.Meditation, 110.0);
            SetSkill(SkillName.MagicResist, 220.0);
            SetSkill(SkillName.Tactics, 60.0);
            SetSkill(SkillName.Wrestling, 75.0);
            SetSkill(SkillName.DetectHidden, 200.0);

            Fame  = 10000;
            Karma = -10000;

            VirtualArmor = 1;

            m_Timer = new PartnerTimer(this);
            m_Timer.Start();
        }
Esempio n. 7
0
        public static GraphicsPath Create(int x, int y, int width, int height, int radius, RectangleCorners corners, WhichHalf half)
        {
            if (radius <= 0)
            {
                GraphicsPath rectp = new GraphicsPath();
                rectp.AddRectangle(new Rectangle(x, y, width, height));
                return(rectp);
            }

            int dia = radius * 2;

            Rectangle TLarc = new Rectangle(x, y, dia, dia);
            Rectangle TRarc = new Rectangle(x + width - dia - 1, y, dia, dia);
            Rectangle BRarc = new Rectangle(x + width - dia - 1, y + height - dia - 1, dia, dia);
            Rectangle BLarc = new Rectangle(x, y + height - dia - 1, dia, dia);

            Rectangle TLsquare = new Rectangle(x, y, radius, radius);
            Rectangle TRsquare = new Rectangle(x + width - radius, y, radius, radius);
            Rectangle BRsquare = new Rectangle(x + width - radius, y + height - radius, radius, radius);
            Rectangle BLsquare = new Rectangle(x, y + height - radius, radius, radius);

            GraphicsPath p = new GraphicsPath();

            p.StartFigure();

            if (half == WhichHalf.Both || half == WhichHalf.TopLeft)
            {
                if (corners.HasFlag(RectangleCorners.BottomLeft))
                {
                    p.AddArc(BLarc, 135, 45);
                }
                else
                {
                    p.AddLine(BLsquare.Left, BLsquare.Bottom, BLsquare.Left, BLsquare.Top);
                }

                p.AddLine(BLsquare.Left, BLsquare.Top - 1, TLsquare.Left, TLsquare.Bottom + 1);

                if (corners.HasFlag(RectangleCorners.TopLeft))
                {
                    p.AddArc(TLarc, 180, 90);
                }
                else
                {
                    Corner(p, TLsquare.Left, TLsquare.Bottom, TLsquare.Left, TLsquare.Top, TLsquare.Right, TLsquare.Top);
                }

                p.AddLine(TLsquare.Right + 1, TLsquare.Top, TRsquare.Left - 1, TRsquare.Top);

                if (corners.HasFlag(RectangleCorners.TopRight))
                {
                    p.AddArc(TRarc, -90, 45);
                }
            }

            if (half == WhichHalf.Both || half == WhichHalf.BottomRight)
            {
                if (corners.HasFlag(RectangleCorners.TopRight))
                {
                    p.AddArc(TRarc, -45, 45);
                }
                else
                {
                    p.AddLine(TRsquare.Right, TRsquare.Top, TRsquare.Right, TRsquare.Bottom);
                }

                p.AddLine(TRsquare.Right, TRsquare.Bottom + 1, BRsquare.Right, BRsquare.Top - 1);

                if (corners.HasFlag(RectangleCorners.BottomRight))
                {
                    p.AddArc(BRarc, 0, 90);
                }
                else
                {
                    Corner(p, BRsquare.Right, BRsquare.Top, BRsquare.Right, BRsquare.Bottom, BRsquare.Left, BRsquare.Bottom);
                }

                p.AddLine(BRsquare.Left - 1, BRsquare.Bottom, BLsquare.Right + 1, BLsquare.Bottom);

                if (corners.HasFlag(RectangleCorners.BottomLeft))
                {
                    p.AddArc(BLarc, 90, 45);
                }
                else
                {
                    p.AddLine(BLsquare.Right, BLsquare.Bottom, BLsquare.Left, BLsquare.Bottom);
                }
            }

            return(p);
        }
Esempio n. 8
0
 public static GraphicsPath Create(Rectangle rect, int radius, RectangleCorners c, WhichHalf which_half)
 {
     return(Create(rect.X, rect.Y, rect.Width, rect.Height, radius, c, which_half));
 }