int32 Client::CalcCHA() { int32 val = m_pp.CHA + itembonuses.CHA + spellbonuses.CHA; int32 mod = aabonuses.CHA; CHA = val + mod; if (CHA < 1) { CHA = 1; } int m = GetMaxCHA(); if (CHA > m) { CHA = m; } return (CHA); }
int16 Client::CalcCHA() { int16 val = m_pp.CHA + itembonuses.CHA + spellbonuses.CHA; int16 mod = aabonuses.CHA; if(val>255 && GetLevel() <= 60) val = 255; CHA = val + mod; if(CHA < 1) CHA = 1; int m = GetMaxCHA(); if(CHA > m) CHA = m; return(CHA); }