public override string ToString() { string shieldString = base.ToString() + ", "; shieldString += DefenceValue.ToString() + ", "; shieldString += DefenceModifier.ToString(); foreach (string s in AllowableClasses) { shieldString += ", " + s; } return(shieldString); }
public override string ToString() { string ArmourString = base.ToString() + ", "; ArmourString += ArmourLocation.ToString() + ", "; ArmourString += DefenceValue.ToString() + ", "; ArmourString += DefenceModifier.ToString(); foreach (string s in AllowableClasses) { ArmourString += ", " + s; } return(ArmourString); }