Example #1
0
        private int GetAllUsedSkillPoint(string unitName)
        {
            List <string> skillNames = SkillDB.GetLearnedSkillNames(unitName);
            int           sum        = 0;

            foreach (string skillName in skillNames)
            {
                sum += SkillDB.GetEnhanceLevel(unitName, skillName);
            }
            return(sum);
        }
Example #2
0
        private int GetUsedSkillPointUntilLevel(string unitName, int level)
        {
            List <string> skillNames = SkillDB.GetLearnedSkillNames(unitName);
            int           sum        = 0;

            foreach (string skillName in skillNames)
            {
                if (skillInfoByName[skillName].requireLevel <= level)
                {
                    sum += SkillDB.GetEnhanceLevel(unitName, skillName);
                }
            }
            return(sum);
        }