Fixes portals not being usable by mechs

This commit is contained in:
XDTM
2017-01-04 15:56:50 +01:00
parent 66f6ac7dcc
commit babe7a6aa6
4 changed files with 15 additions and 5 deletions
+6 -1
View File
@@ -141,11 +141,16 @@
icon = 'icons/effects/effects.dmi'
icon_state = "bhole3"
desc = "A stable hole in the universe made by a wormhole jaunter. Turbulent doesn't even begin to describe how rough passage through one of these is, but at least it will always get you somewhere near a beacon."
mech_sized = TRUE //save your ripley
/obj/effect/portal/wormhole/jaunt_tunnel/teleport(atom/movable/M)
if(M.anchored || istype(M, /obj/effect))
if(istype(M, /obj/effect))
return
if(M.anchored)
if(!(istype(M, /obj/mecha) && mech_sized))
return
if(istype(M, /atom/movable))
if(do_teleport(M, target, 6))
// KERPLUNK