Skip to content

Conversation

@PJacek
Copy link
Contributor

@PJacek PJacek commented Jan 19, 2025

Fixes #378

Description of the problem being solved:

Offensive penetration wasn't properly handling cases when resistance was less than 0 before penetration.
Also updated defensive penetration calculations.

Steps taken to verify a working solution:

  • Load the provided build
  • Observe correct damage multipliers for damage taken and damage dealt

Link to a build that showcases this PR:

https://pobb.in/YMNosS6UIvf3

Before screenshot:

image
image

After screenshot:

image
image

@PJacek PJacek added the bug: calculation Numerical differences label Jan 19, 2025
@LocalIdentity LocalIdentity merged commit 2982901 into PathOfBuildingCommunity:dev Jan 19, 2025
2 checks passed
@PJacek PJacek mentioned this pull request Jan 19, 2025
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug: calculation Numerical differences

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Penetration calculation incorrectly zeroes Effective Resistances when Negative from other effects

2 participants