// health.js

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

// void SetHealth(void)
// Sets Bloodied and Healing Surge values.
function SetHealth()
{
  if (disable_autocalc())
   return;

  sheet().Bloodied.value = Math.floor(sheet().HP.value / 2);
  sheet().SurgeValue.value = Math.floor(sheet().HP.value / 4);

  debug.trace("Set the Health fields.");
}
