From 23c9c43a9616341a0f24162680fedbdc366270bb Mon Sep 17 00:00:00 2001 From: Fox McCloud Date: Fri, 26 Oct 2018 20:56:00 -0400 Subject: [PATCH] Colorful Reagent Changes Blood Color --- code/modules/reagents/chemistry/reagents/misc.dm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/code/modules/reagents/chemistry/reagents/misc.dm b/code/modules/reagents/chemistry/reagents/misc.dm index 418318c62ee..eb78ee4e5f3 100644 --- a/code/modules/reagents/chemistry/reagents/misc.dm +++ b/code/modules/reagents/chemistry/reagents/misc.dm @@ -275,6 +275,13 @@ color = "#FFFFFF" taste_message = "the rainbow" +/datum/reagent/colorful_reagent/on_mob_life(mob/living/M) + if(ishuman(M)) + var/mob/living/carbon/human/H = M + if(!(NO_BLOOD in H.dna.species.species_traits) && !H.dna.species.exotic_blood) + H.dna.species.blood_color = "#[num2hex(rand(0, 255))][num2hex(rand(0, 255))][num2hex(rand(0, 255))]" + return ..() + /datum/reagent/colorful_reagent/reaction_mob(mob/living/simple_animal/M, method=TOUCH, volume) if(isanimal(M)) M.color = pick(random_color_list)