dirt_worn_mess 
The mess on clothes. A shot at a covered region lands on the outermost garment over it, which draws it inset in its own worn wrapper, where the bulge can copy it, from its wearer's cloth masks: moved to a digitigrade lizard, from the lizard's. Washing the garment takes it off. A region covered only by underclothes takes it on the piece showing the most of it, drawn over that piece and kept to its pixels, and kept with it while it's hidden or swapped. Skin mess lies under the underclothes, and fades out beside them.
Procs | |
| cover_distance | Returns how many steps up, down or across a pixel lies from the nearest covered one, up to 2, or 0 further off. A covered pixel isn't asked about. |
|---|---|
| drawn_at | Returns an image a body draws at a layer, at the top of its overlays, or null. |
| inset_images | Returns the images a worn slot draws inset over its garment. |
| mask_alpha | Returns a pixel's alpha, 0 to 255. |
| on_piece | Returns whether some of a carrier's underclothes splats are on a kind of underclothes. |
| shows_on | Returns whether a body facing south differs from a clean shot of it only on some pixels, and on some of them. |
| underclothes_image | Returns the image a body draws for one of its underclothes, or null. |
| underclothes_pixels | Returns which pixels a body's underclothes draw in one direction: a list of TRUE or null, indexed by icon y * width + icon x, both from 0. |
Proc Details
cover_distance
Returns how many steps up, down or across a pixel lies from the nearest covered one, up to 2, or 0 further off. A covered pixel isn't asked about.
Arguments:
- covered: From underclothes_pixels().
- icon_x, icon_y: The pixel.
drawn_at
Returns an image a body draws at a layer, at the top of its overlays, or null.
Arguments:
- body: The body.
- layer: The layer.
inset_images
Returns the images a worn slot draws inset over its garment.
Arguments:
- body: The wearer.
- layer: The slot's overlays_standing index.
mask_alpha
Returns a pixel's alpha, 0 to 255.
Arguments:
- pixel: From GetPixel(): null, "#rrggbb" or "#rrggbbaa".
on_piece
Returns whether some of a carrier's underclothes splats are on a kind of underclothes.
Arguments:
- carrier: The carrier.
- piece: A DIRT_UNDERCLOTHES_* define.
shows_on
Returns whether a body facing south differs from a clean shot of it only on some pixels, and on some of them.
Arguments:
- body: The body.
- clean_flat: The clean shot, facing south.
- allowed: The pixels it may differ on, from underclothes_pixels().
underclothes_image
Returns the image a body draws for one of its underclothes, or null.
Arguments:
- body: The body.
- state: The underclothes' icon state.
underclothes_pixels
Returns which pixels a body's underclothes draw in one direction: a list of TRUE or null, indexed by icon y * width + icon x, both from 0.
Arguments:
- body: The body.
- direction: The direction.
- state: Only the underclothes with this icon state, or null for all.