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);
     }
 }
Пример #3
0
 private Armour(string name, double cost, double weight, Dictionaries.ArmourTypes armourType, string extra, string info) : base(name, cost, weight)
 {
     Extra             = extra;
     Info              = info;
     ArmourProficiency = Dictionaries.ArmourProficiencies[armourType];
 }