public void Clear(ChampionSkullBrazier brazier)
        {
            if (brazier != null)
            {
                Effects.SendBoltEffect(brazier);

                if (brazier.Skull != null)
                {
                    brazier.Skull.Delete();
                }
            }
        }
        public ChampionSkullPlatform()
        {
            AddComponent(new AddonComponent(0x71A), -1, -1, -1);
            AddComponent(new AddonComponent(0x709), 0, -1, -1);
            AddComponent(new AddonComponent(0x709), 1, -1, -1);
            AddComponent(new AddonComponent(0x709), -1, 0, -1);
            AddComponent(new AddonComponent(0x709), 0, 0, -1);
            AddComponent(new AddonComponent(0x709), 1, 0, -1);
            AddComponent(new AddonComponent(0x709), -1, 1, -1);
            AddComponent(new AddonComponent(0x709), 0, 1, -1);
            AddComponent(new AddonComponent(0x71B), 1, 1, -1);

            AddComponent(new AddonComponent(0x50F), 0, -1, 4);
            AddComponent(m_Power = new ChampionSkullBrazier(this, ChampionSkullType.Power), 0, -1, 5);

            AddComponent(new AddonComponent(0x50F), 1, -1, 4);
            AddComponent(m_Enlightenment = new ChampionSkullBrazier(this, ChampionSkullType.Enlightenment), 1, -1, 5);

            AddComponent(new AddonComponent(0x50F), -1, 0, 4);
            AddComponent(m_Venom = new ChampionSkullBrazier(this, ChampionSkullType.Venom), -1, 0, 5);

            AddComponent(new AddonComponent(0x50F), 1, 0, 4);
            AddComponent(m_Pain = new ChampionSkullBrazier(this, ChampionSkullType.Pain), 1, 0, 5);

            AddComponent(new AddonComponent(0x50F), -1, 1, 4);
            AddComponent(m_Greed = new ChampionSkullBrazier(this, ChampionSkullType.Greed), -1, 1, 5);

            AddComponent(new AddonComponent(0x50F), 0, 1, 4);
            AddComponent(m_Death = new ChampionSkullBrazier(this, ChampionSkullType.Death), 0, 1, 5);

            AddonComponent comp = new LocalizedAddonComponent(0x20D2, 1049495);

            comp.Hue = 0x482;
            AddComponent(comp, 0, 0, 5);

            comp     = new LocalizedAddonComponent(0x0BCF, 1049496);
            comp.Hue = 0x482;
            AddComponent(comp, 0, 2, -7);

            comp     = new LocalizedAddonComponent(0x0BD0, 1049497);
            comp.Hue = 0x482;
            AddComponent(comp, 2, 0, -7);
        }
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt();

            switch (version)
            {
            case 0:
            {
                m_Power         = reader.ReadItem() as ChampionSkullBrazier;
                m_Enlightenment = reader.ReadItem() as ChampionSkullBrazier;
                m_Venom         = reader.ReadItem() as ChampionSkullBrazier;
                m_Pain          = reader.ReadItem() as ChampionSkullBrazier;
                m_Greed         = reader.ReadItem() as ChampionSkullBrazier;
                m_Death         = reader.ReadItem() as ChampionSkullBrazier;

                break;
            }
            }
        }
 public bool Validate(ChampionSkullBrazier brazier)
 {
     return(brazier != null && brazier.Skull != null && !brazier.Skull.Deleted);
 }
Ejemplo n.º 5
0
 public SacrificeTarget(ChampionSkullBrazier brazier) : base(12, false, TargetFlags.None)
 {
     m_Brazier = brazier;
 }