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

Healing Touch component

A mob with this component will be able to heal certain targets by attacking them. This intercepts the attack and starts a do_after if the target is in its allowed type list.

Vars

action_textText to print when action starts, replaces %SOURCE% with healer and %TARGET% with healed mob
after_healedCallback to run after healing a mob
complete_textText to print when action completes, replaces %SOURCE% with healer and %TARGET% with healed mob
extra_checksAny extra conditions which need to be true to permit healing. Returning TRUE permits the healing, FALSE or null cancels it.
heal_bruteHow much brute damage to heal
heal_burnHow much burn damage to heal
heal_colorColor for the healing effect
heal_oxyHow much oxygen damage to heal
heal_staminaHow much stamina damage to heal
heal_timeTime it takes to perform the healing action
heal_toxHow much toxin damage to heal
interaction_keyInteraction will use this key, and be blocked while this key is in use
required_bodytypeWhich kinds of carbon limbs can we heal, has no effect on non-carbon mobs. Set to null if you don't care about excluding prosthetics.
required_modifierOptional click modifier required
self_targetingHow targeting yourself works, expects one of HEALING_TOUCH_ANYONE, HEALING_TOUCH_NOT_SELF, or HEALING_TOUCH_SELF_ONLY
show_healthWhether to print the target's remaining health after healing (for non-carbon targets only)
valid_biotypesBitfield for biotypes of mobs we can heal
valid_targets_typecacheTypecache of mobs we can heal

Procs

format_stringReformats the passed string with the replacetext keys
has_healable_damageReturns true if the target has a kind of damage which we can heal
heal_targetPerform a do_after and then heal our target
try_healingValidate our target, and interrupt the attack chain to start healing it if it is allowed

Var Details

action_text

Text to print when action starts, replaces %SOURCE% with healer and %TARGET% with healed mob

after_healed

Callback to run after healing a mob

complete_text

Text to print when action completes, replaces %SOURCE% with healer and %TARGET% with healed mob

extra_checks

Any extra conditions which need to be true to permit healing. Returning TRUE permits the healing, FALSE or null cancels it.

heal_brute

How much brute damage to heal

heal_burn

How much burn damage to heal

heal_color

Color for the healing effect

heal_oxy

How much oxygen damage to heal

heal_stamina

How much stamina damage to heal

heal_time

Time it takes to perform the healing action

heal_tox

How much toxin damage to heal

interaction_key

Interaction will use this key, and be blocked while this key is in use

required_bodytype

Which kinds of carbon limbs can we heal, has no effect on non-carbon mobs. Set to null if you don't care about excluding prosthetics.

required_modifier

Optional click modifier required

self_targeting

How targeting yourself works, expects one of HEALING_TOUCH_ANYONE, HEALING_TOUCH_NOT_SELF, or HEALING_TOUCH_SELF_ONLY

show_health

Whether to print the target's remaining health after healing (for non-carbon targets only)

valid_biotypes

Bitfield for biotypes of mobs we can heal

valid_targets_typecache

Typecache of mobs we can heal

Proc Details

format_string

Reformats the passed string with the replacetext keys

has_healable_damage

Returns true if the target has a kind of damage which we can heal

heal_target

Perform a do_after and then heal our target

try_healing

Validate our target, and interrupt the attack chain to start healing it if it is allowed