Example #1
0
        public bool DoesSkillExist(string id, IDB_Type skillType)
        {
            if (Entries == null)
            {
                return(false);
            }
            int type = (int)skillType;

            foreach (var entry in Entries)
            {
                if (entry.Index == id && entry.I_08 == type)
                {
                    return(true);
                }
            }

            return(false);
        }
Example #2
0
        public bool DoesSkillExist(string id, IDB_Type skillType)
        {
            if (Entries == null)
            {
                return(false);
            }
            int    type    = (int)skillType;
            ushort skillId = ushort.Parse(id);

            foreach (var entry in Entries)
            {
                if (entry.ID == skillId && entry.I_08 == type)
                {
                    return(true);
                }
            }

            return(false);
        }