Autoclose the panel

So people can't leave a cocoon and keep changing.
This commit is contained in:
FartMaster69420
2022-05-04 14:18:57 -04:00
parent 0588dfa081
commit c270354fe7
3 changed files with 14 additions and 1 deletions
@@ -43,3 +43,13 @@
if(APPEARANCECHANGER_CHANGED_EYES)
to_chat(M, "<span class='notice'>You feel lightheaded and drowsy...</span>")
to_chat(O, "<span class='notice'>You feel warm as you make subtle changes to your captive's body.</span>")
// Cocoon Stuff
/datum/tgui_module/appearance_changer/cocoon
name ="Appearance Editor (Cocoon)"
/datum/tgui_module/appearance_changer/cocoon/tgui_status(mob/user, datum/tgui_state/state)
//if(!istype(owner.loc, /obj/item/weapon/storage/vore_egg/bugcocoon))
if(!owner.transforming)
return STATUS_CLOSE
return ..()