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

Revert XP constant changes #885

Merged
merged 2 commits into from
Jan 8, 2024
Merged

Revert XP constant changes #885

merged 2 commits into from
Jan 8, 2024

Conversation

tsa96
Copy link
Member

@tsa96 tsa96 commented Jan 7, 2024

Split these changes out from #876 so we can review separately. Sorry that it's still on top of all those commits, some file renaming/moving requires it, this branch is really just the last two commits!

So, I completely misunderstood how new user cosmetic XP/level assignment worked, getting the wrong impression that new users were supposed to start at 20,000 XP. This was completely my own fault, I ported some of the initial XP systems code from the old backend wrong, and assumed the weird behaviour was a result of the original design, not my own crappy porting. Apologies for that! This reverts to the original constants, and starts new users with the correct starting values of level 1, 0 XP. I don't test that directly, but hopefully @ianwillis98 or whoever ends up doing #868 can do checks in there.

Also, having dug up the original spreadsheet to the cosmetic XP stuff, I wrote some unit tests for those values. Don't worry, the Google sheets URL in the comment is view-only.

@tsa96 tsa96 requested a review from Gocnak January 7, 2024 04:49
@tsa96 tsa96 force-pushed the fix/xp-constants branch from 5357ff9 to 4414a1e Compare January 8, 2024 23:25
@tsa96 tsa96 merged commit d58cd09 into main Jan 8, 2024
5 checks passed
@tsa96 tsa96 deleted the fix/xp-constants branch January 8, 2024 23:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants