-
Notifications
You must be signed in to change notification settings - Fork 359
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
Prevent random slots from hiding character noses and hair #1028
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would probably be better to have clothing check if it's where it should be before doing things instead of adding yet another check against pockets.
I don't think that's necessary, if it's not in the pocket slot then it's either equipped in the right place or somewhere in the inventory which doesn't count as clothing |
Death is suggesting future-proofing clothing; rather than band-aiding this. i.e if we get more clothing slots in the future, or a character gets some new type of wacky clothing slot or feature. Less so about overdoing this simple fix and more future-prevention. |
There are a variety of situations where it may be equipped to something that isn't a specific 'pocket' slot, and designing this in a way that any additions in YAML cause this system to break isn't a good design pattern. |
If someone were to add a normal clothing slot this wouldn't affect much since this is only aimed towards masks and hats (ones with "HidesNose" and "HidesHair" tag); I'll see if I can improve it somehow. |
This already exists?? Don't spider people literally have a non-pocket free slot?? You also just literally don't gain anything by not doing it the proper way. |
Arachnids have two extra pocket slots, I checked and they really are flagged as pocket slots, I'm more afraid of whatever is called "suitstorage". |
It now only checks for the necessary slots, masks would only hide your nose/hair if it's on your face and hats if it's on your head. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't this also affect our upstream?
Just tested here and upstream also suffers from the same issue (#982), would fixing it here also fix it there? I'm kind of new to this |
No, its the other way around. They cannot take fixes from here as we are under an incompatible license, however, changes they make will make their way down to us. It is better to contribute fixes to them, and have it make its way down to us. |
Long story short, changes that affect files that aren't namespaced as DeltaV, Nyanotrasen or SimpleStation(I think) should be sent to https://github.com/space-wizards/space-station-14 instead, as that way it'll reach most server, instead of only benefiting us and our downstreams. |
Alright, thanks for telling me so I should send a PR to upstream instead, I'll close this one. |
Why / Balance
Small change that fixes #982
Technical details
Changed the enumerator at line 97 to make it check only the "HEAD" and "MASK" slots.
Fixed formatting at line 167.
Media