Exemplo n.º 1
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt();

            switch (version)
            {
            case 0:
            {
                m_Shame      = reader.ReadItem() as IdolPedestal;
                m_Deceit     = reader.ReadItem() as IdolPedestal;
                m_Destard    = reader.ReadItem() as IdolPedestal;
                m_Hythloth   = reader.ReadItem() as IdolPedestal;
                m_Despise    = reader.ReadItem() as IdolPedestal;
                m_Covetous   = reader.ReadItem() as IdolPedestal;
                m_FireLord   = reader.ReadItem() as IdolPedestal;
                m_DragonKing = reader.ReadItem() as IdolPedestal;
                m_Undeath    = reader.ReadItem() as IdolPedestal;
                m_Custom     = reader.ReadItem() as IdolPedestal;

                break;
            }
            }
        }
Exemplo n.º 2
0
        public void Clear(IdolPedestal Pedestal)
        {
            if (Pedestal != null)
            {
                Effects.SendBoltEffect(Pedestal);

                if (Pedestal.Idol != null)
                {
                    Pedestal.Idol.Delete();
                }
            }
        }
Exemplo n.º 3
0
        public IdolPlatform()
        {
            AddonComponent comp = new AddonComponent(0x7A3);

            comp.Hue = 0x4AA;
            AddComponent(comp, 0, 0, -2);

            comp     = new AddonComponent(0x7A7);
            comp.Hue = 0x4AA;
            AddComponent(comp, -1, 0, 0);

            comp     = new AddonComponent(0x7A4);
            comp.Hue = 0x4AA;
            AddComponent(comp, 0, 1, 0);

            comp     = new AddonComponent(0x7A5);
            comp.Hue = 0x4AA;
            AddComponent(comp, 1, 0, 0);

            comp     = new AddonComponent(0x7A6);
            comp.Hue = 0x4AA;
            AddComponent(comp, 0, -1, 0);

            comp      = new AddonComponent(0x12D9);
            comp.Hue  = 0x4AA;
            comp.Name = "Guardians of the Dark Master";
            AddComponent(comp, -4, 0, 0);

            comp      = new AddonComponent(0x12D9);
            comp.Hue  = 0x4AA;
            comp.Name = "Guardians of the Dark Master";
            AddComponent(comp, 4, 0, 0);

            AddComponent(m_Shame = new IdolPedestal(this, IdolType.Shame), -4, -2, 0);

            AddComponent(m_Deceit = new IdolPedestal(this, IdolType.Deceit), -4, 2, 0);

            AddComponent(m_Destard = new IdolPedestal(this, IdolType.Destard), -2, 4, 0);

            AddComponent(m_Hythloth = new IdolPedestal(this, IdolType.Hythloth), 0, 4, 0);

            AddComponent(m_Despise = new IdolPedestal(this, IdolType.Despise), 2, 4, 0);

            AddComponent(m_Covetous = new IdolPedestal(this, IdolType.Covetous), 4, 2, 0);

            AddComponent(m_FireLord = new IdolPedestal(this, IdolType.FireLord), -2, -4, 0);

            AddComponent(m_DragonKing = new IdolPedestal(this, IdolType.DragonKing), 2, -4, 0);

            AddComponent(m_Undeath = new IdolPedestal(this, IdolType.Undeath), 0, -4, 0);

            AddComponent(m_Custom = new IdolPedestal(this, IdolType.Wrong), 4, -2, 0);
        }
