Merge pull request #6129 from Heroman3003/mask-helmet-eating

Allows liquidfoods to be eaten through protective gear
This commit is contained in:
Atermonera
2019-04-27 15:53:37 -08:00
committed by GitHub
7 changed files with 48 additions and 21 deletions

View File

@@ -201,6 +201,14 @@ emp_act
return gear
return null
/mob/living/carbon/human/proc/check_mouth_coverage_survival()
var/obj/item/organ/external/H = organs_by_name[BP_HEAD]
var/list/protective_gear = H.get_covering_clothing(FACE)
for(var/obj/item/gear in protective_gear)
if(istype(gear) && (gear.body_parts_covered & FACE) && !(gear.item_flags & FLEXIBLEMATERIAL) && !(gear.item_flags & ALLOW_SURVIVALFOOD))
return gear
return null
/mob/living/carbon/human/proc/check_shields(var/damage = 0, var/atom/damage_source = null, var/mob/attacker = null, var/def_zone = null, var/attack_text = "the attack")
for(var/obj/item/shield in list(l_hand, r_hand, wear_suit))
if(!shield) continue