mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
Fixes mask coverage.
This commit is contained in:
@@ -12,20 +12,18 @@
|
|||||||
|
|
||||||
/obj/item/clothing/mask/breath/proc/adjust_mask(mob/user)
|
/obj/item/clothing/mask/breath/proc/adjust_mask(mob/user)
|
||||||
if(user.canmove && !user.stat)
|
if(user.canmove && !user.stat)
|
||||||
if(!src.hanging)
|
|
||||||
src.hanging = !src.hanging
|
src.hanging = !src.hanging
|
||||||
gas_transfer_coefficient = 1 //gas is now escaping to the turf and vice versa
|
if (src.hanging)
|
||||||
item_flags &= ~(AIRTIGHT)
|
gas_transfer_coefficient = 1
|
||||||
body_parts_covered = ~(FACE)
|
body_parts_covered = body_parts_covered & ~FACE
|
||||||
|
item_flags = item_flags & ~AIRTIGHT
|
||||||
icon_state = "breathdown"
|
icon_state = "breathdown"
|
||||||
user << "Your mask is now hanging on your neck."
|
user << "Your mask is now hanging on your neck."
|
||||||
|
|
||||||
else
|
else
|
||||||
src.hanging = !src.hanging
|
|
||||||
gas_transfer_coefficient = initial(gas_transfer_coefficient)
|
gas_transfer_coefficient = initial(gas_transfer_coefficient)
|
||||||
item_flags |= AIRTIGHT
|
body_parts_covered = initial(body_parts_covered)
|
||||||
body_parts_covered |= FACE
|
item_flags = initial(item_flags)
|
||||||
icon_state = "breath"
|
icon_state = initial(icon_state)
|
||||||
user << "You pull the mask up to cover your face."
|
user << "You pull the mask up to cover your face."
|
||||||
update_clothing_icon()
|
update_clothing_icon()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user