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 Clothing Quick-Equip #507

Merged

Conversation

Mnemotechnician
Copy link
Contributor

@Mnemotechnician Mnemotechnician commented Jul 2, 2024

Description

For some reason, ClothingSystem.TryEquip would return false if there's a do-after to equip the clothing. This had caused all quick-equip attempts on SMALL ITEMS to fail and ended up with every SMALL clothing item being equipped into one of the pocket slots (which have no equip delays).

Also fixes quick swap - see the comments below.

Changelog

🆑

  • fix: Equipping clothing using the Z key works correctly again.

@github-actions github-actions bot added the Changes: C# Changes any cs files label Jul 2, 2024
@SimpleStation14 SimpleStation14 changed the title Fix clothing quick-equip Fix Clothing Quick-Equip Jul 2, 2024
@Mnemotechnician
Copy link
Contributor Author

Mnemotechnician commented Jul 2, 2024

Apparently doing the same to TryUnequip fixes quick swap too :trollface:

Nevermind, it does not.

@Mnemotechnician
Copy link
Contributor Author

Right, I decided to just make the clothing system skip pocket slots while quick equipping. It's actually stupid that pockets were considered valid slots for this action, because for example if you were to hold and ID card and press Z, it would swap the item in your pocket with that ID, which had personally pissed me off before. So this should kill two bugs with one stone.

Copy link
Contributor

@DangerRevolution DangerRevolution left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hopefully this doesn't have any consequences we can't foresee

@VMSolidus VMSolidus merged commit 2e8e56f into Simple-Station:master Jul 3, 2024
12 checks passed
SimpleStation14 added a commit that referenced this pull request Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changes: C# Changes any cs files
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants