Skip to content

Conversation

@mortentc
Copy link
Contributor

Fixes a display bug of leech calculations when instant leech is in effect.

Description of the problem being solved:

With the new instant leech mastery, PoB added a breakdown of instant leech as part of the calculations for life leech rate.
The breakdown is located under Calcs > Leech & Gain on Hit > Life Leech Rate.
The breakdown however uses instantLeechProportion * nonInstantLeechPool, instead of using the total leech pool.

Steps taken to verify a working solution:

  • Visually confirming the displayed calculation

Link to a build that showcases this PR:

https://pobb.in/U-bPLFcSdcB7

Before screenshot:

image

After screenshot:

image

Copy link
Contributor

@QuickStick123 QuickStick123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be equivalent but only uses the variable once.

Also nice catch.

@QuickStick123 QuickStick123 added the user-interface Changes that only affect the UI label Apr 12, 2023
@LocalIdentity LocalIdentity merged commit 235d0ac into PathOfBuildingCommunity:dev Apr 12, 2023
Dullson pushed a commit to Dullson/PathOfBuilding that referenced this pull request Dec 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

user-interface Changes that only affect the UI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants