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

pandemic

Vars

beakerThe inserted beaker
selected_symptomThe currently selected symptom
waitWhether the pandemic is ready to make another culture/vaccine

Procs

create_culture_bottleCreates a culture bottle (ie: replicates) of the the specified disease.
create_vaccine_bottleCreates a vaccine bottle for the specified disease.
eject_beakerSupporting proc to eject a beaker from the machine.
get_by_indexDisplays a thing if it exists within the contents of a beaker.
get_resistance_dataGets resistances of a given blood sample as a list
get_virus_id_by_indexGets the ID of the virus by its index in the list of viruses.
get_viruses_dataA very hefty proc that I am not proud to see.
rename_diseaseRenames an advanced disease after running it through sanitize_name().
reset_replicator_cooldownAllows a user to create another vaccine/culture bottle again.

Var Details

beaker

The inserted beaker

selected_symptom

The currently selected symptom

wait

Whether the pandemic is ready to make another culture/vaccine

Proc Details

create_culture_bottle

Creates a culture bottle (ie: replicates) of the the specified disease.

@param {number} index - The index of the disease to replicate.

@returns {boolean} - Success or failure.

create_vaccine_bottle

Creates a vaccine bottle for the specified disease.

@param {number} index - The index of the disease to replicate.

@returns {boolean} - Success or failure.

eject_beaker

Supporting proc to eject a beaker from the machine.

Places it in hand if possible.

@returns {boolean} - Success or failure.

get_by_index

Displays a thing if it exists within the contents of a beaker.

@param {any} thing - The key to look for.

@param {any} index - Nested objects within the thing.

@returns {any | boolean} The thing found or FALSE if unsuccessful.

get_resistance_data

Gets resistances of a given blood sample as a list

@param {reagent/blood} blood - The sample.

@returns {list} - The resistances.

get_virus_id_by_index

Gets the ID of the virus by its index in the list of viruses.

@param {number} index - The index of the virus in the list of viruses.

@returns {string | boolean} - The ID of the virus or FALSE if unable to find the virus.

get_viruses_data

A very hefty proc that I am not proud to see.

Given a blood sample, this proc will return a list of viruses that are present in the sample.

Contains traits, symptoms, thresholds etc.

@param {reagent/blood} blood - The sample to analyze.

@returns {list} - A list of virus info present in the sample.

rename_disease

Renames an advanced disease after running it through sanitize_name().

@param {string} id - The ID of the disease to rename.

@param {string} name - The new name of the disease.

@returns {boolean} - Success or failure.

reset_replicator_cooldown

Allows a user to create another vaccine/culture bottle again.

@returns {boolean} - Success or failure.