fixes layering issues with pre-mapped tape (#26234)

* fixes layering issues with pre-mapped tape

* brainlet me
This commit is contained in:
ShiftyRail
2020-04-19 19:59:31 +02:00
committed by GitHub
parent 2bd0f21898
commit a6fa8f077a

View File

@@ -16,6 +16,7 @@
icon = 'icons/policetape.dmi'
anchored = 1
density = 1
layer = ABOVE_DOOR_LAYER
var/icon_base
var/robot_compatibility
@@ -159,7 +160,6 @@
if(do_after(user, target, 3 SECONDS))
var/atom/tape = new tape_type(turf)
tape.icon_state = "[icon_base]_door"
tape.layer = ABOVE_DOOR_LAYER
to_chat(user, "<span class='notice'>You placed \the [src].</span>")
return 1
@@ -310,7 +310,7 @@
/obj/item/tape/police/syndie/destroy_tape(var/mob/user, var/obj/item/weapon/W)
if (istype(W))
if (!W.is_sharp() || !(W.force >= 10))
to_chat(user, "<span class='warning'>The tape resists your attack!")
to_chat(user, "<span class='warning'>The tape resists your attack!</span>")
return FALSE
return ..() // We could destroy it
else // Attacks with bare hands, cuffs himself on it