Fixes/tweaks wormholes event and portals (#30846)

* fix

* THERE WE GO

* Update portals.dm
This commit is contained in:
kevinz000
2017-10-03 11:37:16 +02:00
committed by AnturK
parent d1a1495925
commit f8c8d43974
2 changed files with 5 additions and 10 deletions
+3 -3
View File
@@ -40,10 +40,10 @@
/obj/effect/portal/attackby(obj/item/W, mob/user, params)
if(user && Adjacent(user))
teleport(user)
user.forceMove(get_turf(src))
/obj/effect/portal/Crossed(atom/movable/AM, oldloc)
if(get_turf(oldloc) == get_turf(linked))
if(linked && (get_turf(oldloc) == get_turf(linked)))
return ..()
if(!teleport(AM))
return ..()
@@ -53,7 +53,7 @@
/obj/effect/portal/attack_hand(mob/user)
if(Adjacent(user))
teleport(user)
user.forceMove(get_turf(src))
/obj/effect/portal/Initialize(mapload, _creator, _lifespan = 0, obj/effect/portal/_linked, automatic_link = FALSE, turf/hard_target_override, atmos_link_override)
. = ..()