Skip to content

Fix some odd edge-cases with head/face protection #6523

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

Merged
merged 2 commits into from
May 4, 2025

Conversation

Absolucy
Copy link
Member

@Absolucy Absolucy commented Apr 30, 2025

About The Pull Request

This refactors /mob/living/carbon/is_mouth_covered, /mob/living/carbon/is_eyes_covered, and /mob/living/carbon/is_pepper_proof to check ALL slots for the desired protection.

If a mask has the HEADCOVERSMOUTH flag, it will still count as covering their mouth like a helmet would.

The first example I could think of is the damned rabbit mask - it had HEADCOVERSMOUTH, and the examine would say it would protect against facehuggers, but it does not.

Why It's Good For The Game

bugfix

Changelog

🆑
fix: Fixed some weird edge cases with helmets/masks/etc that are supposed to cover your eyes or mouth.
fix: The Damned Rabbit Mask now actually blocks facehuggers like the examine says it should.
/:cl:

@Absolucy Absolucy added Code: Fix fix da bug Feature: Refactor/Rework Completely redoing a larger thing / recoding a thing labels Apr 30, 2025
@tired-wired tired-wired merged commit f2b0532 into Monkestation:master May 4, 2025
27 checks passed
github-actions bot added a commit that referenced this pull request May 4, 2025
@Absolucy Absolucy deleted the fix-protection-stuff branch May 5, 2025 00:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code: Fix fix da bug Feature: Refactor/Rework Completely redoing a larger thing / recoding a thing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants