Skip to content

Modify the accuracy of the effective distance #218

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Leelethe opened this issue Aug 25, 2021 · 1 comment
Open

Modify the accuracy of the effective distance #218

Leelethe opened this issue Aug 25, 2021 · 1 comment

Comments

@Leelethe
Copy link

I tried to modify the maximum Fraction Digits of the effective distance by modifying targetbars.js. But I found in debugging that the effective distance returned by the trigger event is an integer. Is there any other way to modify this maximum Fraction Digits? I really like to output at the farthest distance, so that when dealing with the mechanism, it will not run too far and lose damage. That’s why I had this idea, and wanted to know if I could be accurate to decimals instead of rounding up. thx

@quisquous
Copy link

The effective distance is an integer in memory, unfortunately.

If you want to fix this, I think you'd need to dig up the memory offset of the combatant radius and add it to CombatantMemory. Then you could calculate EffectiveDistance by using the Distance calculation and subtracting the radius.

You can use distance instead of effective distance in the short term to figure out how far to run from the center of the mob rather than its edge.

sandtechnology pushed a commit to sandtechnology/OverlayPlugin that referenced this issue Sep 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants