mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-19 02:56:14 +01:00
fix that (#19535)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user