mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 20:16:55 +01:00
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:
@@ -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!
|
||||
|
||||
Reference in New Issue
Block a user