Skip to content

Fix Mana cost efficiency rounding - #10254

Merged
LocalIdentity merged 1 commit into
devfrom
fix_cost-efficiency-rounding
Aug 23, 2026
Merged

LocalIdentity merged 1 commit into
devfrom
fix_cost-efficiency-rounding

Conversation

@LocalIdentity

Copy link
Copy Markdown
Contributor

Description of the problem being solved:

PoE rounds flat upfront resource costs to whole values after cost efficiency is applied.
PoB was not rounding so it retained a fractional result causing costs such as 12 mana with 25% efficiency to appear as 9.6 instead of 10.

Link to a build that showcases this PR:

https://pobb.in/GlAR21JdjdSZ

Before screenshot:

image

After screenshot:

image

PoE rounds flat upfront resource costs to whole values after cost efficiency is applied.
PoB was not rounding so it retained a fractional result causing costs such as 12 mana with 25% efficiency to appear as 9.6 instead of 10.
@LocalIdentity LocalIdentity added the bug: calculation Numerical differences label Aug 20, 2026
@LocalIdentity LocalIdentity mentioned this pull request Aug 20, 2026
3 tasks
@LocalIdentity
LocalIdentity merged commit 0346b91 into dev Aug 23, 2026
3 checks passed
@LocalIdentity
LocalIdentity deleted the fix_cost-efficiency-rounding branch August 23, 2026 09:58
@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 29, 2026
* Apply changes from PathOfBuildingCommunity/PathOfBuilding#10254

* Fix test

* Comment

* Fix test

---------

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