Skip to content

Curse effect rounding discrepancy #2225

@rwZIFb7N

Description

@rwZIFb7N

Check version

  • I'm running the latest version of Path of Building and I've verified this by checking the changelog

Check for duplicates

  • I've checked for duplicate open and closed issues by using the search function of the issue tracker

Check for support

  • I've checked that the calculation is supposed to be supported. If it isn't please open a feature request instead (Red text is a feature request).

What platform are you running Path of Building on?

Windows

What is the value from the calculation in-game?

In game displays a reduction of enemy chaos resistance of -42%

Image

What is the value from the calculation in Path of Building?

In pob the calculation shows -41% chaos resistance

Image Image

How to reproduce the issue

  1. New pob
  2. Add despair curse
  3. Add essence drain or a wand with chaos bolt to observe pobs resistance calculation.
  4. Modify curse magnitude so that theoretical calculation would have a trialing decimal of ##.500 or higher.
  5. Observe how PoB rounds this value down
  6. In game will round this value upwards.

In my case, I have curse magnitude of +79%
And then less effect from blasphemy of 46%
Level 12(11+1) despair curse base of -43% chaos resistance.

The theoretical calculation is simple as shown in the curse effect mod calculation screenshot.
-43 * 1.79 * .54 = 41.5638
In game this gets rounded to nearest whole (up) of 42%, in pob this gets rounded down to 41%.

I picked up and dropped a couple 6% curse nodes on my tree to further observe in game behavior and found that with a theoretically calculated value with a trailing decimal of less than ##.500 it gets rounded downwards in both pob and in game.

PoB for PoE2 build code

https://maxroll.gg/poe2/pob/6e3lop0h

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions