mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-18 18:46:24 +01:00
turf
This commit is contained in:
@@ -451,15 +451,9 @@
|
||||
//Let's let our mob out!
|
||||
/obj/item/capture_crystal/proc/unleash(mob/living/user, atom/target)
|
||||
if(!user && !target) //We got thrown but we're not sure who did it, let's go to where the crystal is
|
||||
var/atom/drop_loc = drop_location()
|
||||
var/n = 0
|
||||
while (istype(drop_loc, /obj/item/weapon/storage) && n++ <= 10) //if they ooc escape inside a bag, this will happen or they won't be able to get out
|
||||
drop_loc = drop_loc.drop_location()
|
||||
if (istype(drop_loc, /obj/item/weapon/storage))
|
||||
drop_loc = get_turf(src)
|
||||
if (!drop_loc)
|
||||
return
|
||||
bound_mob.forceMove(drop_loc)
|
||||
var/drop_loc = get_turf(src)
|
||||
if (drop_loc)
|
||||
bound_mob.forceMove(drop_loc)
|
||||
return
|
||||
if(!target) //We know who wants to let us out, but they didn't say where, so let's drop us on them
|
||||
bound_mob.forceMove(user.drop_location())
|
||||
|
||||
Reference in New Issue
Block a user