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 support for spark maximum hits mode #7690

Conversation

Nerotox
Copy link
Contributor

@Nerotox Nerotox commented Jul 16, 2024

Fixes #7612 (at least the intention behind it).

Description of the problem being solved:

Adds a new mode for Spark & Spark alt qualities that uses the maximum amount of possible hits with the given spark duration assuming a 100% hitrate after each 0.66s cooldown period.

Didn't add the mode to Vaal Spark, as its mechanics are different to normal Spark & a DPS number is useless for it anyways.

Steps taken to verify a working solution:

  • Add spark gem
  • Select "Maximum Hits" mode
  • DPS should go up (baseline x3 without any duration)
  • spec some duration on the tree -> DPS should go up as soon as you hit a breakpoint.

Link to a build that showcases this PR:

https://pobb.in/18bN-kP4WaPe

Before screenshot:

image

After screenshot:

image
image
image

@Paliak Paliak added the enhancement New feature, calculation, or mod label Jul 17, 2024
local skillData = activeSkill.skillData
if activeSkill.skillPart == 2 then
skillData.dpsMultiplier = ( skillData.dpsMultiplier or 1 ) * math.floor( output.Duration / 0.66 )
output.SkillDPSMultiplier = ( skillData.dpsMultiplier or 1 )
Copy link
Member

Choose a reason for hiding this comment

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

This could never be 1, since we set skillData.dpsMultiplier right above it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

@LocalIdentity LocalIdentity merged commit cf06c36 into PathOfBuildingCommunity:dev Jul 21, 2024
2 checks passed
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.

Full DPS calculation of Spark should adjust for hit rate
4 participants