Example #1
0
        public int AddNewSkill()
        {
            var baseSkill = NinjaSkillBase.Random();
            var skillLoc  = CheckForSkill(baseSkill.Id);

            if (skillLoc == -1)
            {
                skillLoc = Count; Add(new NinjaSkill(baseSkill));
            }
            else if (this[skillLoc].Level <= 5)
            {
                this[skillLoc].Level++;
            }
            return(skillLoc);
        }
Example #2
0
 public NinjaSkill(NinjaSkillBase baseSkill)
 {
     BaseSkill = baseSkill;
     ExtraData = BaseSkill.DefaultData;
 }