From 670ef76d05f129b0bfb9ceee5f069ce1966e5f67 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Tue, 18 Jul 2023 22:42:02 +0200 Subject: [PATCH] [MIRROR] allows surgery caps to toggle hair visibility [MDB IGNORE] (#22552) * allows surgery caps to toggle hair visibility (#76906) ## About The Pull Request Allows doctors to choose between looking like a baldie and letting their hair peek out. ![dreamseeker_habQTXtLxo](https://github.com/tgstation/tgstation/assets/6972764/25ee7931-c3a4-437c-bbd9-c08c8ce8e4b7) **By default** the original behaviour of hiding all hair remains. Using the cap in your hands you can "loosen" the strings which toggles the visibility of the hair. ![dreamseeker_wRz9kTLe4i](https://github.com/tgstation/tgstation/assets/6972764/d42d0066-2dc6-4694-827c-0b494ba03752) (Outdated image, now uses a balloon alert instead of a to_chat) It's also on a short do_after so you can't just spam flip it back and forth, plus you have to actually take it off to fiddle with it. ## Why It's Good For The Game We can already wear uniforms "casually" by alt clicking them, this is just something similar but for caps. Creates opportunities for CMO's to yell at their doctors for not keeping their uniforms up to scratch. Also fashion idk. ## Changelog :cl: add: You can now toggle the visibility for hair on your noggin when wearing surgery caps. /:cl: --------- Co-authored-by: MrMelbert <51863163+MrMelbert@ users.noreply.github.com> * allows surgery caps to toggle hair visibility --------- Co-authored-by: coldud13 Co-authored-by: MrMelbert <51863163+MrMelbert@ users.noreply.github.com> Co-authored-by: Bloop --- code/modules/clothing/head/jobs.dm | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/code/modules/clothing/head/jobs.dm b/code/modules/clothing/head/jobs.dm index ecdb3169d3a..66d2be6b2ae 100644 --- a/code/modules/clothing/head/jobs.dm +++ b/code/modules/clothing/head/jobs.dm @@ -447,6 +447,21 @@ desc = "A blue medical surgery cap to prevent the surgeon's hair from entering the insides of the patient!" flags_inv = HIDEHAIR //Cover your head doctor! +/obj/item/clothing/head/utility/surgerycap/attack_self(mob/user) + . = ..() + if(.) + return + balloon_alert(user, "[flags_inv & HIDEHAIR ? "loosening" : "tightening"] strings...") + if(!do_after(user, 3 SECONDS, src)) + return + flags_inv ^= HIDEHAIR + balloon_alert(user, "[flags_inv & HIDEHAIR ? "tightened" : "loosened "] strings") + return TRUE + +/obj/item/clothing/head/utility/surgerycap/examine(mob/user) + . = ..() + . += span_notice("Use in hand to [flags_inv & HIDEHAIR ? "loosen" : "tighten"] the strings.") + /obj/item/clothing/head/utility/surgerycap/purple name = "burgundy surgery cap" icon_state = "surgicalcapwine"