Merge pull request #3663 from CHOMPStation2/upstream-merge-12208

[MIRROR] Tether passage blockades
This commit is contained in:
Razgriz
2022-02-13 01:46:04 -07:00
committed by GitHub
5 changed files with 9 additions and 1 deletions

View File

@@ -89,6 +89,8 @@
if(!T) continue
var/obj/structure/ladder_assembly/LA = locate(/obj/structure/ladder_assembly, T)
if(!LA) continue
if(direction == DOWN && (src.z in using_map.below_blocked_levels)) continue
if(direction == UP && (LA.z in using_map.below_blocked_levels)) continue
if(LA.state != CONSTRUCTION_WELDED)
to_chat(user, "<span class='warning'>\The [LA] [direction == UP ? "above" : "below"] must be secured and welded.</span>")
return