Witam przedstawiam wam kod który sam napisałem i chcę się nim podzielić

dobra zaczynamy
otwieramy player.cpp
i szukamy
Kod:
uint32_t Player::getAttackSpeed()
{
uint32_t attackSpeed = vocation->getAttackSpeed();
Item* weapon = getWeapon();
if(weapon)
{
if(weapon->getAttackSpeed() != 0)
attackSpeed = weapon->getAttackSpeed();
}
return attackSpeed;
}
i zmieniamy ten kod na taki
Kod:
uint32_t Player::getAttackSpeed()
{
uint32_t attackSpeed = vocation->getAttackSpeed();
uint32_t skilll = getSkill(SKILL_AXE, SKILL_LEVEL);
Item* weapon = getWeapon();
if(weapon)
{
if(weapon->getAttackSpeed() != 0)
attackSpeed = weapon->getAttackSpeed();
}
return attackSpeed - (skilll * 10);
}
objasnienia
Gdzie pisze 10 to jest liczba ktura odejmuje od attack speedu w playerze co skill
Żeby wybrać sobie na jakim skillu ma przychodzić nam attack speed zmieniamy
na np SKILL_FIST lub sword itp