Skip to content

Add character savedata migration to sanitize previous alt job titles #5434

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

Conversation

LikeLakers2
Copy link
Collaborator

@LikeLakers2 LikeLakers2 commented Feb 12, 2025

About The Pull Request

This change should've been included in #5430, but I forgot.

This adds a migration to save data, to sanitize previous alt job titles solely to those that are allowed. This check will only happen once per character, when they are next loaded, and then never again.

This has the unfortunate side effect of cleaning out any alt job titles that were renamed/removed (which we can consider otherwise valid job titles), but it ensures we only have allowed job titles.

Save file migrations will trigger a local backup of the save data - so if I bugged up something in this code (which I quadruple-checked to ensure I didn't, but still!), the old un-updated save data will be available to be restored.

Changelog

🆑MichiRecRoom
code: Alt job titles will be sanitized the next time your character data is loaded. Most people will be unaffected - but if you used an alt job title that was previously removed or renamed, you may find that said job title is no longer applied. Sorry!
/:cl:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code: Fix fix da bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants