-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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 Holy Relic Nova triggering #4051
Add support for Holy Relic Nova triggering #4051
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could definitely do with the actor treatment, but otherwise looks good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just add the one comment
src/Modules/CalcPerform.lua
Outdated
breakdown = env.minion.breakdown | ||
output = env.minion.output | ||
|
||
trigRate = calcActualTriggerRate(env, source, sourceAPS, spellCount, output, breakdown, false, true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason:
trigRate = calcActualTriggerRate(env, source, sourceAPS, spellCount, output, breakdown, false, true)
isn't
trigRate = calcActualTriggerRate(env, source, sourceAPS, spellCount, env.minion.output, env.minion.breakdown, false, true)
?
That should work and eliminate the need for the "ugly hack".
src/Modules/CalcPerform.lua
Outdated
local sourceHitChance = GlobalCache.cachedData["CACHE"][uuid].HitChance | ||
trigRate = trigRate * sourceHitChance / 100 | ||
if breakdown then | ||
breakdown.Speed = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use env.minion.breakdown
instead of breakdown
src/Modules/CalcPerform.lua
Outdated
trigRate = trigRate * sourceHitChance / 100 | ||
if breakdown then | ||
breakdown.Speed = { | ||
s_format("%.2fs ^8(adjusted trigger rate)", output.ServerTriggerRate), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use env.minion.output
instead of output
src/Modules/CalcPerform.lua
Outdated
end | ||
|
||
breakdown = breakdownBak | ||
output = outputBak |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unnecessary if we do it the other way
Indeed, good point. Thank you for the suggestion! |
LGTM |
Description of the problem being solved:
Summon Holy Relic's Nova skill is triggered but wasn't treated as such by PoB.
Could be further improved by refactoring to use an actor instead of a
minion
Boolean like other parts of the codebase.Steps taken to verify a working solution:
Link to a build that showcases this PR:
https://pastebin.com/6JtUMH0p (credit to https://www.pathofexile.com/forum/view-thread/2717739)
Before & after screenshot:
https://imgur.com/a/v4l0Tzs