From 11fea605879242fb0a5ecfaa27fa71a383f3e2d4 Mon Sep 17 00:00:00 2001 From: Ar3nn Date: Tue, 16 Aug 2016 20:56:11 -0400 Subject: [PATCH] Properly spawns robot debris --- code/modules/mob/living/carbon/human/death.dm | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/code/modules/mob/living/carbon/human/death.dm b/code/modules/mob/living/carbon/human/death.dm index d3606b12b8a..8892f8925dc 100644 --- a/code/modules/mob/living/carbon/human/death.dm +++ b/code/modules/mob/living/carbon/human/death.dm @@ -38,7 +38,7 @@ flick("gibbed-h", animation) hgibs(loc, viruses, dna) else - new /obj/effect/decal/cleanable/blood/gibs/robot(src.loc) + new /obj/effect/decal/cleanable/blood/gibs/robot(loc) var/datum/effect/system/spark_spread/s = new /datum/effect/system/spark_spread s.set_up(3, 1, src) s.start() @@ -61,7 +61,13 @@ animation.master = src flick("dust-h", animation) - new /obj/effect/decal/remains/human(loc) + if(!isSynthetic()) + new /obj/effect/decal/remains/human(loc) + else + new /obj/effect/decal/cleanable/blood/gibs/robot(loc) + var/datum/effect/system/spark_spread/s = new /datum/effect/system/spark_spread + s.set_up(3, 1, src) + s.start() spawn(15) if(animation) qdel(animation)