Skip to content

Pvp performance tracker: fix 1tick gear offset bug#187

Merged
Nightfirecat merged 5 commits into
runelite:masterfrom
Matsyir:pvp-performance-tracker
Mar 31, 2020
Merged

Pvp performance tracker: fix 1tick gear offset bug#187
Nightfirecat merged 5 commits into
runelite:masterfrom
Matsyir:pvp-performance-tracker

Conversation

@Matsyir

@Matsyir Matsyir commented Mar 31, 2020

Copy link
Copy Markdown
Contributor

There was a bug with the deserved damage where the gear was 1 tick behind the animation, which indicates an attack and saves stats. So, if you did a proper "1 tick" switch and attacked on the same tick, it would use the previous tick's gear for calculations and cause invalid values.

Had to call the main plugin's function using invokeLater, since the event calling this function occurs before other required data is loaded. Other small updates to support more weapons for deserved damage. Thanks again to Mazhar for helping me test & confirm the cause of the bug, and to the helpers in discord who helped me figure out the right solution, in addition to helping me actually implement it properly after I did it wrong. Didn't think we'd find the cause/solution so quick, sorry for an update so soon after the previous one.

Matsyir added 5 commits March 12, 2020 00:13
Now tracks 'deserved damage' and also fixed a lot of minor issues. Significantly optimized UI code.
Used invokeLater with the main plugin's function, since the event calling this function occurs before other required data is loaded. Other small updates to support more weapons for deserved damage.
@runelite-github-app

Copy link
Copy Markdown

@Nightfirecat Nightfirecat merged commit 23116fe into runelite:master Mar 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants