From e344723c27645489e11663930439af2ccf06a724 Mon Sep 17 00:00:00 2001 From: Purpose Date: Wed, 19 Sep 2018 20:49:47 +0100 Subject: [PATCH 1/2] alt click for breath masks --- code/modules/clothing/masks/breath.dm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/modules/clothing/masks/breath.dm b/code/modules/clothing/masks/breath.dm index afefbbc93cc..93b12a87717 100644 --- a/code/modules/clothing/masks/breath.dm +++ b/code/modules/clothing/masks/breath.dm @@ -24,6 +24,12 @@ /obj/item/clothing/mask/breath/attack_self(var/mob/user) adjustmask(user) +/obj/item/clothing/mask/breath/AltClick(mob/user) + ..() + if( (!in_range(src, user)) || user.stat || user.restrained() ) + return + adjustmask(user) + /obj/item/clothing/mask/breath/medical desc = "A close-fitting sterile mask that can be connected to an air supply." name = "medical mask" From 78eac25f9af577f9cd02b2ade054de8dc23efc2c Mon Sep 17 00:00:00 2001 From: Purpose Date: Wed, 19 Sep 2018 21:41:48 +0100 Subject: [PATCH 2/2] Fixes #8018 --- code/modules/clothing/masks/breath.dm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/modules/clothing/masks/breath.dm b/code/modules/clothing/masks/breath.dm index 93b12a87717..b47856fb38c 100644 --- a/code/modules/clothing/masks/breath.dm +++ b/code/modules/clothing/masks/breath.dm @@ -47,3 +47,9 @@ permeability_coefficient = 0.01 species_restricted = list("Vox") actions_types = list() + +/obj/item/clothing/mask/breath/vox/attack_self(var/mob/user) + return + +/obj/item/clothing/mask/breath/vox/AltClick(mob/user) + return