EXPORT int getParam_MaxLife(CritterMutual& cr, uint){ int val = cr.Params[ST_MAX_LIFE] + cr.Params[ST_MAX_LIFE_EXT] + cr.Params[ST_STRENGTH] + cr.Params[ST_ENDURANCE] * 2; return CLAMP(val, 1, 9999);}
#define CLAMP #(x,low,high) (((x)>(high))?(high):(((x)<(low))?(low):(x)))