Skip to content

Commit 08f1eb8

Browse files
Fix set_body_cover_flags() (#7145)
<!-- Write **BELOW** The Headers and **ABOVE** The comments else it may not be viewable. --> <!-- You can view Contributing.MD for a detailed description of the pull request process. --> ## About The Pull Request As a programmer your code is like your children, hit them to make them work harder. Fixes /obj/item/proc/set_body_cover_flags() to actually set body cover flags. This should fix: -Being unable to eat with your mask down -Masks working for breathing when down -Raised glasses like welding helmets giving you protection when up -Rolled down uniforms still protect your torso -Rolled up sleeves still protect your arms -Chameleon gear not cloning body protection flags <!-- Describe The Pull Request. Please be sure every change is documented or this can delay review and even discourage maintainers from merging your PR! --> ## Why It's Good For The Game <!-- Argue for the merits of your changes and how they benefit the game, especially if they are controversial and/or far reaching. If you can't actually explain WHY what you are doing will improve the game, then it probably isn't good for the game in the first place. --> ## Changelog <!-- If your PR modifies aspects of the game that can be concretely observed by players or admins you should add a changelog. If your change does NOT meet this description, remove this section. Be sure to properly mark your PRs to prevent unnecessary GBP loss. You can read up on GBP and it's effects on PRs in the tgstation guides for contributors. Please note that maintainers freely reserve the right to remove and add tags should they deem it appropriate. You can attempt to finagle the system all you want, but it's best to shoot for clear communication right off the bat. --> :cl: fix: Fix unable to eat when mask is down /:cl: <!-- Both :cl:'s are required for the changelog to work! You can put your name to the right of the first :cl: if you want to overwrite your GitHub username as author ingame. --> <!-- You can use multiple of the same prefix (they're only used for the icon ingame) and delete the unneeded ones. Despite some of the tags, changelogs should generally represent how a player might be affected by the changes rather than a summary of the PR's contents. -->
1 parent 8cfab29 commit 08f1eb8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

code/game/objects/items.dm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,8 @@ modules/mob/living/carbon/human/life.dm if you die, you will be zoomed out.
824824

825825
//* Flags *//
826826

827-
/obj/item/proc/set_body_cover_flags()
827+
/obj/item/proc/set_body_cover_flags(new_body_cover_flags)
828+
body_cover_flags = new_body_cover_flags
828829
inv_inside.invalidate_coverage_cache()
829830

830831
//* Interactions *//

0 commit comments

Comments
 (0)