Add AdjustSkillExpForLowLevels to AddSkillPointsToPlayer#738
Add AdjustSkillExpForLowLevels to AddSkillPointsToPlayer#738ArchangelWTF merged 7 commits intosp-tarkov:developfrom
Conversation
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||
This PR aims to add scaled skill leveling for hideout actions to mimic the clients and live Tarkov's behavior.
As the internal progress per level is always 100, but the visual on the UI changes in the first 10 levels (starts at 10, +10 per level), it is necessary to scale the internal progression when provided with skill progression values.
Expectation is calling
AddSkillPointsToPlayerwith 0.4pointsToAddToSkillshould increase the progression on the UI for the player by 0.4. Currently this is not done, leading the leveling of levels 1-10 take as long as any other level beyond that for skills provided through the SPT server.It is based on the unused
QuestHelper.AdjustSkillExpForLowLevels, which has been moved toProfileHelper, refactored and the original unused function removed.Unit tests were added with exhaustive examples for adding skill points within 1-11, multi-level boundaries for each level between 1-11 and skill point assignments leading to multiple level jumps.