HTML Code:
int CMover::GetMaxOriginManaPoint(BOOL bOriginal)
{
int nInt, nStr, nDex;
if (bOriginal)
{
nInt = m_nInt;
nStr = m_nStr;
nDex = m_nDex;
}
else
{
nInt = GetInt();
nStr = GetStr();
nDex = GetDex();
}
if (IsPlayer())
{
JobProp* pProperty = prj.GetJobProp(GetJob());
float factor = pProperty->fFactorMaxMP;
int nMaxMP = (int)(((((m_nLevel * 2.0f) + (nInt * 8.0f)) * factor) + 22.0f) + (nInt * factor) + (nStr * factor) + (nDex * factor));
return nMaxMP;
}
return ((m_nLevel * 2) + (nInt * 8) + 22) + (nStr * 5) + (nDex * 5);
}
If I want the str,dex also gain mana point is this correct?