Example #1
0
        internal Book(CharacterTemplates templates)
        {
            m_Templates = templates;

            var skills = new List <SkillTemplate>();

            foreach (var skill in m_Templates.Skills)
            {
                if (skill.Name == "Jack-of-All-Trades")
                {
                    continue;
                }

                if (skill.Specialty?.Length > 0)
                {
                    foreach (var specialty in skill.Specialty)
                    {
                        skills.Add(new SkillTemplate(skill.Name, specialty.Name));
                    }
                }
                else
                {
                    skills.Add(new SkillTemplate(skill.Name));
                }
            }
            RandomSkills = ImmutableArray.CreateRange(skills);

            PsionicTalents = ImmutableArray.Create(
                new PsionicSkillTemplate("Telepathy", 4),
                new PsionicSkillTemplate("Clairvoyance", 3),
                new PsionicSkillTemplate("Telekinesis", 2),
                new PsionicSkillTemplate("Awareness", 1),
                new PsionicSkillTemplate("Teleportation", 0)
                );
        }
Example #2
0
        internal Book(CharacterTemplates templates)
        {
            m_Templates = templates;


            var skills = new List <SkillTemplate>();

            foreach (var skill in m_Templates.Skills)
            {
                if (skill.Name == "Jack-of-All-Trades")
                {
                    continue;
                }

                if (skill.Specialty?.Length > 0)
                {
                    foreach (var specialty in skill.Specialty)
                    {
                        skills.Add(new SkillTemplate(skill.Name, specialty.Name));
                    }
                }
                else
                {
                    skills.Add(new SkillTemplate(skill.Name));
                }
            }
            m_RandomSkills = ImmutableArray.CreateRange(skills);
        }