mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-25 22:19:30 +01:00
Adds "All" option to the "Expose/Hide genitals" verb (#4832)
## About The Pull Request Title. <img width="335" height="296" alt="image" src="https://github.com/user-attachments/assets/96516265-7307-4a99-bbad-5ad708356284" /> ## Why It's Good For The Game It's annoying to have to click several times to hide or show multiple genitalia at once. ## Proof Of Testing Compiles without errors. Tested with all genitals, and without any. <details> <summary>Screenshots/Videos</summary> </details> --------- Co-authored-by: LT3 <83487515+lessthnthree@users.noreply.github.com>
This commit is contained in:
@@ -524,16 +524,16 @@
|
||||
to_chat(usr, span_warning("You can't toggle genitals visibility right now..."))
|
||||
return
|
||||
|
||||
var/list/genital_list = list()
|
||||
var/list/genital_list = list("all")
|
||||
for(var/obj/item/organ/genital/genital in organs)
|
||||
if(!genital.visibility_preference == GENITAL_SKIP_VISIBILITY)
|
||||
genital_list += genital
|
||||
if(!genital_list.len) //There is nothing to expose
|
||||
if(genital_list.len == 1) //There is nothing to expose
|
||||
return
|
||||
//Full list of exposable genitals created
|
||||
var/obj/item/organ/genital/picked_organ
|
||||
picked_organ = input(src, "Choose which genitalia to expose/hide", "Expose/Hide genitals") as null|anything in genital_list
|
||||
if(picked_organ && (picked_organ in organs))
|
||||
if(picked_organ && ((picked_organ in organs) || picked_organ == "all"))
|
||||
var/list/gen_vis_trans = list("Never show" = GENITAL_NEVER_SHOW,
|
||||
"Hidden by clothes" = GENITAL_HIDDEN_BY_CLOTHES,
|
||||
"Always show" = GENITAL_ALWAYS_SHOW
|
||||
@@ -543,6 +543,12 @@
|
||||
picked_organ.visibility_preference = gen_vis_trans[picked_visibility]
|
||||
update_body()
|
||||
SEND_SIGNAL(src, COMSIG_HUMAN_TOGGLE_GENITALS)
|
||||
if(picked_visibility && picked_organ == "all")
|
||||
for(var/obj/item/organ/genital/genital in organs)
|
||||
if(!genital.visibility_preference == GENITAL_SKIP_VISIBILITY)
|
||||
genital.visibility_preference = gen_vis_trans[picked_visibility]
|
||||
update_body()
|
||||
SEND_SIGNAL(src, COMSIG_HUMAN_TOGGLE_GENITALS)
|
||||
return
|
||||
|
||||
//Removing ERP IC verb depending on config
|
||||
|
||||
Reference in New Issue
Block a user