Daedalus Dock - Modules - TypesDefine Details

code/__HELPERS/reagents.dm

/proc/convert_ph_to_readable_color Converts the pH into a tgui readable color - i.e. white and black text is readable over it. This is NOT the colourwheel for pHes however.
CONVERT_PH_TO_COLORConverts pH to universal indicator colours. This is the colorwheel for pHes
/proc/get_reagent_type_from_product_string Returns a list of chemical_reaction datums that have the input STRING as a product
/proc/find_reagent Returns reagent datum from typepath
/proc/get_random_reagent_id Returns a random reagent object minus blacklisted reagents
/proc/get_chem_id Returns reagent datum from reagent name string
/proc/get_recipe_from_reagent_product Takes a type in and returns a list of associated recipes

Define Details

CONVERT_PH_TO_COLOR

Converts pH to universal indicator colours. This is the colorwheel for pHes