Merge pull request #9750 from VOREStation/upstream-merge-7853

[MIRROR] QoL Door Closing
This commit is contained in:
Novacat
2021-02-19 17:44:15 -05:00
committed by GitHub
+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))