disease

Vars | |
| chemical_offsets | Number of cycles we've benefited from chemical or other non-resting symptom protection |
|---|---|
| cure_chance | The probability of this infection being cured every second the cure is present |
| cycles_to_beat | How many cycles do we need to have been active after hitting our max stage to start rolling back? |
| incubation_time | How long this infection incubates (non-visible) before revealing itself |
| infectivity | The probability of spreading through the air every second |
| peaked_cycles | How many cycles has the virus been at its peak? |
| required_organ | If the disease requires an organ for the effects to function, robotic organs are immune to disease unless inorganic biology symptom is present |
| stage_peaked | Has the virus hit its limit? |
| stage_prob | The probability of this infection advancing a stage every second the cure is not present. |
| symptom_offsets | Number of cycles we've prevented symptoms from appearing |
Procs | |
| admin_details | Returns a string for admin logging uses, should describe the disease in detail |
| has_required_infectious_organ | Checks if the mob has the required organ and it's not robotic or affected by inorganic biology |
| is_viable_mobtype | Checks the given typepath against the list of viable mobtypes. |
| stage_act | Proc to process the disease and decide on whether to advance, cure or make the symptoms appear. Returns a boolean on whether to continue acting on the symptoms or not. |
Var Details
chemical_offsets

Number of cycles we've benefited from chemical or other non-resting symptom protection
cure_chance

The probability of this infection being cured every second the cure is present
cycles_to_beat

How many cycles do we need to have been active after hitting our max stage to start rolling back?
incubation_time

How long this infection incubates (non-visible) before revealing itself
infectivity

The probability of spreading through the air every second
peaked_cycles

How many cycles has the virus been at its peak?
required_organ

If the disease requires an organ for the effects to function, robotic organs are immune to disease unless inorganic biology symptom is present
stage_peaked

Has the virus hit its limit?
stage_prob

The probability of this infection advancing a stage every second the cure is not present.
symptom_offsets

Number of cycles we've prevented symptoms from appearing
Proc Details
admin_details
Returns a string for admin logging uses, should describe the disease in detail
has_required_infectious_organ
Checks if the mob has the required organ and it's not robotic or affected by inorganic biology
is_viable_mobtype
Checks the given typepath against the list of viable mobtypes.
Returns TRUE if the mob_type path is derived from of any entry in the viable_mobtypes list. Returns FALSE otherwise.
Arguments:
- mob_type - Type path to check against the viable_mobtypes list.
stage_act
Proc to process the disease and decide on whether to advance, cure or make the symptoms appear. Returns a boolean on whether to continue acting on the symptoms or not.