From cf35da203bcbd608c325cddbb09c6a5bf003f217 Mon Sep 17 00:00:00 2001 From: Yoshax Date: Tue, 25 Oct 2016 19:18:01 +0100 Subject: [PATCH] Tweak the code, adds a couple of :snowflake: to make it work --- code/modules/clothing/glasses/glasses.dm | 2 -- code/modules/mob/living/carbon/human/human.dm | 4 ++++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/code/modules/clothing/glasses/glasses.dm b/code/modules/clothing/glasses/glasses.dm index 3755e8a03a..ba2146441e 100644 --- a/code/modules/clothing/glasses/glasses.dm +++ b/code/modules/clothing/glasses/glasses.dm @@ -284,11 +284,9 @@ BLIND // can't see anything if(toggleable && !user.incapacitated()) on = !on if(on) - flash_protection = FLASH_PROTECTION_NONE src.hud = hud_holder to_chat(user, "You switch the [src] to HUD mode.") else - flash_protection = initial(flash_protection) src.hud = null to_chat(user, "You switch \the [src] to flash protection mode.") update_icon() diff --git a/code/modules/mob/living/carbon/human/human.dm b/code/modules/mob/living/carbon/human/human.dm index 2c2cdbafca..a694185135 100644 --- a/code/modules/mob/living/carbon/human/human.dm +++ b/code/modules/mob/living/carbon/human/human.dm @@ -677,6 +677,10 @@ number -= 1 if(istype(src.glasses, /obj/item/clothing/glasses/sunglasses)) number += 1 + if(istype(src.glasses, /obj/item/clothing/glasses/sunglasses/sechud/toggle)) + var/obj/item/clothing/glasses/sunglasses/sechud/toggle/S = src.glasses + if(!S.on) + number += 1 if(istype(src.glasses, /obj/item/clothing/glasses/welding)) var/obj/item/clothing/glasses/welding/W = src.glasses if(!W.up)