Gives you the option to emergency eject clones (#25077)

* Me when TGUI alert goes brrr

* The descuffening

* Update code/game/machinery/clonepod.dm

Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>

---------

Co-authored-by: S34N <12197162+S34NW@users.noreply.github.com>
Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
This commit is contained in:
DGamerL
2024-04-19 18:04:40 +00:00
committed by GitHub
co-authored by Luc S34N
parent df8ac7a5b6
commit 19bb4d8cc9
+10 -4
View File
@@ -564,11 +564,17 @@
return
if(istype(I, /obj/item/card/id) || istype(I, /obj/item/pda))
if(allowed(user))
locked = !locked
to_chat(user, "<span class='notice'>Access restriction is now [locked ? "enabled" : "disabled"].</span>")
else
if(!allowed(user))
to_chat(user, "<span class='warning'>Access denied.</span>")
return
switch(tgui_alert(user, "Change access restrictions or perform an emergency ejection of [src]?", "Cloning pod", list("Change access", "Emergency ejection")))
if("Change access")
locked = !locked
to_chat(user, "<span class='notice'>Access restriction is now [locked ? "enabled" : "disabled"].</span>")
if("Emergency ejection")
eject_clone(TRUE) // GET OUT
to_chat(user, "<span class='warning'>You force [src] to eject its clone!</span>")
return
if(is_organ(I) || is_type_in_list(I, ALLOWED_ROBOT_PARTS)) //fun fact, robot parts aren't organs!