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_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 |
Procs | |
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 |
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