mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
fixes layering issues with pre-mapped tape (#26234)
* fixes layering issues with pre-mapped tape * brainlet me
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user