From 9a303ea5768a480667570f0a84f7dd71c98054a3 Mon Sep 17 00:00:00 2001 From: Jon Date: Tue, 12 Jan 2016 18:21:29 +0000 Subject: [PATCH] Fixes mask coverage. --- code/modules/clothing/masks/breath.dm | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/code/modules/clothing/masks/breath.dm b/code/modules/clothing/masks/breath.dm index f966b37f29..38e86e5dc9 100644 --- a/code/modules/clothing/masks/breath.dm +++ b/code/modules/clothing/masks/breath.dm @@ -12,20 +12,18 @@ /obj/item/clothing/mask/breath/proc/adjust_mask(mob/user) if(user.canmove && !user.stat) - if(!src.hanging) - src.hanging = !src.hanging - gas_transfer_coefficient = 1 //gas is now escaping to the turf and vice versa - item_flags &= ~(AIRTIGHT) - body_parts_covered = ~(FACE) + src.hanging = !src.hanging + if (src.hanging) + gas_transfer_coefficient = 1 + body_parts_covered = body_parts_covered & ~FACE + item_flags = item_flags & ~AIRTIGHT icon_state = "breathdown" user << "Your mask is now hanging on your neck." - else - src.hanging = !src.hanging gas_transfer_coefficient = initial(gas_transfer_coefficient) - item_flags |= AIRTIGHT - body_parts_covered |= FACE - icon_state = "breath" + body_parts_covered = initial(body_parts_covered) + item_flags = initial(item_flags) + icon_state = initial(icon_state) user << "You pull the mask up to cover your face." update_clothing_icon()