/tg/ Station 13 - Modules - TypesVar Details - Proc Details

reagent_containers

Vars

adjust_color_contrastIf we want to the contrast of the reagent overlay if the reagent mix color is very dark.
amount_per_transfer_from_thisThe maximum amount of reagents per transfer that will be moved out of this reagent container.
disease_amountHow much of a disease specified in spawned_disease should this container spawn with
fill_iconThe icon file to take fill icon appearances from
fill_icon_stateThe optional custom name for the reagent fill icon_state prefix If not set, uses the current icon state.
fill_icon_thresholdsThe different thresholds at which the reagent fill overlay will change. See medical/reagent_fillings.dmi.
filled_drop_soundThe sound this container makes when there is an amount of liquid over a certain threshold inside on drop
filled_equip_soundThe sound this container makes when there is an amount of liquid over a certain threshold inside on equip
filled_hitsoundThe sound this container makes when there is an amount of liquid over a certain threshold inside on hit
filled_pickup_soundThe sound this container makes when there is an amount of liquid over a certain threshold inside on pickup
filled_throw_drop_soundThe sound this container makes when there is an amount of liquid over a certain threshold inside on throw drop
filled_throw_hit_soundThe sound this container makes when there is an amount of liquid over a certain threshold inside on throw impact
has_variable_transfer_amountDoes this container allow changing transfer amounts at all, the container can still have only one possible transfer value in possible_transfer_amounts at some point even if this is true
initial_reagent_flagsThe base reagent flags that our reagent datum takes on when created
list_reagentsA list of what initial reagents this container should spawn with
list_reagents_purityThe purity of the spawned reagents in list_reagents. Default purity if null
possible_transfer_amountsThe different possible amounts of reagent to transfer out of the container
reagent_container_liquid_soundThe sound this container makes when picked up, dropped if there is liquid inside.
spawned_diseaseIf this container should spawn with a disease type inside of it
volumeThe maximum amount of reagents this container can hold

Procs

add_container_flagsAdds the passed flags to the current reagent flags
on_reagent_changeUpdates the icon of the container when the reagents change. Eats signal args
reset_container_flagsResets to base flags
splash_reagentsAttempts to splash the reagents in the container onto the target.
try_splashTries to splash the target, called when right-clicking with a reagent container.
update_container_flagsSets reagent flags to the passed flags outright

Var Details

adjust_color_contrast

If we want to the contrast of the reagent overlay if the reagent mix color is very dark.

amount_per_transfer_from_this

The maximum amount of reagents per transfer that will be moved out of this reagent container.

disease_amount

How much of a disease specified in spawned_disease should this container spawn with

fill_icon

The icon file to take fill icon appearances from

fill_icon_state

The optional custom name for the reagent fill icon_state prefix If not set, uses the current icon state.

fill_icon_thresholds

The different thresholds at which the reagent fill overlay will change. See medical/reagent_fillings.dmi.

Should be a list of integers which correspond to a reagent unit threshold. If null, no automatic fill overlays are generated.

For example, list(0) will mean it will gain a the overlay with any reagents present. This overlay is "overlayname0". list(0, 10) whill have two overlay options, for 0-10 units ("overlayname0") and 10+ units ("overlayname10").

filled_drop_sound

The sound this container makes when there is an amount of liquid over a certain threshold inside on drop

filled_equip_sound

The sound this container makes when there is an amount of liquid over a certain threshold inside on equip

filled_hitsound

The sound this container makes when there is an amount of liquid over a certain threshold inside on hit

filled_pickup_sound

The sound this container makes when there is an amount of liquid over a certain threshold inside on pickup

filled_throw_drop_sound

The sound this container makes when there is an amount of liquid over a certain threshold inside on throw drop

filled_throw_hit_sound

The sound this container makes when there is an amount of liquid over a certain threshold inside on throw impact

has_variable_transfer_amount

Does this container allow changing transfer amounts at all, the container can still have only one possible transfer value in possible_transfer_amounts at some point even if this is true

initial_reagent_flags

The base reagent flags that our reagent datum takes on when created

list_reagents

A list of what initial reagents this container should spawn with

list_reagents_purity

The purity of the spawned reagents in list_reagents. Default purity if null

possible_transfer_amounts

The different possible amounts of reagent to transfer out of the container

reagent_container_liquid_sound

The sound this container makes when picked up, dropped if there is liquid inside.

spawned_disease

If this container should spawn with a disease type inside of it

volume

The maximum amount of reagents this container can hold

Proc Details

add_container_flags

Adds the passed flags to the current reagent flags

on_reagent_change

Updates the icon of the container when the reagents change. Eats signal args

reset_container_flags

Resets to base flags

splash_reagents

Attempts to splash the reagents in the container onto the target.

try_splash

Tries to splash the target, called when right-clicking with a reagent container.

update_container_flags

Sets reagent flags to the passed flags outright