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

blood_type

Blood Types

Singleton datums which represent, well, blood inside someone

Vars

colorWhat color is blood decals spawned of this type
compatible_typesWhat blood types can this type receive from? Itself is always included in this list
nameThe short-hand name of the blood type (No name = abstract, won't be instantiated)
reagent_typeWhat reagent is represented by this blood type?
restoration_chemWhat chem is used to restore this blood type (outside of itself, of course)?
salgu_compatibleIf saline glucose acts as a temporary substitute for this blood type
scent_categoryThe smell category of this blood It should be a string or null, alternatively is inherited from /datum/smell
scent_textThe smell associated with this blood It can be a string, a /datum/smell, or null

Procs

get_blood_dataGets data to pass to a reagent
make_blood_splatterHelper proc to make a blood splatter from the passed mob of this type
set_up_bloodUsed to handle any unique facets of blood spawned of this blood type
type_keyKey used to identify this blood type in the global blood_types list

Var Details

color

What color is blood decals spawned of this type

compatible_types

What blood types can this type receive from? Itself is always included in this list

name

The short-hand name of the blood type (No name = abstract, won't be instantiated)

reagent_type

What reagent is represented by this blood type?

restoration_chem

What chem is used to restore this blood type (outside of itself, of course)?

salgu_compatible

If saline glucose acts as a temporary substitute for this blood type

scent_category

The smell category of this blood It should be a string or null, alternatively is inherited from /datum/smell

scent_text

The smell associated with this blood It can be a string, a /datum/smell, or null

Proc Details

get_blood_data

Gets data to pass to a reagent

make_blood_splatter

Helper proc to make a blood splatter from the passed mob of this type

Arguments

set_up_blood

Used to handle any unique facets of blood spawned of this blood type

You don't need to worry about updating the icon of the decal, it will be handled automatically after setup is finished

Arguments

type_key

Key used to identify this blood type in the global blood_types list

Allows for more complex or dynamically generated blood types