From 9345f1a5e3168f1826322f91c6f8b16dc93bab1f Mon Sep 17 00:00:00 2001 From: Contrabang <91113370+Contrabang@users.noreply.github.com> Date: Sun, 10 Mar 2024 14:03:33 -0400 Subject: [PATCH] Buffs all glasses (#24372) * fucking hate this shit * Update code/modules/clothing/clothing.dm Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com> --------- Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com> --- code/modules/clothing/clothing.dm | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/code/modules/clothing/clothing.dm b/code/modules/clothing/clothing.dm index e2ab1b49fe1..fd33a66c1f8 100644 --- a/code/modules/clothing/clothing.dm +++ b/code/modules/clothing/clothing.dm @@ -238,16 +238,10 @@ if(user.stat || HAS_TRAIT(user, TRAIT_HANDS_BLOCKED) || !Adjacent(user) || !istype(user)) return - var/action_fluff = "You adjust \the [src]" - if(user.glasses == src) - if(!user.canUnEquip(src)) - to_chat(user, "[src] is stuck to you!") - return - if(attack_hand(user)) //Remove the glasses for this action. Prevents logic-defying instances where glasses phase through your mask as it ascends/descends to another plane of existence. - action_fluff = "You remove \the [src] and adjust it" - over_mask = !over_mask - to_chat(user, "[action_fluff] to be worn [over_mask ? "over" : "under"] a mask.") + if(user.glasses == src) + user.update_inv_glasses() + to_chat(user, "You adjust [src] to be worn [over_mask ? "over" : "under"] a mask.") //Gloves /obj/item/clothing/gloves