// Speed.js

// Defines the functions to maintain the movement table.

// Dependencies:
//    debug.js
//    general.js

// void SpeedCalc(void)
// Calculates the total Speed.
function SpeedCalc()
{
  if (disable_autocalc())
    return;

  ZeroFill(sheet().SpeedBase, sheet().SpeedArmor, sheet().SpeedItem, sheet().SpeedMisc);

  sheet().Speed.value = Clean(Add(sheet().SpeedBase.value, sheet().SpeedArmor.value, sheet().SpeedItem.value, sheet().SpeedMisc.value));

  debug.trace("Calculated Speed.");
}
