opentibiabr / canary

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

SkillTries gain presents progression error #2430

Open rokamdev opened 7 months ago

rokamdev commented 7 months ago

Priority

High

Area

What happened?

Any SkillTries progress (club, sword, axe, distance, fist, fishing, except Magic level) presents a progression error. It is always being added to the skill % gain in "whole" numbers (99%, 97%, 95%, ...), never "broken" % (98.76%, 96.62%, 94.26%, ...), however after logging out and logging in, the last advance is changed to % broken. The problem itself does not seem to be impactful, however it disregards the premium dummy, since the difference between a free dummy and a premium is 0.1x. Although it is not a considerable difference, the skill gains in both dummies are identical, making the premium dummy unfeasible for any SkillTries training. This problem happens with both exercise training and conventional training. Reinforcing that Magic Level training does not fit this problem, as it is not included in SkillTries and the calculation is based on mana expenditure. image image2 Images show the before and after progress after logging out and logging in. I believe the problem is related to a "uint_" added in the wrong location, but I searched the files, made some changes to test and the problem persists, beyond my ability to resolve. =/

What OS are you seeing the problem on?

Linux

Code of Conduct

Chapeleiiro commented 7 months ago

realmente tem esse erro

myallith commented 7 months ago

The part where updates when re-login to a broken % is correct.

The error lies in the variation according to progress.

github-actions[bot] commented 4 months ago

This issue is stale because it has been open 120 days with no activity.