Blood colouring in syringes (#15626)

* Blood reagent colours

* Clarification
This commit is contained in:
SabreML
2021-03-02 09:30:18 +00:00
committed by GitHub
parent a4ebb3a36f
commit 983d39925f
+3 -1
View File
@@ -16,6 +16,8 @@ GLOBAL_LIST_INIT(random_color_list, list("#00aedb","#a200ff","#f47835","#d41243"
for(var/datum/reagent/reagent in reagent_list)
if(reagent.id == "blood" && reagent.data && reagent.data["blood_color"])
reagent_color = reagent.data["blood_color"]
else if(reagent.id == "slimejelly" && reagent.data && reagent.data["colour"])
reagent_color = reagent.data["colour"]
else
reagent_color = reagent.color
@@ -23,7 +25,7 @@ GLOBAL_LIST_INIT(random_color_list, list("#00aedb","#a200ff","#f47835","#d41243"
vol_counter += vol_temp
if(isnull(color))
color = reagent.color
color = reagent_color
else if(length(color) >= length(reagent_color))
color = BlendRGB(color, reagent_color, vol_temp/vol_counter)
else