Изменено поведение функции проверки возможности телепорта для мехов

This commit is contained in:
Bizzonium
2020-08-02 23:43:23 +03:00
parent 91d679f2ed
commit 94242ce235
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -14,6 +14,7 @@
var/precision = TRUE // how close to the portal you will teleport. FALSE = on the portal, TRUE = adjacent
var/can_multitool_to_remove = FALSE
var/ignore_tele_proof_area_setting = FALSE
var/can_mecha_pass = FALSE
/obj/effect/portal/New(loc, turf/target, creator = null, lifespan = 300)
..()
@@ -88,7 +89,7 @@
if(!M.simulated || iseffect(M))
. = FALSE
if(M.anchored && ismecha(M))
if(!can_mecha_pass && M.anchored && ismecha(M))
. = FALSE
/obj/effect/portal/proc/teleport(atom/movable/M)