Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix negative skill xp and add debugging #50929

Merged
merged 1 commit into from Aug 20, 2021

Conversation

eltank
Copy link
Contributor

@eltank eltank commented Aug 20, 2021

Summary

Bugfixes "Fix negative skill xp"

Purpose of change

Fixes #50921, negative skill xp prevents skill gain

Describe the solution

For players affected by the bug, reset the xp to 0 on load so they can continue training their skill.
Add checks in train() to prevent _exercise from going negative and print debugging info if it would have.

Describe alternatives you've considered

Testing

Additional context

@kevingranade kevingranade merged commit cc50de2 into CleverRaven:master Aug 20, 2021
@eltank eltank deleted the fix_negative_xp branch August 20, 2021 18:41
@actual-nh actual-nh added <Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` Code: Debug Debugging and troubleshooting the game, also includes the debug menu Mechanics: Effects / Skills / Stats Effects / Skills / Stats labels Aug 20, 2021
@Tamiore
Copy link
Contributor

Tamiore commented Aug 21, 2021

Seems like the problem (or something related) is still here:
#50941

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
<Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` Code: Debug Debugging and troubleshooting the game, also includes the debug menu Mechanics: Effects / Skills / Stats Effects / Skills / Stats
Projects
None yet
Development

Successfully merging this pull request may close these issues.

-21M xp on skill means no way to progress
4 participants