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

disease

Vars

chemical_offsetsNumber of cycles we've benefited from chemical or other non-resting symptom protection
cure_chanceThe probability of this infection being cured every second the cure is present
cycles_to_beatHow many cycles do we need to have been active after hitting our max stage to start rolling back?
incubation_timeHow long this infection incubates (non-visible) before revealing itself
infectivityThe probability of spreading through the air every second
peaked_cyclesHow many cycles has the virus been at its peak?
required_organIf the disease requires an organ for the effects to function, robotic organs are immune to disease unless inorganic biology symptom is present
stage_peakedHas the virus hit its limit?
stage_probThe probability of this infection advancing a stage every second the cure is not present.
symptom_offsetsNumber of cycles we've prevented symptoms from appearing

Procs

admin_detailsReturns a string for admin logging uses, should describe the disease in detail
airborne_spreadHandles performing a spread-via-air
has_required_infectious_organChecks if the mob has the required organ and it's not robotic or affected by inorganic biology
is_viable_mobtypeChecks the given typepath against the list of viable mobtypes.
on_breathHandles spreading via air when our mob breathes
register_disease_signalsRegister any relevant signals for the disease
stage_actProc 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.
unregister_disease_signalsUnregister any relevant signals for the disease
update_spread_flagsUpdates the spread flags set, ensuring signals are updated as necessary

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

airborne_spread

Handles performing a spread-via-air

Checks for stuff like "is our mouth covered" for you

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:

on_breath

Handles spreading via air when our mob breathes

register_disease_signals

Register any relevant signals for the disease

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.

unregister_disease_signals

Unregister any relevant signals for the disease

update_spread_flags

Updates the spread flags set, ensuring signals are updated as necessary