This commit is contained in:
Will
2026-06-20 15:54:03 -04:00
committed by GitHub
parent d842aa39e7
commit 7a05cbcbf0
+14 -6
View File
@@ -182,22 +182,30 @@
var/obj/item/grab/grab = G
if(!ismob(grab.affecting))
return
if(occupant)
to_chat(user,span_warning("\The [src] is already occupied by [occupant]."))
if(grab.affecting.has_buckled_mobs())
to_chat(user, span_warning("\The [grab.affecting] has other entities attached to it. Remove them first."))
return
var/mob/M = grab.affecting
if(!check_put(M, user))
return
qdel(grab)
put_mob(M)
return
/obj/machinery/atmospherics/unary/cryo_cell/MouseDrop_T(mob/target, mob/user) //Allows borgs to put people into cryo without external assistance
if(user.stat || user.lying || !Adjacent(user) || !target.Adjacent(user)|| !ishuman(target))
if(!check_put(target, user))
return
put_mob(target)
/obj/machinery/atmospherics/unary/cryo_cell/proc/check_put(mob/target, mob/user)
if(user.stat || user.lying || !Adjacent(user) || !target.Adjacent(user)|| !ishuman(target))
return FALSE
if(occupant)
to_chat(user,span_warning("\The [src] is already occupied by [occupant]."))
return FALSE
if(target.has_buckled_mobs() || target.buckled)
to_chat(user, span_warning("\The [target] has other entities attached to it. Remove them first."))
return FALSE
return TRUE
/obj/machinery/atmospherics/unary/cryo_cell/update_icon()
cut_overlay(fluid)
fluid.color = null