blood_type 
Vars | |
blood_flags | Splash and expose behaviors for this blood type's reagent, to prevent water-blood covered items, as well as information transfer flags |
---|---|
color | Shown color of the blood type. |
compatible_types | Blood types that are safe to use with people that have this blood type (for blood transfusions) |
desc | A description of the blood type. |
dna_string | What DNA string does this bloodtype have by default, if not set by a mob? |
id | Unique identifier for the blood type in the global list of singletons. Typically this is just the name, but some blood types might have the same name (e.g. evil blood) |
is_species_universal | If this blood type is meant to persist across species changes |
name | Name of the blood type. |
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)? |
root_abstract_type | Exclude abstract root types from being initialized by defining them here |
Procs | |
get_blood_name | Name of the reagent we use for blood |
get_color | Returns blood color or color matrix Useful when you want to have a blood color with values out of normal hex bounds for that acidic look set dynamic to TRUE to redo the matrix each time (e.g. for clown blood dynamically shifting each time) |
get_damage_color | Returns blood color for mob damage overlays |
get_emissive_alpha | Returns emissive value for an atom is_worn - Emissive is being fetched for a mob overlay and not the item itself |
get_type | Type string of this bloodtype. Used to prevent "Oil type: Oil" scenarios |
get_wound_color | Returns blood color for wound bleeding overlays |
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 compatible_types |
Var Details
blood_flags 
Splash and expose behaviors for this blood type's reagent, to prevent water-blood covered items, as well as information transfer flags
color 
Shown color of the blood type.
compatible_types 
Blood types that are safe to use with people that have this blood type (for blood transfusions)
desc 
A description of the blood type.
dna_string 
What DNA string does this bloodtype have by default, if not set by a mob?
id 
Unique identifier for the blood type in the global list of singletons. Typically this is just the name, but some blood types might have the same name (e.g. evil blood)
is_species_universal 
If this blood type is meant to persist across species changes
name 
Name of the blood type.
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)?
root_abstract_type 
Exclude abstract root types from being initialized by defining them here
Proc Details
get_blood_name
Name of the reagent we use for blood
get_color
Returns blood color or color matrix Useful when you want to have a blood color with values out of normal hex bounds for that acidic look set dynamic to TRUE to redo the matrix each time (e.g. for clown blood dynamically shifting each time)
get_damage_color
Returns blood color for mob damage overlays
get_emissive_alpha
Returns emissive value for an atom is_worn - Emissive is being fetched for a mob overlay and not the item itself
get_type
Type string of this bloodtype. Used to prevent "Oil type: Oil" scenarios
get_wound_color
Returns blood color for wound bleeding overlays
make_blood_splatter
Helper proc to make a blood splatter from the passed mob of this type
Arguments
- bleeding - the mob bleeding the blood, note we assume this blood type is that mob's blood
- blood_turf - the turf to spawn the blood on
- drip - whether to spawn a drip or a 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
type_key
Key used to identify this blood type in compatible_types
Allows for more complex or dynamically generated blood types