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

scar

scars are cosmetic datums that are assigned to bodyparts once they recover from wounds. Each wound type and severity have their own descriptions for what the scars look like, and then each body part has a list of "specific locations" like your elbow or wrist or wherever the scar can appear, to make it more interesting than "right arm"

Arguments:

Vars

biologyObviously, scars that describe damaged flesh wouldn't apply to a skeleton (in some cases like bone wounds, there can be different descriptions for skeletons and fleshy humanoids)
coverableWhether this scar can actually be covered up by clothing
descriptionThe description of the scar for examining
fakeIn case we ever want to make scars that won't be saved for persistent scarring (formerly used by the now-removed longtimer quirk)
precise_locationA string detailing the specific part of the bodypart the scar is on, for fluff purposes. See /datum/scar/proc/generate
severityThe severity of the scar, derived from the worst severity a wound was at before it was healed (see: slashes), determines how visible/bold the scar description is
visibilityHow many tiles away someone can see this scar, goes up with severity. Clothes covering this limb will decrease visibility by 1 each, except for the head/face which is a binary "is mask obscuring face" check

Procs

formatUsed to format a scar to save in preferences for persistent scars
format_amputatedUsed to format a scar to save in preferences for persistent scars
generategenerate() is used to actually fill out the info for a scar, according to the limb and wound it is provided.
get_examine_descriptionWhat will show up in examine_more() if this scar is visible
is_visibleWhether a scar can currently be seen by the viewer
lazy_attachUsed when we finalize a scar from a healing cut
loadUsed to "load" a persistent scar

Var Details

biology

Obviously, scars that describe damaged flesh wouldn't apply to a skeleton (in some cases like bone wounds, there can be different descriptions for skeletons and fleshy humanoids)

coverable

Whether this scar can actually be covered up by clothing

description

The description of the scar for examining

fake

In case we ever want to make scars that won't be saved for persistent scarring (formerly used by the now-removed longtimer quirk)

precise_location

A string detailing the specific part of the bodypart the scar is on, for fluff purposes. See /datum/scar/proc/generate

severity

The severity of the scar, derived from the worst severity a wound was at before it was healed (see: slashes), determines how visible/bold the scar description is

visibility

How many tiles away someone can see this scar, goes up with severity. Clothes covering this limb will decrease visibility by 1 each, except for the head/face which is a binary "is mask obscuring face" check

Proc Details

format

Used to format a scar to save in preferences for persistent scars

format_amputated

Used to format a scar to save in preferences for persistent scars

generate

generate() is used to actually fill out the info for a scar, according to the limb and wound it is provided.

After creating a scar, call this on it while targeting the scarred bodypart with a given wound to apply the scar.

Arguments:

get_examine_description

What will show up in examine_more() if this scar is visible

is_visible

Whether a scar can currently be seen by the viewer

lazy_attach

Used when we finalize a scar from a healing cut

load

Used to "load" a persistent scar