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

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_stepWhat percentage of the bloodiness is deposited on the ground per step
equipped_slotThe ITEM_SLOT_* slot the item is equipped on, if it is.
last_pickupThe world.time when we last picked up blood
max_bloodinessHow much blood can we hold maximum
share_modMultiplier on how much blood taken from pools
total_bloodinessBloodiness on our clothines
wielderEither the mob carrying the item, or the mob itself for the /feet component subtype

Procs

add_blood_to_footprintAdds blood to an existing (or new) footprint
add_parent_to_footprintAdds the parent type to the footprint's shoe_types var
change_blood_amountCalled whenever the value of bloody_soles changes to update our icon and behavior
get_blood_dnaFetches this component's blood DNA
is_obscuredReturns true if the parent item is obscured by something else that the wielder is wearing
is_under_feet_coveredReturns true if the parent item is worn in the ITEM_SLOT_ICLOTHING slot and the wielder is wearing something on their shoes.
on_cleanCalled when the parent item is being washed
on_dropCalled when the parent item has been dropped
on_equipCalled when the parent item is equipped by someone
on_movedCalled when the wielder has moved
on_step_bloodCalled when the wielder steps in a pool of blood
share_bloodRun to equally share the blood between us and a decal
unregisterUnregisters from the wielder if necessary
update_iconRun 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