/tg/ Station 13 - Modules - Types

code/modules/unit_tests/~nova/bulge_renderer_play.dm

/datum/unit_test/portal_test/bulge_renderer/custom_layeringCustom visibility, the penis set below or above the underwear. Under a garment drawn in front of it (a uniform, either way; the underwear, below it), what a look draws of the penis stays at the look's layers (behind its cover, over its cloth), never at the custom layer, for an exposed tip, a skirt's clearance and a loincloth's drape. Above the underwear, with nothing else over it, the penis is drawn over the underwear as Nova draws it: no bulge, no cut, and the bulge comes back when the penis is layered under the underwear again. Both layers the look takes for Custom layering are pinned to where Nova draws the penis itself: above the underwear with no look, below it soft.
/datum/unit_test/portal_test/bulge_renderer/texturesA textured chest (checkered, which also whitens what it textures): the cloth a look draws keeps its palette and takes no texture; the anatomy it shows over the cloth takes the texture like the rest of the skin.
/datum/unit_test/portal_test/bulge_renderer/species_changeUnderwear that stops being drawn takes its bulge with it, and brings it back: the trait a species without underwear has (which a limb can also give, as an ash walker or Teshari chest does) added to a body already drawing the bulge and removed again, and a change to such a species (which grows a new penis: it must draw no bulge either).
/datum/unit_test/portal_test/bulge_renderer/cut_childrenAn accessory (a skull codpiece, worn over the crotch) pinned on a jumpsuit keeps its look; on a hard revealing skirt that is damaged, the damage is cut with the skirt and the codpiece is not.
/datum/unit_test/portal_test/bulge_renderer/hidden_jumpsuitA suit that hides the jumpsuit (HIDEJUMPSUIT) over a cut skirt: the skirt is not drawn and holds no cut, nor the look; the suit off draws the skirt cut and the look again.
/datum/unit_test/portal_test/bulge_renderer/suit_statesA coat that leaves the crotch clear only when open, opened and closed; a winter coat that leaves it clear only with its hood down, its hood put up and down.
/datum/unit_test/portal_test/bulge_renderer/organ_transferA hard penis taken out of a wearer whose skirt it cuts, and put into another wearer in a loincloth: the skirt is drawn whole again, and the loincloth is cut for it at once.
/datum/unit_test/portal_test/bulge_renderer/cut_refusalsA husk and a chastity device while a skirt is cut: the skirt is drawn whole and the look goes; both undone, the cut and the look come back.
/datum/unit_test/portal_test/bulge_renderer/cut_handoverThe underwear loincloth cut when hard, a revealing skirt put on over it (the skirt takes the cut, the loincloth is drawn whole), and taken off again (the loincloth takes the cut back).
/datum/unit_test/portal_test/bulge_renderer/deleted_while_cutA wearer deleted while their skirt is cut: the penis goes with them, and its overlay holds nothing of theirs.
/datum/unit_test/portal_test/bulge_renderer/colour_filtersA colour matrix, then a colour filter changed straight to another, on a worn printed garment: the look falls back to the adaptive palette at once, its cloth drawn through the colour filter the garment is drawn through, follows the garment from one filter to the next, and prints again when the colour comes off.
/datum/unit_test/portal_test/bulge_renderer/bloodBlood put on a worn cover while the bulge shows draws over the bulge's cloth too, kept to its pixels, in the blood's colour and just after the cloth; washed off, it goes from both. Any overlay the cover draws over its own sprite does the same (here a stain added the way clothing_dirt adds its dirt).
/datum/unit_test/portal_test/bulge_renderer/blood_on_cutBlood on a revealing skirt that is cut when hard is cut with it, or it would draw over the shaft the cut reveals; the look's cloth carries the blood as the skirt had it, uncut. Half hard, the blood is drawn whole again.
/datum/unit_test/portal_test/bulge_renderer/leg_swapLegs swapped to digitigrade by the legs preference and back, then a digitigrade leg attached as surgery attaches one: each time the uniform is drawn again for the new legs at once (the leg-swap refresh in try_attach_limb() and in the legs preference), so the bulge, whose shapes follow the legs, never sits on a sprite drawn for the old ones.
/datum/unit_test/portal_test/bulge_renderer/cover_alphaAdaptive and printed cloth follow changes to the worn garment's alpha.