[MIRROR] Holodeck bedsheets no longer drop cloth when cut (#1492)

* Holodeck bedsheets no longer drop cloth when cut (#54548)

they now check if they have HOLOFLAG_1 and if they do they dont drop cloth

* Holodeck bedsheets no longer drop cloth when cut

Co-authored-by: Kylerace <kylerlumpkin1@gmail.com>
This commit is contained in:
SkyratBot
2020-10-27 10:09:37 +01:00
committed by GitHub
parent 9b5fa936b2
commit 6e79637004
+4 -3
View File
@@ -46,9 +46,10 @@ LINEN BINS
/obj/item/bedsheet/attackby(obj/item/I, mob/user, params)
if(I.tool_behaviour == TOOL_WIRECUTTER || I.get_sharpness())
var/obj/item/stack/sheet/cloth/C = new (get_turf(src), 3)
transfer_fingerprints_to(C)
C.add_fingerprint(user)
if (!(flags_1 & HOLOGRAM_1))
var/obj/item/stack/sheet/cloth/shreds = new (get_turf(src), 3)
transfer_fingerprints_to(shreds)
shreds.add_fingerprint(user)
qdel(src)
to_chat(user, "<span class='notice'>You tear [src] up.</span>")
else