From 08816a6b548efd68222623e1905446aea82f8e53 Mon Sep 17 00:00:00 2001 From: Rob Nelson Date: Thu, 13 Feb 2014 23:44:20 -0800 Subject: [PATCH] Buff superior welding goggles. --- code/modules/clothing/glasses/glasses.dm | 6 ++++++ code/modules/mob/living/carbon/human/life.dm | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/code/modules/clothing/glasses/glasses.dm b/code/modules/clothing/glasses/glasses.dm index aed3517d03a..e467a99bb8b 100644 --- a/code/modules/clothing/glasses/glasses.dm +++ b/code/modules/clothing/glasses/glasses.dm @@ -92,6 +92,9 @@ icon_action_button = "action_welding_g" var/up = 0 +/obj/item/clothing/glasses/welding/proc/getMask() + return global_hud.darkMask + /obj/item/clothing/glasses/welding/attack_self() toggle() @@ -124,6 +127,9 @@ item_state = "rwelding-g" icon_action_button = "action_welding_g" +/obj/item/clothing/glasses/welding/superior/getMask() + return null + /obj/item/clothing/glasses/sunglasses/blindfold name = "blindfold" desc = "Covers the eyes, preventing sight." diff --git a/code/modules/mob/living/carbon/human/life.dm b/code/modules/mob/living/carbon/human/life.dm index ffa00dec155..8989eb55f40 100644 --- a/code/modules/mob/living/carbon/human/life.dm +++ b/code/modules/mob/living/carbon/human/life.dm @@ -1461,7 +1461,7 @@ if(!masked && istype(glasses, /obj/item/clothing/glasses/welding) ) var/obj/item/clothing/glasses/welding/O = glasses if(!O.up && tinted_weldhelh) - client.screen += global_hud.darkMask + client.screen += O.getMask() if(machine) if(!machine.check_eye(src)) reset_view(null)