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 race specific equipment and sexchange issue #5622

Merged
merged 1 commit into from
May 8, 2024

Conversation

TracentEden2
Copy link

I affirm:

  • I understand that if I do not agree to the following points by completing the checkboxes my PR will be ignored.
  • I understand I should leave resolving conversations to the LandSandBoat team so that reviewers won't miss what was said.
  • I have read and understood the Contributing Guide and the Code of Conduct.
  • I have tested my code and the things my code has changed since the last commit in the PR and will test after any later commits.

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.

@TracentEden2 TracentEden2 marked this pull request as ready for review May 7, 2024 11:29
@claywar claywar merged commit bdd98f7 into LandSandBoat:base May 8, 2024
12 checks passed
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.

Race restricted equipment / RSE is not restricted
4 participants