Пример #1
0
        // Get a List of Skills corresponding to the Job
        public static List <SkillMetadata> GetJobSkills(Job job = Job.None)
        {
            List <SkillMetadata> jobSkill = new List <SkillMetadata>();
            List <int>           gmSkills = SkillTreeOrdered.GetListOrdered(Job.GameMaster);

            if (Job.GameMaster == job)
            {
                foreach (int skillId in gmSkills)
                {
                    jobSkill.Add(skill[skillId]);
                    jobSkill.First(skill => skill.SkillId == skillId).CurrentLevel = 1;
                }
                return(jobSkill);
            }

            foreach (KeyValuePair <int, SkillMetadata> skills in skill)
            {
                if (skills.Value.Job == (int)job)
                {
                    jobSkill.Add(skills.Value);
                }
                else if (skills.Value.SkillId == 20000001) // Swiming
                {
                    jobSkill.Add(skills.Value);
                    skills.Value.CurrentLevel = 1;
                }
                else if (skills.Value.SkillId == 20000011) // Climbing walls
                {
                    jobSkill.Add(skills.Value);
                    skills.Value.CurrentLevel = 1;
                }
            }
            return(jobSkill);
        }
Пример #2
0
        }                                                              // TODO: fill using database

        public SkillTab(Job job)
        {
            Id          = 0x000032DF995949B9; // temporary hard coded id
            Name        = "Build";
            Order       = SkillTreeOrdered.GetListOrdered(job);
            SkillJob    = AddOnDictionary(job);
            SkillLevels = SkillJob.ToDictionary(x => x.Key, x => (int)x.Value.Learned);
        }
Пример #3
0
 public SkillTab(Job job)
 {
     Id       = 0x000032DF995949B9; // temporary hard coded id
     Name     = "Build";
     Skills   = SkillMetadataStorage.GetJobSkills(job);
     Order    = SkillTreeOrdered.GetListOrdered(job);
     SkillJob = AddOnDictionary();
 }
Пример #4
0
 public SkillTab(Job job)
 {
     Id          = GuidGenerator.Long();
     Name        = "";
     Order       = SkillTreeOrdered.GetListOrdered(job);
     SkillJob    = AddOnDictionary(job);
     SkillLevels = SkillJob.ToDictionary(x => x.Key, x => (int)x.Value.Learned);
 }
Пример #5
0
 public void GenerateSkills(Job job)
 {
     Order    = SkillTreeOrdered.GetListOrdered(job);
     SkillJob = AddOnDictionary(job);
 }