benilla-re systems structs docs

DrawCreateRaceAndSex

function · glue · orchestration

Address
0x4702a0 · 46 bytes, up to 0x4702cd
Signature
void __thiscall (void *this)
Meaning
Draws a sex below 2 and a race from the race list into a create record, then its five customizations
Confidence
verified, proof one
Finding
glue/create#five-customization-draws

Finding: Five customization draws in glue: character create

A random appearance is five draws in [0, count) for the race and sex, in this order: skin (0x47a440), hair style (0x47a3e0), hair colour (0x47a400, for the style just drawn), facial hair (0x47a4c0), face (0x47a4a0). A random character first draws its sex in [0, 2), then a race list index. The names are the create request's, as the server reads it. The counts index a grid by 2·race + sex, so sex 2 reads the next race's male counts.

The derivation is in the doc.

Callers 1

Callees 2

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