Skip to content

Commit

Permalink
fix: factor value for distance weapons
Browse files Browse the repository at this point in the history
  • Loading branch information
dudantas committed Dec 21, 2024
1 parent 1b088d9 commit a9b7c07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/items/weapons/weapons.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -932,7 +932,7 @@ int32_t WeaponDistance::getWeaponDamage(const std::shared_ptr<Player> &player, c
const float attackFactor = player->getAttackFactor();

int32_t minValue = player->getLevel() / 5;
int32_t maxValue = std::round((0.09f * attackFactor) * attackSkill * attackValue + minValue);
int32_t maxValue = std::round((3.0f * attackFactor) * attackSkill * attackValue + minValue);
if (maxDamage) {
return -maxValue;
}
Expand Down

0 comments on commit a9b7c07

Please sign in to comment.