I have the same issuetfs 0.4 ??? not search return vocation->getAttackSpeed()
I have the same issuetfs 0.4 ??? not search return vocation->getAttackSpeed()
uint32_t getVocAttackSpeed() const {return vocation->getAttackSpeed();}
uint32_t getVocAttackSpeed() const {
return vocation->getAttackSpeed() - getPlayer()->getExtraAttackSpeed();
}
I answered correctly the question you asked, you must follow the tutorial correctly so you do not have any other type of errors.It didn't work... I got a huge list of compiling errors.
did i still needed to add
void Player::setPlayerExtraAttackSpeed(uint32_t speed)
{
extraAttackSpeed = speed;
}
somewhere
void Player::setPlayerExtraAttackSpeed(uint32_t speed)
{
extraAtt
find uint32_t Player::getAttackSpeed() const
16-18 lines below find
return (((_weapon && _weapon->getAttackSpeed() != 0) ? _weapon->getAttackSpeed() : (vocation->getAttackSpeed() / std::max((size_t)1, getWeapons().size()))) + modifiers);
and replace for this
return (((_weapon && _weapon->getAttackSpeed() != 0) ? _weapon->getAttackSpeed() : (vocation->getAttackSpeed() - getPlayer()->getExtraAttackSpeed() / std::max((size_t)1, getWeapons().size()))) + modifiers);
return ((weapon && weapon->getAttackSpeed() != 0) ? weapon->getAttackSpeed() : (vocation->getAttackSpeed() - getPlayer()->getExtraAttackSpeed() / std::max((size_t)1, getWeapons().size())));
I replaced the weapon line with the one you just given me , but I its saying syntax error
im using rev 3777
ok try with that once but copy it correctly because that message said u delete " ; "
int32_t modifiers = 0;
Item* _weapon = weapon;
return (((_weapon && _weapon->getAttackSpeed() != 0) ? _weapon->getAttackSpeed() : (vocation->getAttackSpeed() - getPlayer()->getExtraAttackSpeed() / std::max((size_t)1, getWeapons().size()))) + modifiers);
Sentbro i think the problem is on luascript not on player.cpp, send me a pm and ill try to solve it