NOTELEPORT errywhere (#55973)

These prevent some cheats or really low effort ways to get to where you really shouldn't be.

Mappers seriously fucking hate jaunting and phasing mechs, as they let you bypass their custom crafted ruins and the like. But it'll also stop more general "you shouldn't be here" stuff.
This commit is contained in:
tralezab
2021-01-07 14:31:24 -08:00
committed by GitHub
parent cd6b937623
commit 5ad6fd883f
5 changed files with 37 additions and 7 deletions
@@ -1278,7 +1278,8 @@
/obj/item/hierophant_club/proc/teleport_mob(turf/source, mob/M, turf/target, mob/user)
var/turf/turf_to_teleport_to = get_step(target, get_dir(source, M)) //get position relative to caster
if(!turf_to_teleport_to || turf_to_teleport_to.is_blocked_turf(TRUE))
var/area/destination_area = turf_to_teleport_to.loc
if(!turf_to_teleport_to || turf_to_teleport_to.is_blocked_turf(TRUE) || destination_area.area_flags & NOTELEPORT)
return
animate(M, alpha = 0, time = 2, easing = EASE_OUT) //fade out
sleep(1)