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

iv_drip

Universal IV that can drain blood or feed reagents over a period of time from or to a replaceable container

Vars

attachedWhat are we sticking our needle in?
drip_containersTypecache of containers we accept
fill_icon_stateicon_state for the reagent fill overlay
fill_icon_thresholdsThe thresholds used to determine the reagent fill icon
modeAre we donating or injecting?
reagent_containerInternal beaker
transfer_ratewhether we feed slower
use_internal_storageSet false to block beaker use and instead use an internal reagent holder

Procs

attach_ivcalled when an IV is attached
can_use_alt_clickChecks whether the IV drip transfer rate can be modified with AltClick
change_transfer_rateSets the transfer rate to the provided value
detach_ivCalled when an iv is detached. doesnt include chat stuff because there's multiple options and its better handled by the caller
get_reagentsGet the reagents used by IV drip

Var Details

attached

What are we sticking our needle in?

drip_containers

Typecache of containers we accept

fill_icon_state

icon_state for the reagent fill overlay

fill_icon_thresholds

The thresholds used to determine the reagent fill icon

mode

Are we donating or injecting?

reagent_container

Internal beaker

transfer_rate

whether we feed slower

use_internal_storage

Set false to block beaker use and instead use an internal reagent holder

Proc Details

attach_iv

called when an IV is attached

can_use_alt_click

Checks whether the IV drip transfer rate can be modified with AltClick

change_transfer_rate

Sets the transfer rate to the provided value

detach_iv

Called when an iv is detached. doesnt include chat stuff because there's multiple options and its better handled by the caller

get_reagents

Get the reagents used by IV drip