Stripping Underclothing (#16098)

* Stripping Underclothing

Added "Remove or Replace Underwear" as an option to the stripping menu. Works exactly like the Toggle Underwear verb, but done to another person.

* Added a socks icon and fixed the visible message formatting
This commit is contained in:
SatinIsle
2024-07-09 20:14:41 +10:00
committed by GitHub
parent 6b64c8ddd6
commit f76937228a
4 changed files with 22 additions and 4 deletions
@@ -53,6 +53,17 @@
suit.accessories -= A
update_inv_w_uniform()
return
if("underwear")
var/datum/category_group/underwear/UWC = tgui_input_list(user, "Choose underwear. (Do not do this without OOC permission from the other player)", "Show/hide underwear", global_underwear.categories)
if(!UWC) return
var/datum/category_item/underwear/UWI = all_underwear[UWC.name]
if(!UWI || UWI.name == "None")
to_chat(user, "<span class='notice'>\The [src] does not have [UWC.gender==PLURAL ? "[UWC.display_name]" : "a [UWC.display_name]"].</span>")
return
hide_underwear[UWC.name] = !hide_underwear[UWC.name]
update_underwear(1)
visible_message("<span class='danger'>\The [user] [hide_underwear[UWC.name] ? "takes off" : "puts on"] \the [src]'s [UWC.display_name].</span>")
return
// Are we placing or stripping?
var/stripping
@@ -67,7 +78,7 @@
var/obj/item/weapon/grab/grab = held
if(istype(grab) && grab.affecting == src)
stripping = TRUE
if(stripping)
if(!istype(target_slot)) // They aren't holding anything valid and there's nothing to remove, why are we even here?
return