
if (x != null && !OverMaxed)
{
StartingValue = int.Parse(x.Value);
MaxValue = int.Parse(x.Attribute("max").Value);
}
else if (x != null && OverMaxed)
{
StartingValue = int.Parse(x.Value);
MaxValue = int.Parse(x.Attribute("max").Value) + 20;
}