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

regenerator

If the loc is null, only a black (or grey depending on alpha) silhouette of the target will be rendered Just putting this information here in case you want something like that in the future. The filter is added to the reflection holder; the matrix is not, otherwise that'd go affecting the filter.

Regenerator component

A mob with this component will regenerate its health over time, as long as it has not received damage in the last X seconds. Taking any damage will reset this cooldown.

Vars

brute_per_secondBrute reagined every second
burn_per_secondBurn reagined every second
heals_woundsIf TRUE, we'll try to heal wounds as well. Useless for non-humans.
ignore_damage_typesList of damage types we don't care about, in case you want to only remove this with fire damage or something
outline_colourColour of regeneration animation, or none if you don't want one
oxy_per_secondOxygen reagined every second
regeneration_delayYou will only regain health if you haven't been hurt for this many seconds
regeneration_start_timerWhen this timer completes we start restoring health, it is a timer rather than a cooldown so we can do something on its completion
tox_per_secondToxin reagined every second

Procs

on_take_damageWhen you take damage, reset the cooldown and start processing
should_be_regenningChecks if the passed mob is in a valid state to be regenerating
start_regeneratingStart processing health regeneration, and show animation if provided

Var Details

brute_per_second

Brute reagined every second

burn_per_second

Burn reagined every second

heals_wounds

If TRUE, we'll try to heal wounds as well. Useless for non-humans.

ignore_damage_types

List of damage types we don't care about, in case you want to only remove this with fire damage or something

outline_colour

Colour of regeneration animation, or none if you don't want one

oxy_per_second

Oxygen reagined every second

regeneration_delay

You will only regain health if you haven't been hurt for this many seconds

regeneration_start_timer

When this timer completes we start restoring health, it is a timer rather than a cooldown so we can do something on its completion

tox_per_second

Toxin reagined every second

Proc Details

on_take_damage

When you take damage, reset the cooldown and start processing

should_be_regenning

Checks if the passed mob is in a valid state to be regenerating

start_regenerating

Start processing health regeneration, and show animation if provided