You can now Mouse drop from a processor to an adjacent turf if you end up inside one to exit it. (#30571)

This commit is contained in:
DeityLink
2021-09-07 06:49:22 +02:00
committed by GitHub
parent 4a0bb78dd2
commit 1a4ffa0fe1

View File

@@ -318,6 +318,23 @@
return
add_to(O,user)
/obj/machinery/processor/MouseDropFrom(over_object, src_location, var/turf/over_location, src_control, over_control, params)
var/mob/user = usr
if(user.incapacitated() || (user.loc != src))
return
over_location = get_turf(over_location)
if(!istype(over_location) || over_location.density)
return
if(!Adjacent(over_location))
return
for(var/atom/movable/A in over_location.contents)
if(A.density)
if((A == src) || istype(A, /mob))
continue
return
visible_message("[user] climbs out of \the [src].")
user.forceMove(loc)
/obj/machinery/processor/proc/warn_full(var/mob/who)
to_chat(who, "<span class='warning'>\The [src] is full, it cannot fit anymore.</span>")