Why this need to use division? (Life, Mana - gObjSetCharacter)
Hi, i found at user.cpp > gObjSetCharacter function that code
Code:
lpMsg->MapX = lpObj->X;
lpMsg->MapY = lpObj->Y;
lpObj->TX = lpMsg->MapX;
lpObj->TY = lpMsg->MapY;
lpObj->m_OldX = lpObj->X;
lpObj->m_OldY = lpObj->Y;
lpObj->Experience = lpMsg->Exp;
lpObj->Strength = lpMsg->Str ;
lpObj->Dexterity = lpMsg->Dex ;
lpObj->Vitality = lpMsg->Vit ;
lpObj->Energy = lpMsg->Energy ;
lpObj->Life = lpMsg->Life;
lpObj->Life /= 10.0f;
lpObj->MaxLife = lpMsg->MaxLife;
lpObj->MaxLife /= 10.0f;
lpObj->Mana = lpMsg->Mana;
lpObj->Mana /= 10.0f;
lpObj->MaxMana = lpMsg->MaxMana;
lpObj->MaxMana /= 10.0f;
lpObj->Money = lpMsg->Money;
lpObj->Leadership = lpMsg->Leadership;
lpObj->ChatLimitTime = lpMsg->ChatLitmitTime;
lpObj->iFruitPoint = lpMsg->iFruitPoint;
if ( lpObj->Mana < 1.0f )
{
lpObj->Mana = 1.0f;
}
if ( lpObj->Life < 1.0f )
{
lpObj->Life = 1.0f;
}
And why that need to have a division by 10.0f at Life, MaxLife, Mana and MaxMana?
Some skilled user can aswer? :junglejane:
Thanks for read bro.
Re: Why this need to use division? (Life, Mana - gObjSetCharacter)