Exemplo n.º 4
0
		public IdolPlatform()
		{
			AddonComponent comp = new AddonComponent( 0x7A3 );
			comp.Hue = 0x4AA;
			AddComponent( comp, 0, 0, -2 );

			comp = new AddonComponent( 0x7A7 );
			comp.Hue = 0x4AA;
			AddComponent( comp, -1, 0, 0 );

			comp = new AddonComponent( 0x7A4 );
			comp.Hue = 0x4AA;
			AddComponent( comp, 0, 1, 0 );

			comp = new AddonComponent( 0x7A5 );
			comp.Hue = 0x4AA;
			AddComponent( comp, 1, 0, 0 );

			comp = new AddonComponent( 0x7A6 );
			comp.Hue = 0x4AA;
			AddComponent( comp, 0, -1, 0 );

			comp = new AddonComponent( 0x12D9);
			comp.Hue = 0x4AA;
			comp.Name = "Guardians of the Dark Master";
			AddComponent( comp, -4, 0, 0 );

			comp = new AddonComponent( 0x12D9);
			comp.Hue = 0x4AA;
			comp.Name = "Guardians of the Dark Master";
			AddComponent( comp, 4, 0, 0 );

			AddComponent( m_Shame = new IdolPedestal( this, IdolType.Shame ),  -4, -2, 0 );

			AddComponent( m_Deceit = new IdolPedestal( this, IdolType.Deceit ),  -4, 2, 0 );

			AddComponent( m_Destard = new IdolPedestal( this, IdolType.Destard ), -2,  4, 0 );

			AddComponent( m_Hythloth = new IdolPedestal( this, IdolType.Hythloth ),  0,  4, 0 );

			AddComponent( m_Despise = new IdolPedestal( this, IdolType.Despise ), 2,  4, 0 );

			AddComponent( m_Covetous = new IdolPedestal( this, IdolType.Covetous ),  4,  2, 0 );

			AddComponent( m_FireLord = new IdolPedestal( this, IdolType.FireLord ),  -2,  -4, 0 );

			AddComponent( m_DragonKing = new IdolPedestal( this, IdolType.DragonKing ),  2,  -4, 0 );

			AddComponent( m_Undeath = new IdolPedestal( this, IdolType.Undeath ),  0, -4, 0 );

			AddComponent( m_Custom = new IdolPedestal( this, IdolType.Wrong ),  4, -2, 0 );
		}
Exemplo n.º 5
0
		public void Clear( IdolPedestal Pedestal )
		{
			if ( Pedestal != null )
			{
				Effects.SendBoltEffect( Pedestal );

				if ( Pedestal.Idol != null )
					Pedestal.Idol.Delete();
			}
		}
Exemplo n.º 6
0
			public SacrificeTarget( IdolPedestal Pedestal ) : base( 12, false, TargetFlags.None )
			{
				m_Pedestal = Pedestal;
			}
Exemplo n.º 7
0
		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );

			int version = reader.ReadInt();

			switch ( version )
			{
				case 0:
				{
					m_Shame = reader.ReadItem() as IdolPedestal;
					m_Deceit = reader.ReadItem() as IdolPedestal;
					m_Destard = reader.ReadItem() as IdolPedestal;
					m_Hythloth = reader.ReadItem() as IdolPedestal;
					m_Despise = reader.ReadItem() as IdolPedestal;
					m_Covetous = reader.ReadItem() as IdolPedestal;
					m_FireLord = reader.ReadItem() as IdolPedestal;
					m_DragonKing = reader.ReadItem() as IdolPedestal;
					m_Undeath = reader.ReadItem() as IdolPedestal;
					m_Custom = reader.ReadItem() as IdolPedestal;

					break;
				}
			}
		}
Exemplo n.º 8
0
		public bool Validate( IdolPedestal Pedestal )
		{
			return ( Pedestal != null && Pedestal.Idol != null && !Pedestal.Idol.Deleted );
		}
Exemplo n.º 9
0
 public SacrificeTarget(IdolPedestal Pedestal) : base(12, false, TargetFlags.None)
 {
     m_Pedestal = Pedestal;
 }
Exemplo n.º 10
0
 public bool Validate(IdolPedestal Pedestal)
 {
     return(Pedestal != null && Pedestal.Idol != null && !Pedestal.Idol.Deleted);
 }