From 0002613f36e97d69a31759933fdb70b7b6925148 Mon Sep 17 00:00:00 2001 From: Anewbe Date: Sat, 23 Sep 2017 17:31:09 -0500 Subject: [PATCH] Printed limbs now have species and skin color --- code/game/machinery/bioprinter.dm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/code/game/machinery/bioprinter.dm b/code/game/machinery/bioprinter.dm index b9373e1818e..7a4e5e3ab68 100644 --- a/code/game/machinery/bioprinter.dm +++ b/code/game/machinery/bioprinter.dm @@ -131,8 +131,16 @@ var/new_organ = products[choice][1] var/obj/item/organ/O = new new_organ(get_turf(src)) O.status |= ORGAN_CUT_AWAY - var/mob/living/carbon/C = loaded_dna["donor"] + var/mob/living/carbon/human/C = loaded_dna["donor"] O.set_dna(C.dna) + O.species = C.species + + if(istype(O, /obj/item/organ/external)) + var/obj/item/organ/external/E = O + E.sync_colour_to_human(C) + + O.pixel_x = rand(-6.0, 6) + O.pixel_y = rand(-6.0, 6) if(O.species) // This is a very hacky way of doing of what organ/New() does if it has an owner