public string FindSavingThrow(Dictionaries.Attributes input) { if (SavingThrows.Count != 0) { if (SavingThrows.Contains(input)) { StringBuilder output = new StringBuilder(); foreach (Dictionaries.Attributes SavingThrow in SavingThrows) { if (input == SavingThrow) { output.AppendLine($"{SavingThrow}"); } } return(output.ToString()); } else { return("This saving throw is not in this list"); } } else { return("The list of saving throws is empty"); } }
public bool RemoveSavingThrow(Dictionaries.Attributes input) { if (SavingThrows.Contains(input)) { SavingThrows.Remove(input); return(true); } else { return(false); } }