El Man
«لَا إِلَٰهَ إِلَّا ٱللَّٰهُ»
- Joined
- Mar 23, 2013
- Messages
- 161
- Reaction score
- 33
How i make speed attack faster like evolution..
uint32_t Player::getAttackSpeed()
{
Item* tool = getWeapon();
const Weapon* weapon = g_weapons->getWeapon(tool);
int hit = vocation->getAttackSpeed();
if(!tool || !weapon){
int32_t result = hit;
return result;
}else{
int fasterhit = tool->getAttackSpeedAdd();
int slowerhit = tool->getAttackSpeedRemove();
int32_t result = hit - fasterhit + slowerhit;
return result;
}
}
need some help!
uint32_t Player::getAttackSpeed()
{
Item* tool = getWeapon();
const Weapon* weapon = g_weapons->getWeapon(tool);
int hit = vocation->getAttackSpeed();
if(!tool || !weapon){
int32_t result = hit;
return result;
}else{
int fasterhit = tool->getAttackSpeedAdd();
int slowerhit = tool->getAttackSpeedRemove();
int32_t result = hit - fasterhit + slowerhit;
return result;
}
}
need some help!