bloodysoles 
Component for clothing items that can pick up blood from decals and spread it around everywhere when walking, such as shoes or suits with integrated shoes.
Vars | |
blood_dropped_per_step | What percentage of the bloodiness is deposited on the ground per step |
---|---|
equipped_slot | The ITEM_SLOT_* slot the item is equipped on, if it is. |
last_pickup | The world.time when we last picked up blood |
max_bloodiness | How much blood can we hold maximum |
share_mod | Multiplier on how much blood taken from pools |
total_bloodiness | Bloodiness on our clothines |
wielder | Either the mob carrying the item, or the mob itself for the /feet component subtype |
Procs | |
add_blood_to_footprint | Adds blood to an existing (or new) footprint |
add_parent_to_footprint | Adds the parent type to the footprint's shoe_types var |
change_blood_amount | Called whenever the value of bloody_soles changes to update our icon and behavior |
get_blood_dna | Fetches this component's blood DNA |
is_obscured | Returns true if the parent item is obscured by something else that the wielder is wearing |
is_under_feet_covered | Returns true if the parent item is worn in the ITEM_SLOT_ICLOTHING slot and the wielder is wearing something on their shoes. |
on_clean | Called when the parent item is being washed |
on_drop | Called when the parent item has been dropped |
on_equip | Called when the parent item is equipped by someone |
on_moved | Called when the wielder has moved |
on_step_blood | Called when the wielder steps in a pool of blood |
share_blood | Run to equally share the blood between us and a decal |
unregister | Unregisters from the wielder if necessary |
update_icon | Run to update the icon of the parent |
Var Details
blood_dropped_per_step 
What percentage of the bloodiness is deposited on the ground per step
equipped_slot 
The ITEM_SLOT_* slot the item is equipped on, if it is.
last_pickup 
The world.time when we last picked up blood
max_bloodiness 
How much blood can we hold maximum
share_mod 
Multiplier on how much blood taken from pools
total_bloodiness 
Bloodiness on our clothines
wielder 
Either the mob carrying the item, or the mob itself for the /feet component subtype
Proc Details
add_blood_to_footprint
Adds blood to an existing (or new) footprint
add_parent_to_footprint
Adds the parent type to the footprint's shoe_types var
change_blood_amount
Called whenever the value of bloody_soles changes to update our icon and behavior
get_blood_dna
Fetches this component's blood DNA
is_obscured
Returns true if the parent item is obscured by something else that the wielder is wearing
is_under_feet_covered
Returns true if the parent item is worn in the ITEM_SLOT_ICLOTHING slot and the wielder is wearing something on their shoes.
Allows for jumpsuits to cover feet without getting all bloodied when their wearer is wearing shoes.
on_clean
Called when the parent item is being washed
on_drop
Called when the parent item has been dropped
Used to deregister our wielder
on_equip
Called when the parent item is equipped by someone
Used to register our wielder
on_moved
Called when the wielder has moved
Used to make bloody footprints on the ground
on_step_blood
Called when the wielder steps in a pool of blood
Used to make the parent item bloody
share_blood
Run to equally share the blood between us and a decal
unregister
Unregisters from the wielder if necessary
update_icon
Run to update the icon of the parent