Fix 3.1 xp multiplier calc for levels 95-99 #8283
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of the problem being solved:
PoB doesn't currently take into account the experience penalty for levels 95-99 that GGG applied in patch 3.1 and the experience multipliers shown in PoB are higher than they should be when you hover the level at top center of the window.
An explanation of the numbers:
I initially was going to follow the formula shown on poewiki.net
1/(1+[number from patch notes])
. However after reading a couple of reddit posts (reddit post 1, reddit post 2) of people experiencing less experience gained than you would expect from reading the patch notes. People were experiencing ~66% less experience gained rather than the stated 40% less. As the second post points out the patch notes used1-[in-game multiplier]
to describe the increase of experience needed.Steps taken to verify a working solution:
I have generated these numbers using Google Sheets to use as a reference for verifying the values
Player level ↓
Full sheet of experience numbers.
This site applies the 3.1 experience penalty in its calculations so this can be used as a 3rd party to verify the correct numbers.
Level 95 Area Level 83
Level 99 Area Level 83
It shows the penalty number so to convert that into a multiplier as with pob you'll have to do a little math.
100-xp penalty = experience multiplier
Link to a build that showcases this PR:
This is build agnostic, only the character level has relevance and can just create a new empty pob and set the level
Before screenshot:
Level 95
Level 99
After screenshot:
Level 95
Level 99
Verified co-conspirator: @Nightblade