public string FindArmourProficiency(Dictionaries.ArmourTypes input) { StringBuilder output = new StringBuilder(); if (ArmourProficiencies.Count != 0) { if (ArmourProficiencies.Contains(input)) { foreach (Dictionaries.ArmourTypes ArmourProficiency in ArmourProficiencies) { if (input == ArmourProficiency) { output.AppendLine($"{ArmourProficiency}"); } } } else { output.AppendLine("This armour proficiency is not in this list"); } } else { output.AppendLine("The list of armour proficiencies is empty"); } return(output.ToString()); }
public bool RemoveArmourProficiency(Dictionaries.ArmourTypes input) { if (ArmourProficiencies.Contains(input)) { ArmourProficiencies.Remove(input); return(true); } else { return(false); } }