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_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. |
Procs | |
| flexing | Returns this fit, one over pecs, with the pecs flexing from sheet, made the first time it's asked for. |
| over_pecs | Returns 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:
- sheet: A pec flex's sheet (garment_pec_flex()).
over_pecs
Returns this fit over pecs drawn under a top, made the first time it's asked for.
Arguments:
- shape: The pecs' shape, one with a garment_fit_shape.