mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-27 14:07:51 +01:00
Blood colouring in syringes (#15626)
* Blood reagent colours * Clarification
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user