Skip to content

Fix rounding of scaled damage conversion percentages - #10263

Merged
LocalIdentity merged 3 commits into
devfrom
fix_conversion-calc
Aug 23, 2026
Merged

LocalIdentity merged 3 commits into
devfrom
fix_conversion-calc

Conversation

@LocalIdentity

Copy link
Copy Markdown
Contributor

Description of the problem being solved:

Fixes 2 issues
The game rounds every scaled conversion destination to a whole percentage point before summing the converted amount.
e.g. Three 40% conversions become 33%, 33%, and 33% instead of the 33.33% PoB currently uses

Only round converted damage at the end instead of the start of the calculation path. This prevents each recursive conversion step from creating or losing damage values.

Link to a build that showcases this PR:

https://maxroll.gg/poe/pob/rj6khq0i

Before screenshot:

image

After screenshot:

image

LocalIdentity and others added 2 commits August 21, 2026 17:58
The game rounds every scaled conversion destination to a whole percentage point before summing the converted amount.
e.g. Three 40% conversions become 33%, 33%, and 33% instead of the 33.33% PoB currently uses
Only round converted damage at the end instead of the start of the calculation path. This prevents each recursive conversion step from creating or losing damage values.
@LocalIdentity LocalIdentity added the bug: calculation Numerical differences label Aug 21, 2026
@LocalIdentity
LocalIdentity merged commit 468911e into dev Aug 23, 2026
3 checks passed
@LocalIdentity
LocalIdentity deleted the fix_conversion-calc branch August 23, 2026 09:59
@LocalIdentity LocalIdentity added the pob2 Label for features that should be ported over to PoB-PoE2 label Aug 29, 2026
LocalIdentity added a commit to PathOfBuildingCommunity/PathOfBuilding-PoE2 that referenced this pull request Aug 30, 2026
* Apply changes from PathOfBuildingCommunity/PathOfBuilding#10263

* fix port

---------

Co-authored-by: LocalIdentity <LocalIdentity@users.noreply.github.com>
Co-authored-by: LocalIdentity <localidentity2@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug: calculation Numerical differences pob2 Label for features that should be ported over to PoB-PoE2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant