mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 02:09:41 +00:00
[MIRROR] Medical Adjustments (#10604)
Co-authored-by: Cameron Lennox <killer65311@gmail.com> Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
4faf6a1599
commit
8f6c3fee0e
@@ -151,13 +151,12 @@
|
||||
return ..()
|
||||
|
||||
/obj/machinery/cryopod/robot/door/tram/Bumped(var/atom/movable/AM)
|
||||
if(!ishuman(AM))
|
||||
if(!isliving(AM))
|
||||
return
|
||||
|
||||
var/mob/living/carbon/human/user = AM
|
||||
|
||||
var/choice = tgui_alert(user, "Do you want to depart via the tram? Your character will leave the round.","Departure",list("Yes","No"))
|
||||
if(user && Adjacent(user) && choice == "Yes")
|
||||
var/mob/living/user = AM
|
||||
var/choice = tgui_alert(user, "Do you want to depart via the tram? Your character will leave the round.","Departure",list("Yes","No"), timeout = 5 SECONDS)
|
||||
if(!QDELETED(user) && Adjacent(user) && choice == "Yes")
|
||||
var/mob/observer/dead/newghost = user.ghostize()
|
||||
newghost.timeofdeath = world.time
|
||||
despawn_occupant(user)
|
||||
|
||||
Reference in New Issue
Block a user