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

chempuff

Vars

lifetimeHow many interactions we have left before we disappear early
logging_stringString used in combat logs containing reagents present for when the puff hits something
sprayerThe sprayer who fired this puff
streamAre we a part of a stream?
userThe mob who sourced this puff, if one exists

Procs

spray_down_atomActually handles exposing the passed atom to the reagents and logging
spray_down_turfHandles going through every movable on the passed turf and calling [spray_down_atom] on them.

Var Details

lifetime

How many interactions we have left before we disappear early

logging_string

String used in combat logs containing reagents present for when the puff hits something

sprayer

The sprayer who fired this puff

stream

Are we a part of a stream?

user

The mob who sourced this puff, if one exists

Proc Details

spray_down_atom

Actually handles exposing the passed atom to the reagents and logging

spray_down_turf

Handles going through every movable on the passed turf and calling [spray_down_atom] on them.

[travelled_max_distance] is used to determine if we're at the end of the life, as in some contexts an atom may or may not end up being exposed depending on how far we've travelled.