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

swabable

Vars

cell_line_amountAmount of cell lines on a single sample
cell_line_defineThe define of the cell_line list to use
virus_chanceThe chance the sample will be infected with a virus.
virus_defineThe define of the cell_virus list to use

Procs

AttachListens for the swab signal and then generate a sample based on pre-determined lists that are saved as GLOBs. this allows us to have very few swabbable element instances.
DetachStops listening to the swab signal; you can no longer be swabbed.
GenerateSampleGenerates a /datum/biological_sample
GetSwabbedRan when the parent is swabbed by an object that can swab that type of obj. The list is sent by ref, which means the thing which sent the signal will still have the updated list.

Var Details

cell_line_amount

Amount of cell lines on a single sample

cell_line_define

The define of the cell_line list to use

virus_chance

The chance the sample will be infected with a virus.

virus_define

The define of the cell_virus list to use

Proc Details

Attach

Listens for the swab signal and then generate a sample based on pre-determined lists that are saved as GLOBs. this allows us to have very few swabbable element instances.

Detach

Stops listening to the swab signal; you can no longer be swabbed.

GenerateSample

Generates a /datum/biological_sample

GetSwabbed

Ran when the parent is swabbed by an object that can swab that type of obj. The list is sent by ref, which means the thing which sent the signal will still have the updated list.