Ground sinking component (basicly only for garden gnomes ever at this point)

A basic mob with this component will sink into the ground, once sinked into the ground it will regenerate and might gain damage resistence. Can be combined with caltrop.
Vars | |
damage_res_sinked | Our damage_coeffs when we are sinked |
---|---|
ground_sinking_delay | You will only sink if you haven't been walking for this many seconds |
ground_sinking_start_timer | When this timer completes we start sinking |
heal_when_sinked | If we will heal once we are sinked |
health_per_second | Health to regenerate per second |
is_sinking | If we sinking into the ground right now |
outline_colour | Outline colour of the regeneration |
sink_count | How far we have sinked |
sink_speed | The speed at which the mob will sink |
sinked | If we sinked into the ground right now |
target_icon_state | The icon state of the parent |
Procs | |
finish_sinking | The mob has fully sunk, updates its regeneration, damage resistance and density |
on_moved | When you move, reset the cooldown and start processing |
sinking_progress | Makes the mob try to sink three times. Unsinks if interrupted. |
start_regenerating | The mop starts regaining health |
start_sinking | Start processing health regeneration, and show animation if provided |
stop_regenerating | Stops regaining health |
unsink | The mob pops out of the ground |
Var Details
damage_res_sinked

Our damage_coeffs when we are sinked
ground_sinking_delay

You will only sink if you haven't been walking for this many seconds
ground_sinking_start_timer

When this timer completes we start sinking
heal_when_sinked

If we will heal once we are sinked
health_per_second

Health to regenerate per second
is_sinking

If we sinking into the ground right now
outline_colour

Outline colour of the regeneration
sink_count

How far we have sinked
sink_speed

The speed at which the mob will sink
sinked

If we sinked into the ground right now
target_icon_state

The icon state of the parent
Proc Details
finish_sinking
The mob has fully sunk, updates its regeneration, damage resistance and density
on_moved
When you move, reset the cooldown and start processing
sinking_progress
Makes the mob try to sink three times. Unsinks if interrupted.
start_regenerating
The mop starts regaining health
start_sinking
Start processing health regeneration, and show animation if provided
stop_regenerating
Stops regaining health
unsink
The mob pops out of the ground