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); } } } }
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); } } }
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); } } }
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); } } } }