public void AddArmour(Armour armour) { if (!ContainsArmour(armour.Name)) { armours.Add(armour.Name, armour); } }
public override object Clone() { string[] allowedClasses = new string[AllowableClasses.Count]; for (int i = 0; i < AllowableClasses.Count; i++) allowedClasses[i] = AllowableClasses[i]; Armour armour = new Armour(Name, Type, Price, Weight, ArmourLocation, DefenceValue, DefenceModifier, allowedClasses); return armour; }