chempuff ![code/game/objects/effects/decals/misc.dm 2](git.png)
Vars | |
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 |
Procs | |
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. |
Var Details
lifetime ![code/game/objects/effects/decals/misc.dm 13](git.png)
How many interactions we have left before we disappear early
logging_string ![code/game/objects/effects/decals/misc.dm 19](git.png)
String used in combat logs containing reagents present for when the puff hits something
sprayer ![code/game/objects/effects/decals/misc.dm 11](git.png)
The sprayer who fired this puff
stream ![code/game/objects/effects/decals/misc.dm 15](git.png)
Are we a part of a stream?
user ![code/game/objects/effects/decals/misc.dm 9](git.png)
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.