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

bulge_derivation

Every shape past small_cap, the anatomy each leaves bare, and every loincloth drape and cut, as derived from the game's sprites (templates.dm), against BULGE_DERIVATION_RECORD: the states derived, by kind, the shapes that leave nothing bare, and a digest of every pixel derived, the bare anatomy's mask tiles and the cuts' keep masks with them. The record was frozen from the sheet states these replaced, which they matched pixel for pixel. Each state is derived once, from the family that owns it, so the families that share a stem must agree on the vars it is derived from. Logs the time it took.

Vars

countsStates derived, by kind.
errorsStates derived as nothing, and pixels of mask tiles and keep masks that are not what they must draw.
rawWhat was derived, a line per state and direction, for the digest.
visited"[kind] [state]" -> TRUE for every state derived.

Procs

checkAdds a derived icon (a mask tile or a keep mask, its state "" facing four ways) to the digest, and reports its pixels that are neither opaque white nor clear or, given wanted, that differ from it: facing south, north, east and west, a list by row * 32 + column + 1 (from the top left) that is TRUE where the icon must be opaque white; everywhere else it must be clear.
compareAdds a derived template's pixels, facing south, east and west, to the digest; fails it when nothing was derived.
recordRecords a state as derived.

Var Details

counts

States derived, by kind.

errors

States derived as nothing, and pixels of mask tiles and keep masks that are not what they must draw.

raw

What was derived, a line per state and direction, for the digest.

visited

"[kind] [state]" -> TRUE for every state derived.

Proc Details

check

Adds a derived icon (a mask tile or a keep mask, its state "" facing four ways) to the digest, and reports its pixels that are neither opaque white nor clear or, given wanted, that differ from it: facing south, north, east and west, a list by row * 32 + column + 1 (from the top left) that is TRUE where the icon must be opaque white; everywhere else it must be clear.

compare

Adds a derived template's pixels, facing south, east and west, to the digest; fails it when nothing was derived.

record

Records a state as derived.