mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-30 03:53:33 +00:00
QoL Door Closing
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user