rot

Makes a thing rotting, carries with it a start delay and some things that can halt the rot, along with infection logic
Vars | |
active | Is the component active right now? |
---|---|
blockers | Bitfield of sources preventing the component from rotting |
scaling_delay | The time in ticks before a rot component reaches its full effectiveness |
start_delay | The delay in ticks between the start of rot and effects kicking in |
start_time | The time we were created, allows for cheese smell |
strength | How strong is the rot? used for scaling different aspects of the component. Between 0 and 1 |
Procs | |
on_entered | Triggered when something enters the component's parent. |
rest | One of two procs that modifies blockers, this one handles adding a blocker and potentially ending the rot |
rot_react | The main bit of logic for the rot component, does a temperature check and has a chance to infect react_to |
start_up | One of two procs that modifies blockers, this one handles removing a blocker and potentially restarting the rot |
Var Details
active

Is the component active right now?
blockers

Bitfield of sources preventing the component from rotting
scaling_delay

The time in ticks before a rot component reaches its full effectiveness
start_delay

The delay in ticks between the start of rot and effects kicking in
start_time

The time we were created, allows for cheese smell
strength

How strong is the rot? used for scaling different aspects of the component. Between 0 and 1
Proc Details
on_entered
Triggered when something enters the component's parent.
rest
One of two procs that modifies blockers, this one handles adding a blocker and potentially ending the rot
rot_react
The main bit of logic for the rot component, does a temperature check and has a chance to infect react_to
start_up
One of two procs that modifies blockers, this one handles removing a blocker and potentially restarting the rot