byond - Modules - TypesVar Details - Proc Details

reagents

Vars

addiction_listcurrently addicted reagents
addiction_ticksee /datum/reagents/proc/metabolize for usage
chem_tempCurrent temp of the holder volume
last_tickunused
maximum_volumeMax volume of this holder
my_atomThe atom this holder is attached to
reagent_flagsvarious flags, see code__DEFINES\reagents.dm
reagent_listThe reagents being held
total_volumeCurrent volume of all the reagents

Procs

clear_reagentsRemoves all reagents
copy_toCopies the reagents to the target object
del_reagentRemove a reagent datum with the type provided from this container. True if one is removed, false otherwise.
get_holderGetter proc for our atom holder
get_master_reagentGet a reference to the reagent there is the most of in this holder
get_master_reagent_idGet the id of the reagent there is the most of in this holder
get_master_reagent_nameGet the name of the reagent there is the most of in this holder
get_reagentReturns a regent if it is in this datum
get_reagentsReturns a list of all reagents in this datum
log_listUsed in attack logs for reagents in pills and such
metabolizeTriggers metabolizing the reagents in this holder
remove_allRemoves all reagents from this holder
remove_anyRemove an amount of reagents without caring about what they are
remove_reagentLike add_reagent but you can enter a list. Format it like this: list(/datum/reagent/toxin = 10, /datum/reagent/consumable/ethanol/beer = 15)
trans_id_toTransfer a specific reagent id to the target object
trans_toTransfer some stuff from this holder to a target object

Var Details

addiction_list

currently addicted reagents

addiction_tick

see /datum/reagents/proc/metabolize for usage

chem_temp

Current temp of the holder volume

last_tick

unused

maximum_volume

Max volume of this holder

my_atom

The atom this holder is attached to

reagent_flags

various flags, see code__DEFINES\reagents.dm

reagent_list

The reagents being held

total_volume

Current volume of all the reagents

Proc Details

clear_reagents

Removes all reagents

copy_to

Copies the reagents to the target object

del_reagent

Remove a reagent datum with the type provided from this container. True if one is removed, false otherwise.

get_holder

Getter proc for our atom holder

get_master_reagent

Get a reference to the reagent there is the most of in this holder

get_master_reagent_id

Get the id of the reagent there is the most of in this holder

get_master_reagent_name

Get the name of the reagent there is the most of in this holder

get_reagent

Returns a regent if it is in this datum

get_reagents

Returns a list of all reagents in this datum

log_list

Used in attack logs for reagents in pills and such

Arguments:

metabolize

Triggers metabolizing the reagents in this holder

Arguments:

remove_all

Removes all reagents from this holder

remove_any

Remove an amount of reagents without caring about what they are

remove_reagent

Like add_reagent but you can enter a list. Format it like this: list(/datum/reagent/toxin = 10, /datum/reagent/consumable/ethanol/beer = 15)

trans_id_to

Transfer a specific reagent id to the target object

trans_to

Transfer some stuff from this holder to a target object

Arguments: