public static List<int> GetSpellList() { List<int> spellList = new List<int>(); foreach (KeyValuePair<int, Spell> entry in Spells) { Spell spell = entry.Value; spellList.Add(spell.SpellId); } return spellList; }