[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
🆑
add: You can now toggle the visibility for hair on your noggin when
wearing surgery caps.
/🆑

---------

Co-authored-by: MrMelbert <51863163+MrMelbert@ users.noreply.github.com>

* allows surgery caps to toggle hair visibility

---------

Co-authored-by: coldud13 <coldud13@users.noreply.github.com>
Co-authored-by: MrMelbert <51863163+MrMelbert@ users.noreply.github.com>
Co-authored-by: Bloop <vinylspiders@gmail.com>
This commit is contained in:
SkyratBot
2023-07-18 16:42:02 -04:00
committed by GitHub
co-authored by MrMelbert coldud13 Bloop
parent ab3f0dc5af
commit 670ef76d05
+15
View File
@@ -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"