Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #2520 .
Description of the problem being solved:
increased Arrow Speedparses toProjectileSpeedwithkeywordFlags = KeywordFlag.Arrow. The projectile speed conversions inCalcOffence.lualook up their source mods with a cfg that has no keyword flags, soMatchKeywordFlagsdrops every Arrow Speed mod. Plainincreased Projectile Speedhas no keyword flags and was converted fine, which is why only Arrow Speed (e.g. the Volant Quiver implicit) had no effect.Three conversions had this problem:
keywordFlags = KeywordFlag.Arrowto the lookup cfg. This is the bug from the issue.arrowSpeedAppliesToAreaOfEffect, Galvanic Arrow in PoE1): same one-line change. No PoE2 skill uses this stat at the moment, so it has no effect today; changed for consistency.{ }, so it ignored both Arrow Speed and Bolt Speed (flags = ModFlag.Crossbow). It now looks up the mods with the skill's ownskillCfg, so a bow skill picks up Arrow Speed and a crossbow skill picks up Bolt Speed, along with any other mods that apply to that skill. The converted Damage mod keeps the source mod's flags (bor(mod.flags, ModFlag.Projectile)), so a mod limited to one weapon does not turn into damage for the other weapon when dual wielding.The Projectile Acceleration change is broader than the other two: mods with skill-specific tags or flags that match the skill are now converted as well, not only flag-less ones. I think that matches what the stat says, but happy to split it into a separate PR if you prefer.
Not changed: "X% increased Projectile Speed with this Weapon" (local weapon mods) is still not picked up by any of the three conversions, because none of the lookups carry the weapon flag or hand condition. That was already the case before and would need a per-hand lookup, so I left it out of this PR.
Steps taken to verify a working solution:
TestOffence_spec.lua, both with a Heavy Bow and Bow Shot:50% increased Arrow Speedraises the skill's INC Damage by exactly 50.pathofbuilding-testscontainer: 913 successes / 0 failures.Link to a build that showcases this PR:
https://pobb.in/dArRc64TCxWo (from the issue): bow build with Feathered Fletching and an Arrow Speed quiver.
Before screenshot:
N/A (changing Arrow Speed had no effect on DPS)
After screenshot:
N/A