tenta
uint32_t Player::getAttackSpeed() const
{
int32_t SpeedAttack;
return std::ceil(((weapon && weapon->getAttackSpeed() != 0) ? weapon->getAttackSpeed() * (1 - (getSkill(SKILL_FIST, SKILL_LEVEL) * 0.00375)) : (vocation->getAttackSpeed() / std::max((size_t)1, getWeapons().size()) * (1 - (getSkill(SKILL_FIST, SKILL_LEVEL) * 0.00375)))));
if (SpeedAttack < 500) {
return 500;
} else {
return (uint32_t) SpeedAttack;
}
}



info
Grupo: Campones
Registrado: 11/09/15
Posts: 48
Reputação: +2
up
up