Skip to content

Fix Drillneck per-pierce mods not being parsed - #2607

Merged
Wires77 merged 1 commit into
PathOfBuildingCommunity:devfrom
rajtik76:fix/drillneck-pierce-mods
Dec 2, 2026
Merged

Wires77 merged 1 commit into
PathOfBuildingCommunity:devfrom
rajtik76:fix/drillneck-pierce-mods

Conversation

@rajtik76

@rajtik76 rajtik76 commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Fixes #2560 .

Description of the problem being solved:

Drillneck's per-pierce mods were not applied:

Projectiles deal (42-64)% increased Damage with Hits for each time they have Pierced
Projectiles have (42-64)% increased Critical Hit chance for each time they have Pierced

ModParser.lua only knew the contracted wording for each time they've pierced, so the for each time they have Pierced part was left unparsed and the whole line was dropped from calculations.

Added the they have wording as a mod tag with the same PerStat / PiercedCount tag as the existing one, and regenerated ModCache.lua. The cache diff only touches the four Drillneck entries (plus one stale merged-line entry and a chunk boundary moved by the regeneration).

Steps taken to verify a working solution:

  • Added a parse spec to TestItemParse_spec.lua: both lines parse fully, with the PerStat PiercedCount tag and no leftover text.
  • Added a calc spec to TestAttacks_spec.lua: Shortbow + Drillneck + Lightning Arrow, checks that the damage and crit chance INC sums go up by exactly 50 per pierce at 0, 1 and 2 times pierced (set through the "# of times Skill has Pierced" config).
  • Both specs fail without the fix. The calc spec also fails if the tag only applies once (StatThreshold instead of PerStat).
  • Full suite in the pathofbuilding-tests container: 905 successes / 0 failures.

Link to a build that showcases this PR:

Any bow build with Drillneck equipped and "# of times Skill has Pierced" set in the Configuration tab.

Before screenshot:

N/A (the mods were shown as partially unrecognised and had no effect on DPS)

After screenshot:

N/A

@Wires77 Wires77 added the bug: accuracy Wording differences label Dec 2, 2026
@Wires77
Wires77 merged commit fc55c0b into PathOfBuildingCommunity:dev Dec 2, 2026
@rajtik76
rajtik76 deleted the fix/drillneck-pierce-mods branch December 2, 2026 05:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug: accuracy Wording differences

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Drillneck: "for each time they have Pierced" modifiers are not parsed

2 participants