mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-01-08 08:22:53 +00:00
Merge pull request #6129 from Heroman3003/mask-helmet-eating
Allows liquidfoods to be eaten through protective gear
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user