mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 03:57:13 +01:00
Merge pull request #9994 from Fox-McCloud/colorful-blood
Colorful Reagent Changes Blood Color
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user