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

bodypart_effect

Effects added to a carbon focused on the bodyparts itself, such as adding a photosynthesis component that

Vars

bodypartsList of bodyparts contributing to this effect
is_activeAre we currently active? We don't NEED to track it, but it's a lot easier and faster if we do
minimum_bodypartsMinimum amount of bodyparts required for on_apply to be called. When tipping below, on_remove is called

Procs

DestroyClean up all references and self-destruct
activateActivate some sort of effect when a threshold is reached
add_bodypartMerge a bodypart into the effect
deactivateRemove an effect whenever a threshold is no longer reached
on_bodypart_destroyedSignal called when a bodypart is destroyed. Destruction of a bodypart doesn't necessarily drop it
on_bodypart_removedSignal called when a bodypart is removed
remove_bodypartRemove a bodypart from the effect. Deleting = TRUE is used during clean-up phase

Var Details

bodyparts

List of bodyparts contributing to this effect

is_active

Are we currently active? We don't NEED to track it, but it's a lot easier and faster if we do

minimum_bodyparts

Minimum amount of bodyparts required for on_apply to be called. When tipping below, on_remove is called

Proc Details

Destroy

Clean up all references and self-destruct

activate

Activate some sort of effect when a threshold is reached

add_bodypart

Merge a bodypart into the effect

deactivate

Remove an effect whenever a threshold is no longer reached

on_bodypart_destroyed

Signal called when a bodypart is destroyed. Destruction of a bodypart doesn't necessarily drop it

on_bodypart_removed

Signal called when a bodypart is removed

remove_bodypart

Remove a bodypart from the effect. Deleting = TRUE is used during clean-up phase