modular_aphelion/modules/fitness/code/fitness_limbs.dm 
| /proc/init_fitness_limb_families | Returns GLOB.fitness_limb_families, built from the size subtypes. |
|---|---|
| /proc/init_fitness_limb_sheets | Returns GLOB.fitness_limb_sheets. Sheets are files, so it is built here rather than written as a list literal. |
| /proc/init_fitness_definition_sheets | Returns GLOB.fitness_definition_sheets. |
| MUSCLE_SIZE_NAME | The name a muscle size goes by in the definition overlays' states. |
| FITNESS_ICON_KEY | A fitness limb's icon cache key, written out for the sizes and steps there are so a redraw doesn't build the text. |
| FITNESS_LIMB_DRAWING | Gives a limb family's fitness subtypes (family/fitness and its sizes) the overrides they draw with. They sit on the fitness
subtypes rather than on /obj/item/bodypart, so a plain limb's redraw runs none of them. |
Define Details
FITNESS_ICON_KEY 
A fitness limb's icon cache key, written out for the sizes and steps there are so a redraw doesn't build the text.
FITNESS_LIMB_DRAWING 
Gives a limb family's fitness subtypes (family/fitness and its sizes) the overrides they draw with. They sit on the fitness
subtypes rather than on /obj/item/bodypart, so a plain limb's redraw runs none of them.
- update_limb() keeps the limb on its size's art whatever sheet it was last given: its type's own, the humanoid one skin tones off give it, or a reset's. A body's redraw runs it on each limb before making the limb's icon cache key. Only a plain sheet that has size sheets is looked up again; a limb already on its size's sheet keeps it. Set up for an owner (is_creating), a new limb takes the owner's definition, and a chest, whose male or female art is set then, refits its owner's garments to its glutes (update_garment_fit()).
- generate_icon_key() and generate_husk_key() key the limb by its size and definition: the size sheets share the plain sheets' state names, and the limb icon cache is shared by every body, so without it one's art would be served for another.
- get_limb_icon() draws the definition (draw_muscle_definition()).
Arguments:
- family: The limb type the fitness subtypes are under, like /obj/item/bodypart/arm/left.
MUSCLE_SIZE_NAME 
The name a muscle size goes by in the definition overlays' states.