benilla-re systems structs docs

BuildCraftList

function · ui · primitive

Address
0x4f60c0 · 1381 bytes, up to 0x4f6624
Signature
void __cdecl ()
Meaning
Builds the craft window rows and headers from the craft list of the current type
Confidence
verified, proof one
Finding
ui/craft#craft-lists

Finding: Craft lists in ui: the craft window list

A learned spell enters craft list N when its attribute word has bit 0x20 clear and its cast-UI field (+0xc of the spell record) is N above 0; the lists are four vectors in the player object at +0x1cd0, 16 bytes apiece. Learning one appends it and rebuilds the window list. The window's craft type is the misc value of the first effect of the opener spell whose first effect is 47; 1 is Beast Training, 2 Disguise and 3 Enscribe or Enchanting, while a misc value of 0 opens the profession window.

The derivation is in the doc.

Callers 12

Callees 15

Calls and jumps by a bare address, from tables/calls.tsv.