Files
GS13NG/code/game/gamemodes/clock_cult/clock_effects/servant_blocker.dm
T
Ashe HiggsandCitadelStationBot 33de2bd2f9 Reebe rifts no longer instantly teleport you on collision, and servant blockers also block airflow (#34427)
* Portal tweaks, and blocked atmos

* Update servant_blocker.dm

* Update servant_blocker.dm

* Update servant_blocker.dm
2018-01-16 14:33:46 -06:00

42 lines
1.3 KiB
Plaintext

//Marks the point at which "no man's land" begins on Reebe. Servants can't pass beyond this point in any way.
/obj/effect/clockwork/servant_blocker
name = "glowing arrow"
desc = "A faintly glowing image of an arrow on the ground. Convenient!"
icon_state = "servant_blocker"
mouse_opacity = MOUSE_OPACITY_TRANSPARENT
anchored = TRUE
density = TRUE
CanAtmosPass = ATMOS_PASS_NO
/obj/effect/clockwork/servant_blocker/Initialize()
. = ..()
air_update_turf(TRUE)
/obj/effect/clockwork/servant_blocker/Destroy(force)
if(!force)
return
var/turf/T = get_turf(src)
. = ..()
T.air_update_turf(TRUE)
/obj/effect/clockwork/servant_blocker/CanPass(atom/movable/M, turf/target)
var/list/target_contents = M.GetAllContents() + M
for(var/mob/living/L in target_contents)
if(is_servant_of_ratvar(L) && get_dir(M, src) != dir && L.stat != DEAD) //Unless we're on the side the arrow is pointing directly away from, no-go
to_chat(L, "<span class='danger'>The space beyond here can't be accessed by you or other servants.</span>")
return
if(isitem(M))
var/obj/item/I = M
if(is_servant_of_ratvar(I.thrownby)) //nice try!
return
return TRUE
/obj/effect/clockwork/servant_blocker/BlockSuperconductivity()
return TRUE
/obj/effect/clockwork/servant_blocker/singularity_act()
return
/obj/effect/clockwork/servant_blocker/singularity_pull()
return