bool recalculateBaseAttribute(uint attr)
{
//LOG_DEBUG("Being: Received update attribute recalculation request for "
// << attr << ".");
//if (!mAttributes.count(attr))
//{
// LOG_DEBUG("Being::recalculateBaseAttribute: " << attr << " not found!");
// return false;
//}
//double newBase = getAttribute(attr);
//switch (attr)
//{
//case ATTR_HP_REGEN:
// {
// double hpPerSec = getModifiedAttribute(ATTR_VIT) * 0.05;
// newBase = (hpPerSec * TICKS_PER_HP_REGENERATION / 10);
// }
// break;
//case ATTR_HP:
// double diff;
// if ((diff = getModifiedAttribute(ATTR_HP)
// - getModifiedAttribute(ATTR_MAX_HP)) > 0)
// newBase -= diff;
// break;
//case ATTR_MAX_HP:
// newBase = ((getModifiedAttribute(ATTR_VIT) + 3)
// * (getModifiedAttribute(ATTR_VIT) + 20)) * 0.125;
// break;
//case ATTR_MOVE_SPEED_TPS:
// newBase = 3.0 + getModifiedAttribute(ATTR_AGI) * 0.08; // Provisional.
// break;
//case ATTR_MOVE_SPEED_RAW:
// newBase = utils::tpsToRawSpeed(
// getModifiedAttribute(ATTR_MOVE_SPEED_TPS));
// break;
//case ATTR_INV_CAPACITY:
// // Provisional
// newBase = 2000.0 + getModifiedAttribute(ATTR_STR) * 180.0;
// break;
//}
//if (newBase != getAttribute(attr))
//{
// setAttribute(attr, newBase);
// return true;
//}
//LOG_DEBUG("Being: No changes to sync for attribute '" << attr << "'.");
return false;
}