Skip to content
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

Add Molten Strike (+Zenith) ball average overlap calculations #8427

Merged
merged 5 commits into from
Feb 20, 2025

Conversation

andyli00
Copy link
Contributor

Fixes #8426

Description of the problem being solved:

Molten Strike and it's transfigured version now have calculations for average ball overlap on single targets.

Zenith also has a weighted average of its normal and 5th attack balls to estimate overall ball dps.

Steps taken to verify a working solution:

  • tested on various molten strike builds on poe.ninja and calculations compared to the online calculator
  • correctly factors # projectiles, quality, and increased/reduced aoe and projectile speed

Link to a build that showcases this PR:

https://poe.ninja/builds/settlers/character/turdtwisterx%234882/NeedForSteveUnderground

Before screenshot:

image
image

After screenshot:

image

overlap chance calcs
image
image

zenith weighted average for overall ball dps
image
I had do a bit of a workaround in making an effective multiplier instead of actually averaging the two final dps values for normal and 5th attack balls because afaik there's no way to know those values in the preDamageFunc. The math is right though.

This is a little big for my first PR, so if there's anything I'm missing please do let me know. Feedback is welcome and appreciated, especially for the zenith weighted average if there's any better way to do that.

Copy link
Member

@Wires77 Wires77 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great, thanks for the PR! You're right in that there isn't a way to use the DPS values in the preDamageFunc, so I think the way you did it is fine. You could add some tests, but I'm not going to let that hold up merging this since it's been sitting for a bit already and it's limited in scope

@Wires77 Wires77 merged commit 969810d into PathOfBuildingCommunity:dev Feb 20, 2025
@Wires77 Wires77 added the enhancement New feature, calculation, or mod label Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature, calculation, or mod
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Molten Strike - add average ball overlap calculations
2 participants