byond - Modules - TypesVar Details - Proc Details

limb

EXTERNAL ORGANS

Vars

base_regenAmount of damage this limb regenerates per tick while treated before multi-limb regen penalty
brute_dambrute damage this limb has taken as a part
burn_damburn damage this limb has taken as a part
cover_indexWhat % of the body does this limb cover. Make sure that the sum is always 100.
damage_msgMessage that displays when you feel pain from this limb
germ_levelINTERNAL germs inside the organ, this is BAD if it's greater than INFECTION_LEVEL_ONE
icon_positionWhether the icon created for this limb is LEFT, RIGHT or 0. Currently utilised for legs and feet
implants/obj/item/implant Implants contained within this specific limb
in_surgery_opWhether someone is currently doing surgery on this limb
internal_organsList of Internal organs of this body part
max_damageMax damage the limb can take. Extremities sever when they have at least LIMB_MAX_DAMAGE_SEVER_RATIO as a fraction of this in brute damage.
nameActual name of the limb
next_infection_messageKeeps track of the last time the limb bothered its owner about infection to prevent spam.
ownerHuman owner mob of this limb
splint_healthHow many instances of damage the limb can take before its splints fall off
vitalWhether this limb is vital, if true you die on losing it (todo make a flag)
wound_update_accuracyhow often wounds should be updated, a higher number means less often

Procs

add_internal_bleedingFor testing convenience. Adds one internal_bleeding wound to the limb.
apply_splintsapplies a splint stack to this limb. should probably be more generic but #notit
biotizeused to give LIMB_BIOTIC flag to the limb
clean_ownerSignal handler to clean owner and prevent hardel
createwoundActually applies the damage to the limb. Use this directly to bypass 'hitting' the limb with regard to splints, internal wounds, and dismemberment.
emp_actDAMAGE PROCS
extra_splint_checksextra checks to perform during [/proc/apply_splints] do_after
has_external_woundTrue if the limb has any damage on it
need_processPROCESSING & UPDATING
rejuvenateThis proc completely restores a damaged organ to perfect condition.
release_restraintsHELPERS
reset_limb_surgeriescalled when limb is removed or robotized, any ongoing surgery and related vars are reset
robotizeEmit a signal for autodoc to support the life if available
setAmputatedTreeDISMEMBERMENT
update_bleedingUpdates LIMB_BLEEDING limb flag
update_woundsUpdating wounds. Handles natural damage healing from limb treatments and processes internal wounds

Var Details

base_regen

Amount of damage this limb regenerates per tick while treated before multi-limb regen penalty

brute_dam

brute damage this limb has taken as a part

burn_dam

burn damage this limb has taken as a part

cover_index

What % of the body does this limb cover. Make sure that the sum is always 100.

damage_msg

Message that displays when you feel pain from this limb

germ_level

INTERNAL germs inside the organ, this is BAD if it's greater than INFECTION_LEVEL_ONE

icon_position

Whether the icon created for this limb is LEFT, RIGHT or 0. Currently utilised for legs and feet

implants

/obj/item/implant Implants contained within this specific limb

in_surgery_op

Whether someone is currently doing surgery on this limb

internal_organs

List of Internal organs of this body part

max_damage

Max damage the limb can take. Extremities sever when they have at least LIMB_MAX_DAMAGE_SEVER_RATIO as a fraction of this in brute damage.

name

Actual name of the limb

next_infection_message

Keeps track of the last time the limb bothered its owner about infection to prevent spam.

owner

Human owner mob of this limb

splint_health

How many instances of damage the limb can take before its splints fall off

vital

Whether this limb is vital, if true you die on losing it (todo make a flag)

wound_update_accuracy

how often wounds should be updated, a higher number means less often

Proc Details

add_internal_bleeding

For testing convenience. Adds one internal_bleeding wound to the limb.

apply_splints

applies a splint stack to this limb. should probably be more generic but #notit

biotize

used to give LIMB_BIOTIC flag to the limb

clean_owner

Signal handler to clean owner and prevent hardel

createwound

Actually applies the damage to the limb. Use this directly to bypass 'hitting' the limb with regard to splints, internal wounds, and dismemberment.

emp_act

DAMAGE PROCS

extra_splint_checks

extra checks to perform during [/proc/apply_splints] do_after

has_external_wound

True if the limb has any damage on it

need_process

PROCESSING & UPDATING

rejuvenate

This proc completely restores a damaged organ to perfect condition.

release_restraints

HELPERS

reset_limb_surgeries

called when limb is removed or robotized, any ongoing surgery and related vars are reset

robotize

Emit a signal for autodoc to support the life if available

setAmputatedTree

DISMEMBERMENT

update_bleeding

Updates LIMB_BLEEDING limb flag

update_wounds

Updating wounds. Handles natural damage healing from limb treatments and processes internal wounds