foam

Similar to smoke, but slower and mobs absorb its reagent through their exposed skin.
Vars | |
allow_duplicate_results | Whether or not this foam can produce a remnant movable if something of the same type is already on its turf. |
---|---|
blacklisted_turfs | The types of turfs that this foam cannot spread to. |
lifetime | The amount of time this foam stick around for before it dissipates. |
result_type | The typepath for what this foam leaves behind when it dissipates. |
slippery_foam | Whether or not this foam should be slippery. |
Procs | |
foam_mob | Applies the effect of this foam to a mob. |
kill_foam | Makes the foam dissipate and create whatever remnants it must. |
make_result | Makes the foam leave behind something when it dissipates. |
Var Details
allow_duplicate_results

Whether or not this foam can produce a remnant movable if something of the same type is already on its turf.
blacklisted_turfs

The types of turfs that this foam cannot spread to.
lifetime

The amount of time this foam stick around for before it dissipates.
result_type

The typepath for what this foam leaves behind when it dissipates.
slippery_foam

Whether or not this foam should be slippery.
Proc Details
foam_mob
Applies the effect of this foam to a mob.
Arguments:
- foaming: The mob that this foam is acting on.
- seconds_per_tick: The amount of time that this foam is acting on them over.
Returns:
- [TRUE]: If the foam was successfully applied to the mob. Used to scale how quickly foam dissipates according to the number of mobs it is applied to.
kill_foam
Makes the foam dissipate and create whatever remnants it must.
make_result
Makes the foam leave behind something when it dissipates.
Returns the thing the foam leaves behind for further modification by subtypes.