示例#1
0
        public void AdvanceLevel()
        {
            MiniChampLevelInfo levelInfo = MiniChampInfo.GetInfo(m_Type).GetLevelInfo(++Level);

            if (levelInfo != null)
            {
                ClearSpawn();

                if (m_Type == MiniChampType.Minotaur)
                {
                    MinotaurShouts();
                }

                foreach (MiniChampTypeInfo typeInfo in levelInfo.Types)
                {
                    m_Spawn.Add(new MiniChampSpawnInfo(this, typeInfo));
                }
            }
            else             // begin restart
            {
                Stop();

                m_RestartTimer = Timer.DelayCall(m_RestartDelay, new TimerCallback(Start));
            }
        }
示例#2
0
        public void AdvanceLevel()
        {
            Level++;

            MiniChampInfo      info      = MiniChampInfo.GetInfo(m_Type);
            MiniChampLevelInfo levelInfo = info.GetLevelInfo(Level);

            if (levelInfo != null && Level <= info.MaxLevel)
            {
                ClearSpawn();

                if (m_Type == MiniChampType.MeraktusTheTormented)
                {
                    MinotaurShouts();
                }

                foreach (MiniChampTypeInfo type in levelInfo.Types)
                {
                    Spawn.Add(new MiniChampSpawnInfo(this, type));
                }
            }
            else // begin restart
            {
                Stop();

                m_RestartTimer = Timer.DelayCall(m_RestartDelay, new TimerCallback(Start));
            }
        }
示例#3
0
        public void AdvanceLevel()
        {
            MiniChampLevelInfo levelInfo = MiniChampInfo.GetInfo(m_Type).GetLevelInfo(++Level);

            if (levelInfo != null)
            {
                ClearSpawn();

                if (m_Type == MiniChampType.MeraktusTheTormented)
                {
                    MinotaurShouts();
                }

                //levelInfo.Types.ToList().ForEach(x => Spawn.Add(new MiniChampSpawnInfo(this, x)));
                foreach (var type in levelInfo.Types)
                {
                    Spawn.Add(new MiniChampSpawnInfo(this, type));
                }
            }
            else // begin restart
            {
                Stop();

                m_RestartTimer = Timer.DelayCall(m_RestartDelay, new TimerCallback(Start));
            }
        }
示例#4
0
        public void AdvanceLevel()
        {
            Level++;

            MiniChampInfo      info      = MiniChampInfo.GetInfo(m_Type);
            MiniChampLevelInfo levelInfo = info.GetLevelInfo(Level);

            if (levelInfo != null && Level <= info.MaxLevel)
            {
                ClearSpawn();

                if (m_Type == MiniChampType.MeraktusTheTormented)
                {
                    MinotaurShouts();
                }

                for (var index = 0; index < levelInfo.Types.Length; index++)
                {
                    MiniChampTypeInfo type = levelInfo.Types[index];

                    Spawn.Add(new MiniChampSpawnInfo(this, type));
                }
            }
            else // begin restart
            {
                Stop();

                StartRestartTimer();
            }
        }
        private void DropEssence(BaseCreature bc)
        {
            Type essenceType = MiniChampInfo.GetInfo(Owner.Type).EssenceType;

            Item essence = Loot.Construct(essenceType);

            if (essence != null)
            {
                bc.PackItem(essence);
            }
        }
示例#6
0
        private void DropEssence(BaseCreature bc)
        {
            Type essenceType = MiniChampInfo.GetInfo(Owner.Type).EssenceType;

            Item essence = null;

            try { essence = (Item)Activator.CreateInstance(essenceType); }
            catch { }

            if (essence != null)
            {
                bc.PackItem(essence);
            }
        }
示例#7
0
        public override void GetProperties(ObjectPropertyList list)
        {
            base.GetProperties(list);

            list.Add(1060658, "Type\t{0}", m_Type);              // ~1_val~: ~2_val~
            list.Add(1060661, "Spawn Range\t{0}", m_SpawnRange); // ~1_val~: ~2_val~

            if (m_Active)
            {
                MiniChampInfo info = MiniChampInfo.GetInfo(m_Type);

                list.Add(1060742);                                                                   // active
                list.Add("Level {0} / {1}", Level, info != null ? info.MaxLevel.ToString() : "???"); // ~1_val~: ~2_val~

                for (int i = 0; i < Spawn.Count; i++)
                {
                    Spawn[i].AddProperties(list, i + 1150301);
                }
            }
            else
            {
                list.Add(1060743); // inactive
            }
        }