Skip to content

Fix Mana cost efficiency rounding - #10254

Open
LocalIdentity wants to merge 1 commit into
devfrom
fix_cost-efficiency-rounding
Open

Fix Mana cost efficiency rounding#10254
LocalIdentity wants to merge 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
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.

1 participant