public void CheckCharStats(character ch)
{
//Wrap our code inside a catcher
try
{
//Stats checks
if (ch.Stat.AttackPower < 0)
Math.Abs(ch.Stat.AttackPower);
if (ch.Stat.Hit < 0)
Math.Abs(ch.Stat.Hit);
if (ch.Stat.MagDef < 0)
Math.Abs(ch.Stat.MagDef);
if (ch.Stat.PhyDef < 0)
Math.Abs(ch.Stat.PhyDef);
if (ch.Stat.MinPhyAttack < 0)
Math.Abs(ch.Stat.MinPhyAttack);
if (ch.Stat.MinMagAttack < 0)
Math.Abs(ch.Stat.MinMagAttack);
if (ch.Stat.MaxPhyAttack < 0)
Math.Abs(ch.Stat.MaxPhyAttack);
if (ch.Stat.MaxMagAttack < 0)
Math.Abs(ch.Stat.MaxMagAttack);
if (ch.Information.XP < 0)
Math.Abs(ch.Information.XP);
}
catch (Exception ex)
{
Console.WriteLine("Check Char Stats Error {0}", ex);
Systems.Debugger.Write(ex);
}
}