Files
CHOMPStation2/code/game/machinery/doors/checkForMultipleDoors.dm
2024-02-16 10:54:47 +01:00

17 lines
481 B
Plaintext

/obj/machinery/door/proc/checkForMultipleDoors()
if(!src.loc)
return 0
for(var/obj/machinery/door/D in src.loc)
if(!istype(D, /obj/machinery/door/window) && D.density)
return 0
return 1
/turf/simulated/wall/proc/checkForMultipleDoors()
if(!src.loc)
return 0
for(var/obj/machinery/door/D in locate(src.x,src.y,src.z))
if(!istype(D, /obj/machinery/door/window) && D.density)
return 0
//There are no false wall checks because that would be mischievious
return 1