From 89ed652d89f1f929fe6f6ecf48a1510f574b14a2 Mon Sep 17 00:00:00 2001 From: Andrew Date: Sun, 23 Jul 2017 10:06:02 -0500 Subject: [PATCH] Allows Click Dragging for Cryo and Cloner Patients can now be click dragged by themself or another into a cryogenics pod or cloning scanner. This allows cyborgs to use this equipment without external assistance. --- code/game/dna/dna_modifier.dm | 5 +++++ code/game/machinery/cryo.dm | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/code/game/dna/dna_modifier.dm b/code/game/dna/dna_modifier.dm index a28dd27036e..af0eccf93cc 100644 --- a/code/game/dna/dna_modifier.dm +++ b/code/game/dna/dna_modifier.dm @@ -92,6 +92,11 @@ for(var/mob/M in src)//Failsafe so you can get mobs out M.loc = get_turf(src) +/obj/machinery/dna_scannernew/MouseDrop_T(var/mob/target, var/mob/user) //Allows borgs to clone people without external assistance + if(user.stat || user.lying || !Adjacent(user) || !target.Adjacent(user)|| !ishuman(target)) + return + put_in(target) + /obj/machinery/dna_scannernew/verb/move_inside() set src in oview(1) set category = "Object" diff --git a/code/game/machinery/cryo.dm b/code/game/machinery/cryo.dm index 5d0f707ae88..1e27f61866c 100644 --- a/code/game/machinery/cryo.dm +++ b/code/game/machinery/cryo.dm @@ -191,6 +191,11 @@ qdel(G) return +/obj/machinery/atmospherics/unary/cryo_cell/MouseDrop_T(var/mob/target, var/mob/user) //Allows borgs to put people into cryo without external assistance + if(user.stat || user.lying || !Adjacent(user) || !target.Adjacent(user)|| !ishuman(target)) + return + put_mob(target) + /obj/machinery/atmospherics/unary/cryo_cell/update_icon() overlays.Cut() icon_state = "pod[on]"