/tg/ Station 13 - Modules - TypesDefine Details

code/__HELPERS/reagents.dm

/proc/convert_ph_to_readable_colorConverts 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_stringReturns a list of chemical_reaction datums that have the input STRING as a product
/proc/find_reagentReturns reagent datum from typepath
/proc/get_random_reagent_idReturns a random reagent object, with the option to blacklist reagents.
/proc/get_random_drink_idReturns a random reagent consumable ethanol object minus blacklisted reagents
/proc/get_chem_idReturns reagent datum from reagent name string
/proc/get_recipe_from_reagent_productTakes 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