opentibiabr / canary

Canary Server 13.x for OpenTibia community.
https://docs.opentibiabr.com/
GNU General Public License v2.0
374 stars 619 forks source link

Diamond Arrow formula doesn't account for Bow's damage #2546

Closed suencet closed 6 months ago

suencet commented 6 months ago

Priority

Low

Area

What happened?

The damage formula for Diamond Arrow: function onGetFormulaValues(player, skill, attack, factor) local distanceSkill = player:getEffectiveSkillLevel(SKILL_DISTANCE) local min = (player:getLevel() / 5) local max = (0.09 * factor) * distanceSkill * 37 + (player:getLevel() / 5) return -min, -max end

The attack point in that formula seem to always be 37, which is basic diamond arrow attack, if I wear soulbleeder, the attack value on Global Tibia would be 45 (37 + 8), here on Canary it stays 37. This is a big difference for paladin players, their bow upgrades are not worth as much because of that since only the distance modifier helps them.

I tested it by making a bow with +2000 attack. Using Diamond Arrows I felt no difference between +2000 bow and regular one but using any other arrow I could see the +2000 attack working.

What OS are you seeing the problem on?

Linux, Windows

Code of Conduct

paczielny commented 6 months ago

https://github.com/opentibiabr/canary/issues/1478

svetrey commented 6 months ago

2560