Fix race specific equipment and sexchange issue #5622
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.
I affirm:
What does this pull request do?
This PR prevents players that use the sexchange addon from equipping gear they should not be able to equip (such as RSE gear of different races). This is done by adding a mod that stores the valid races for any RSE gear and then checking this mod server side when players change gear (thus preventing the change). The mod stores a multi-bit flag similar to how the jobs flag works.
Fixes #1147
Steps to test these changes
Try to equip different RSE gear after using the sexchange addon to change your race on the client side. Notice that you are no longer able to equip RSE gear of the race you changed to.