Exemplo n.º 1
0
        private List <string> GetArmorProficiency(ProficiencyModel proficiencies)
        {
            List <string> armorProficiency = new List <string>()
            {
            };

            if (proficiencies.Armor != null)
            {
                foreach (var item in proficiencies.Armor)
                {
                    string text = item.GetEnumText();

                    if (this.charClassCard.Name == ClassEnum.Druid.GetEnumText())
                    {
                        armorProficiency.Add($"{text} (nonmetal)");
                    }
                    else
                    {
                        armorProficiency.Add(text);
                    }
                }
            }

            return(armorProficiency);
        }
Exemplo n.º 2
0
        private List <string> GetLanguageProficiency(ProficiencyModel proficiencies)
        {
            List <string> languages = new List <string>()
            {
            };

            if (proficiencies.Skills != null)
            {
                foreach (var item in proficiencies.Skills)
                {
                    languages.Add(item.GetEnumText());
                }
            }

            return(languages);
        }
Exemplo n.º 3
0
        private List <string> GetWeaponProficiency(ProficiencyModel proficiencies)
        {
            List <string> weapons = new List <string>()
            {
            };

            if (proficiencies.Weapons != null)
            {
                foreach (var item in proficiencies.Weapons)
                {
                    weapons.Add(item.GetEnumText());
                }
            }

            return(weapons);
        }
Exemplo n.º 4
0
        private List <string> GetToolProficiency(ProficiencyModel proficiencies)
        {
            List <string> tools = new List <string>()
            {
            };

            if (proficiencies.Tools != null)
            {
                foreach (var item in proficiencies.Tools)
                {
                    tools.Add(item.GetEnumText());
                }
            }

            return(tools);
        }
Exemplo n.º 5
0
        private List <string> GetSavingThrowProficiency(ProficiencyModel proficiencies)
        {
            List <string> savingThrowProficiency = new List <string>()
            {
            };

            if (proficiencies.SavingThrows != null)
            {
                foreach (var item in proficiencies.SavingThrows)
                {
                    int savingThrowMod = GetSavingThrowModifier(item);
                    savingThrowProficiency.Add($"{item} +{savingThrowMod}");
                }
            }

            return(savingThrowProficiency);
        }
Exemplo n.º 6
0
        private List <string> GetSkillProficiency(ProficiencyModel proficiencies)
        {
            int           skillModifier = 0;
            List <string> skills        = new List <string>()
            {
            };

            if (proficiencies.Skills != null)
            {
                foreach (var item in proficiencies.Skills)
                {
                    skillModifier = GetSkillModifier(item);
                    skills.Add($"{item} +{skillModifier}");
                }
            }

            return(skills);
        }
Exemplo n.º 7
0
 internal Proficiency(Api api, ProficiencyModel model)
 {
     _api    = api;
     Ratings = model.Ratings.SelectNotNull(r => new ProficiencyRating(api, r));
 }