mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Removes MASK/HEADCOVERSMOUTH
Code that used to check this flag now checks body_parts_covered for FACE instead. Added a FLEXIBLEMATERIAL item flag to continue to allow vox to eat food without poisoning themselves.
This commit is contained in:
@@ -274,14 +274,14 @@
|
||||
if(H.head.body_parts_covered & EYES)
|
||||
eyes_covered = 1
|
||||
safe_thing = H.head
|
||||
if(H.head.flags & MASKCOVERSMOUTH)
|
||||
if((H.head.body_parts_covered & FACE) && !(H.head.item_flags & FLEXIBLEMATERIAL))
|
||||
mouth_covered = 1
|
||||
safe_thing = H.head
|
||||
if(H.wear_mask)
|
||||
if(!eyes_covered && H.wear_mask.body_parts_covered & EYES)
|
||||
eyes_covered = 1
|
||||
safe_thing = H.wear_mask
|
||||
if(!mouth_covered && H.wear_mask.flags & MASKCOVERSMOUTH)
|
||||
if(!mouth_covered && (H.wear_mask.body_parts_covered & FACE) && !(H.wear_mask.item_flags & FLEXIBLEMATERIAL))
|
||||
mouth_covered = 1
|
||||
safe_thing = H.wear_mask
|
||||
if(H.glasses && H.glasses.body_parts_covered & EYES)
|
||||
|
||||
Reference in New Issue
Block a user