Where do I find in TFS 0.4.0 sources the "Arm" formula for equipments? I'm trying to reformulate the Arm formula in my server, but I'm not sure where it is. All I've found is in "player.cpp" the following code:
But it seems like there's something else... right?
Thanks!
C++:
int32_t Player::getArmor() const
{
int32_t i = SLOT_FIRST, armor = 0;
for(; i < SLOT_LAST; ++i)
{
if(Item* item = getInventoryItem((slots_t)i))
armor += item->getArmor();
}
if(vocation->getMultiplier(MULTIPLIER_ARMOR) != 1.0)
return int32_t(armor * vocation->getMultiplier(MULTIPLIER_ARMOR));
return armor;
}
But it seems like there's something else... right?
Thanks!