Exemplo n.º 1
0
        public void FinalizeDataHolder()
        {
            Spell spell = SpellHandler.Get(this.SpellId);

            if (spell == null)
            {
                ContentMgr.OnInvalidDBData(this.GetType().Name + " for \"{0} {1}\" refers to invalid Spell: {2}.",
                                           (object)this.Race, (object)this.Class, (object)this);
            }
            else
            {
                List <Archetype> archetypes = ArchetypeMgr.GetArchetypes(this.Race, this.Class);
                if (archetypes == null)
                {
                    ContentMgr.OnInvalidDBData(this.GetType().Name + " \"{0}\" refers to invalid Archetype: {1} {2}.",
                                               (object)this, (object)this.Race, (object)this.Class);
                }
                else
                {
                    foreach (Archetype archetype in archetypes)
                    {
                        archetype.Spells.Add(spell);
                    }
                }
            }
        }
Exemplo n.º 2
0
        public void FinalizeDataHolder()
        {
            var archetypes = ArchetypeMgr.GetArchetypes(Race, Class);

            if (archetypes == null)
            {
                ContentMgr.OnInvalidDBData(GetType().Name + " \"{0}\" refers to invalid Archetype: {1} {2}.", this, Race, Class);
            }
            else
            {
                foreach (var archetype in archetypes)
                {
                    ActionButton.Set(archetype.ActionButtons, Index, Action, Type, Info);
                }
            }
        }
Exemplo n.º 3
0
        public void FinalizeDataHolder()
        {
            List <Archetype> archetypes = ArchetypeMgr.GetArchetypes(this.Race, this.Class);

            if (archetypes == null)
            {
                ContentMgr.OnInvalidDBData(this.GetType().Name + " \"{0}\" refers to invalid Archetype: {1} {2}.",
                                           (object)this, (object)this.Race, (object)this.Class);
            }
            else
            {
                foreach (Archetype archetype in archetypes)
                {
                    ActionButton.Set(archetype.ActionButtons, this.Index, this.Action, this.Type, this.Info);
                }
            }
        }
Exemplo n.º 4
0
        public void FinalizeDataHolder()
        {
            var spell = SpellHandler.Get(SpellId);

            if (spell == null)
            {
                ContentMgr.OnInvalidDBData(GetType().Name + " for \"{0} {1}\" refers to invalid Spell: {2}.", Race, Class, this);
            }
            else
            {
                var archetypes = ArchetypeMgr.GetArchetypes(Race, Class);
                if (archetypes == null)
                {
                    ContentMgr.OnInvalidDBData(GetType().Name + " \"{0}\" refers to invalid Archetype: {1} {2}.", this, Race, Class);
                }
                else
                {
                    foreach (var archetype in archetypes)
                    {
                        archetype.Spells.Add(spell);
                    }
                }
            }
        }