mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-09 16:14:13 +00:00
Alleviate issues with policetape (#36517)
This commit is contained in:
@@ -271,7 +271,7 @@ var/list/all_doors = list()
|
||||
if(!ticker)
|
||||
return 0
|
||||
for (var/obj/O in src.loc)
|
||||
if (O.blocks_doors())
|
||||
if (O.blocks_doors(src))
|
||||
return 0
|
||||
if(arcanetampered && arcane_linked_door && arcane_linked_door.density)
|
||||
spawn(1)
|
||||
@@ -316,7 +316,7 @@ var/list/all_doors = list()
|
||||
return
|
||||
|
||||
for (var/obj/O in src.loc)
|
||||
if (O.blocks_doors())
|
||||
if (O.blocks_doors(src))
|
||||
return 0
|
||||
|
||||
if(arcanetampered && arcane_linked_door && !arcane_linked_door.density)
|
||||
|
||||
@@ -168,7 +168,7 @@
|
||||
if(proximity_flag == 0)//Check adjacency.
|
||||
return 0
|
||||
|
||||
if(istype(target, /obj/machinery/door/airlock) || istype(target, /obj/machinery/door/firedoor)) //Make sure we can tape the target.
|
||||
if(istype(target, /obj/machinery/door/airlock)) //Make sure we can tape the target.
|
||||
var/turf = get_turf(target)
|
||||
|
||||
//Check to see if the object already has any tape of any kind on it.
|
||||
@@ -185,7 +185,9 @@
|
||||
to_chat(user, "<span class='notice'>You placed \the [src].</span>")
|
||||
return 1
|
||||
|
||||
/obj/item/tape/blocks_doors()
|
||||
/obj/item/tape/blocks_doors(var/obj/machinery/door/D)
|
||||
if (istype(D, /obj/machinery/door/firedoor/border_only))
|
||||
return FALSE
|
||||
return TRUE
|
||||
|
||||
/obj/item/tape/Bumped(var/atom/movable/AM)
|
||||
|
||||
@@ -150,7 +150,7 @@ var/global/list/reagents_to_log = list(FUEL, PLASMA, PACID, SACID, AMUTATIONTOXI
|
||||
|
||||
/obj/item/proc/is_used_on(obj/O, mob/user)
|
||||
|
||||
/obj/proc/blocks_doors()
|
||||
/obj/proc/blocks_doors(var/obj/machinery/door/D)
|
||||
return 0
|
||||
|
||||
/obj/proc/install_pai(obj/item/device/paicard/P)
|
||||
|
||||
@@ -143,7 +143,9 @@
|
||||
/obj/structure/window/barricade/full/setup_border_dummy()
|
||||
return
|
||||
|
||||
/obj/structure/window/barricade/full/blocks_doors()
|
||||
/obj/structure/window/barricade/full/blocks_doors(var/obj/machinery/door/D)
|
||||
if (istype(D, /obj/machinery/door/firedoor/border_only))
|
||||
return FALSE
|
||||
return TRUE
|
||||
|
||||
/obj/structure/window/barricade/full/Cross(atom/movable/mover, turf/target, height = 1.5, air_group = 0)
|
||||
|
||||
Reference in New Issue
Block a user