blood_type 
Blood Types
Singleton datums which represent, well, blood inside someone
Vars | |
| 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 |
Procs | |
| 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 |
| set_up_blood | Used to handle any unique facets of blood spawned of this blood type |
| type_key | Key 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
- dna - associative list of blood DNA to add to the blood splatter
- blood_turf - the turf to spawn the blood on
- drip - whether to spawn a drip or a splatter
- viruses - list of viruses to add to the blood splatter
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
- blood - the blood being set up
- new_splat - whether this is a newly instantiated blood decal, or an existing one this blood is being added to
- only_type - whether this blood decal is only of this blood type, or if it has other blood types mixed in
type_key
Key used to identify this blood type in the global blood_types list
Allows for more complex or dynamically generated blood types