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

blood_type

Vars

blood_flagsSplash and expose behaviors for this blood type's reagent, to prevent water-blood covered items, as well as information transfer flags
colorShown color of the blood type.
compatible_typesBlood types that are safe to use with people that have this blood type (for blood transfusions)
descA description of the blood type.
dna_stringWhat DNA string does this bloodtype have by default, if not set by a mob?
idUnique 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_universalIf this blood type is meant to persist across species changes
nameName of the blood type.
reagent_typeWhat reagent is represented by this blood type?
restoration_chemWhat chem is used to restore this blood type (outside of itself, of course)?
root_abstract_typeExclude abstract root types from being initialized by defining them here

Procs

get_blood_nameName of the reagent we use for blood
get_colorReturns 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_colorReturns blood color for mob damage overlays
get_emissive_alphaReturns emissive value for an atom is_worn - Emissive is being fetched for a mob overlay and not the item itself
get_typeType string of this bloodtype. Used to prevent "Oil type: Oil" scenarios
get_wound_colorReturns blood color for wound bleeding overlays
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 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

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 compatible_types

Allows for more complex or dynamically generated blood types