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); }
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); }
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); }
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); }
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); }
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); }
internal Proficiency(Api api, ProficiencyModel model) { _api = api; Ratings = model.Ratings.SelectNotNull(r => new ProficiencyRating(api, r)); }