mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-08-27 15:17:21 +01:00
Makes tape appliable to hazard shutters just like airlocks
Clicking hazard shutters with tape will tape them up like airlocks, instead of opening them (if you have the access to).
This commit is contained in:
@@ -218,6 +218,8 @@
|
||||
|
||||
/obj/machinery/door/firedoor/attackby(obj/item/weapon/C as obj, mob/user as mob)
|
||||
add_fingerprint(user)
|
||||
if(istype(C, /obj/item/taperoll))
|
||||
return //Don't open the door if we're putting tape on it to tell people 'don't open the door'.
|
||||
if(operating)
|
||||
return//Already doing something.
|
||||
if(istype(C, /obj/item/weapon/weldingtool) && !repairing)
|
||||
|
||||
@@ -17,9 +17,9 @@
|
||||
var/turf/T = get_turf(src)
|
||||
if(!T)
|
||||
return
|
||||
var/obj/machinery/door/airlock/airlock = locate(/obj/machinery/door/airlock) in T
|
||||
if(airlock)
|
||||
afterattack(airlock, null, TRUE)
|
||||
var/obj/machinery/door/door = locate(/obj/machinery/door) in T
|
||||
if((door == /obj/machinery/door/airlock) || (door == /obj/machinery/door/firedoor))
|
||||
afterattack(door, null, TRUE)
|
||||
return INITIALIZE_HINT_QDEL
|
||||
|
||||
|
||||
@@ -250,7 +250,7 @@ var/list/tape_roll_applications = list()
|
||||
if(!proximity)
|
||||
return
|
||||
|
||||
if (istype(A, /obj/machinery/door/airlock))
|
||||
if (istype(A, /obj/machinery/door))
|
||||
var/turf/T = get_turf(A)
|
||||
if(locate(/obj/item/tape, A.loc))
|
||||
user << "There's already tape over that door!"
|
||||
|
||||
Reference in New Issue
Block a user