mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-09 16:12:17 +00:00
17 lines
481 B
Plaintext
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
|