/tg/ Station 13 - Modules - Types — Var Details - Proc Details

garment_fit

What a garment is fitted to: the muscle size of each limb it fits, and pecs drawn under it. Each is made once and shared (get_garment_fit()): a body keeps its own (/mob/living/carbon/human/var/garment_fit), and fitted sprites are cached by it.

Vars

derived_fitsThe fits made from this one, by what they add: a pec shape it was asked for under a top -> this fit over those pecs (over_pecs()), and a flex's sheet -> this fit over its pecs flexing from it (flexing()).
digitigradeThis fit with its legs fitted through their digitigrade templates, for digitigrade art: itself when it fits no legs or already fits them so.
keyThe fit as text, unique to it.
pec_flexThe sheet those pecs flex from, a pec flex's (garment_pec_flex()), or null while they're still. A top over flexing pecs is animated with them (/datum/garment_fit_job/underclothes/flex).
pec_nipplesWhether those pecs draw nipples. Pecs under underclothes draw their nippleless twin either way; this is the shape's own.
pec_shapeThe shape of pecs drawn under the garment, as the pec templates name it ("pecs", "pecs_big" or "pecs_biggest"), or null.
sizesTemplate limb -> muscle size, for each limb above the Normal size, in GLOB.fitness_zones order: "r_arm", "l_arm", the legs by zone or, fitted through their digitigrade templates, "r_leg_digi" and "l_leg_digi", and "chest_m" for a male chest's glutes.

Procs

flexingReturns this fit, one over pecs, with the pecs flexing from sheet, made the first time it's asked for.
over_pecsReturns this fit over pecs drawn under a top, made the first time it's asked for.

Var Details

derived_fits

The fits made from this one, by what they add: a pec shape it was asked for under a top -> this fit over those pecs (over_pecs()), and a flex's sheet -> this fit over its pecs flexing from it (flexing()).

digitigrade

This fit with its legs fitted through their digitigrade templates, for digitigrade art: itself when it fits no legs or already fits them so.

key

The fit as text, unique to it.

pec_flex

The sheet those pecs flex from, a pec flex's (garment_pec_flex()), or null while they're still. A top over flexing pecs is animated with them (/datum/garment_fit_job/underclothes/flex).

pec_nipples

Whether those pecs draw nipples. Pecs under underclothes draw their nippleless twin either way; this is the shape's own.

pec_shape

The shape of pecs drawn under the garment, as the pec templates name it ("pecs", "pecs_big" or "pecs_biggest"), or null.

sizes

Template limb -> muscle size, for each limb above the Normal size, in GLOB.fitness_zones order: "r_arm", "l_arm", the legs by zone or, fitted through their digitigrade templates, "r_leg_digi" and "l_leg_digi", and "chest_m" for a male chest's glutes.

Proc Details

flexing

Returns this fit, one over pecs, with the pecs flexing from sheet, made the first time it's asked for.

Arguments:

over_pecs

Returns this fit over pecs drawn under a top, made the first time it's asked for.

Arguments: