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

limb

Vars

disabled_wound_penaltyWhen this bodypart hits max damage, this number is added to all wound rolls. Obviously only relevant for bodyparts that have damage caps.
generic_bleedstacksHow much generic bleedstacks we have on this bodypart
last_maxedSo we know if we need to scream if this limb hits max damage
scarsThe scars currently afflicting this body part
scars_covered_by_clothesA hat won't cover your face, but a shirt covering your chest will cover your... you know, chest
specific_locationsDescriptions for the locations on the limb for scars to be assigned, just cosmetic
wound_damage_multiplierOur current stored wound damage multiplier
wound_resistanceThis number is subtracted from all wound rolls on this bodypart, higher numbers mean more defense, negative means easier to wound
woundsThe wounds currently afflicting this body part

Procs

check_woundingcheck_wounding() is where we handle rolling for, selecting, and applying a wound if we meet the criteria
get_wound_typeGet whatever wound of the given type is currently attached to this limb, if any
update_woundsvery rough start for updating efficiency and other stats on a body part whenever a wound is gained/lost

Var Details

disabled_wound_penalty

When this bodypart hits max damage, this number is added to all wound rolls. Obviously only relevant for bodyparts that have damage caps.

generic_bleedstacks

How much generic bleedstacks we have on this bodypart

last_maxed

So we know if we need to scream if this limb hits max damage

scars

The scars currently afflicting this body part

scars_covered_by_clothes

A hat won't cover your face, but a shirt covering your chest will cover your... you know, chest

specific_locations

Descriptions for the locations on the limb for scars to be assigned, just cosmetic

wound_damage_multiplier

Our current stored wound damage multiplier

wound_resistance

This number is subtracted from all wound rolls on this bodypart, higher numbers mean more defense, negative means easier to wound

wounds

The wounds currently afflicting this body part

Proc Details

check_wounding

check_wounding() is where we handle rolling for, selecting, and applying a wound if we meet the criteria

We generate a "score" for how woundable the attack was based on the damage and other factors discussed in [check_wounding_mods()], then go down the list from most severe to least severe wounds in that category. We can promote a wound from a lesser to a higher severity this way, but we give up if we have a wound of the given type and fail to roll a higher severity, so no sidegrades/downgrades

Arguments:

get_wound_type

Get whatever wound of the given type is currently attached to this limb, if any

update_wounds

very rough start for updating efficiency and other stats on a body part whenever a wound is gained/lost