From f3c9a558e2198c9894f5df1ea54166a2858896c5 Mon Sep 17 00:00:00 2001 From: Tigercat2000 Date: Mon, 13 Apr 2015 11:44:14 -0700 Subject: [PATCH] Fixes an oversight with NO_BREATHE and corpses This fixes: - Issue #778 on https://github.com/ParadiseSS13/Paradise There was no sanity checking to test if mobs in range of a corpse have the NO_BREATHE flag. This commit adds such a check. It does not make sense for species like machine people to vomit. It may make sense for Slime People and Dionae, but, after all, it's sentient slime and a tree thing. Are they are even capable of regurgitating their food? --- code/modules/mob/living/carbon/human/life.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/modules/mob/living/carbon/human/life.dm b/code/modules/mob/living/carbon/human/life.dm index 94f4a93d38b..d3e99e45f8a 100644 --- a/code/modules/mob/living/carbon/human/life.dm +++ b/code/modules/mob/living/carbon/human/life.dm @@ -1616,6 +1616,8 @@ var/global/list/brutefireloss_overlays = list("1" = image("icon" = 'icons/mob/sc var/obj/item/clothing/mask/M = H.wear_mask if(M && (M.flags & MASKCOVERSMOUTH)) return + if(H.species && H.species.flags & NO_BREATHE) + return //no puking if you can't smell! H << "You smell something foul..." H.fakevomit()