roriscrave
Advanced OT User
- Joined
- Dec 7, 2011
- Messages
- 1,188
- Solutions
- 34
- Reaction score
- 200
How i talked, this new formula of attack speed can cause bad performance (if for example have a lot of players online )?
When player have more fist skill, he hit more fast, so i changed
it
to it:
I keep thinking that he will recalculate this formula all the time:
is there another way "smarter" to do it? or not a big problem?
When player have more fist skill, he hit more fast, so i changed
it
C++:
uint32_t getAttackSpeed() const {
return vocation->getAttackSpeed();
}
C++:
uint32_t getAttackSpeed() const {
int32_t SpeedAttack;
SpeedAttack = vocation->getAttackSpeed() - (getSkillLevel(SKILL_FIST) * 10);
if (SpeedAttack < 200) {
return 200;
} else {
return (uint32_t) SpeedAttack;
}
}
C++:
SpeedAttack = vocation->getAttackSpeed() - (getSkillLevel(SKILL_FIST) * 10);