Merge pull request #7853 from Shadow-Quill/DoorWorks

QoL Door Closing
This commit is contained in:
Atermonera
2021-02-19 12:16:42 -08:00
committed by VirgoBot
parent 12a0a068fe
commit 09ca30fd1c
+10
View File
@@ -66,6 +66,16 @@
return 1
/turf/attack_hand(mob/user)
//QOL feature, clicking on turf can toogle doors
var/obj/machinery/door/airlock/AL = locate(/obj/machinery/door/airlock) in src.contents
if(AL)
AL.attack_hand(user)
return TRUE
var/obj/machinery/door/firedoor/FD = locate(/obj/machinery/door/firedoor) in src.contents
if(FD)
FD.attack_hand(user)
return TRUE
if(!(user.canmove) || user.restrained() || !(user.pulling))
return 0
if(user.pulling.anchored || !isturf(user.pulling.loc))