/datum/reagents
Vars | |
can_be_heated | can be heated by external sources |
---|---|
defer_reactions | Set internally to prevent reactions inside reactions. |
inert | Do not react. At all. Do not pass go, do not collect $200. Halt. Stop right there, son. |
postfoam | attempt at killing infinite foam |
Procs | |
del_reagent | |
get_average_color | returns the average color of the reagents taking into account concentration and transparency reagent_exception_ids argument is a list of reagents to excluded from the calculation |
get_description | returns text description of reagent(s) plus exact text of reagents if using correct equipment |
get_prevalent_tastes | give a list of the n tastes that are most present in this mixture takes argument of how many tastes |
get_state_description | returns whether reagents are solid, liquid, gas, or mixture |
get_taste_string | Gets a string of what something tastes like (as shown to the drinker/eater/whatever) |
is_full | li'l tiny helper thing vOv |
metabolize | multiplier is used to handle realtime metabolizations over byond time |
reaction | paramslist thingy can override the can_burn oh god im sorry. paramslist only used for mobs for now, feeel free to paste in for turfs objs |
reagents_changed | redirect my_atom.on_reagent_change() through this function. var/add will be 1 if reagents were just added |
temperature_react | Calls the temperature reaction procs without changing the temp. |
temperature_reagents | This is what you use to change the temp of a reagent holder. Do not manually change the reagent unless you know what youre doing. |
trans_to | index = which reagent to transfer (0 = all) |
Var Details
can_be_heated
can be heated by external sources
defer_reactions
Set internally to prevent reactions inside reactions.
inert
Do not react. At all. Do not pass go, do not collect $200. Halt. Stop right there, son.
postfoam
attempt at killing infinite foam
Proc Details
del_reagent
- Deletes a reagent from a container. The first argument is the reagent id, the second whether or not the total volume of the container should update, which may be undesirable in the update_total proc.
get_average_color
returns the average color of the reagents taking into account concentration and transparency reagent_exception_ids argument is a list of reagents to excluded from the calculation
get_description
returns text description of reagent(s) plus exact text of reagents if using correct equipment
get_prevalent_tastes
give a list of the n tastes that are most present in this mixture takes argument of how many tastes
get_state_description
returns whether reagents are solid, liquid, gas, or mixture
get_taste_string
Gets a string of what something tastes like (as shown to the drinker/eater/whatever)
is_full
li'l tiny helper thing vOv
metabolize
multiplier is used to handle realtime metabolizations over byond time
reaction
paramslist thingy can override the can_burn oh god im sorry. paramslist only used for mobs for now, feeel free to paste in for turfs objs
reagents_changed
redirect my_atom.on_reagent_change() through this function. var/add will be 1 if reagents were just added
temperature_react
Calls the temperature reaction procs without changing the temp.
temperature_reagents
This is what you use to change the temp of a reagent holder. Do not manually change the reagent unless you know what youre doing.
trans_to
index = which reagent to transfer (0 = all)